Lighting USB OpenDMX FTD2XX DMXking

后端 未结 5 550
一向
一向 2021-01-21 00:44

Couple of quick questions. I have a DMX king USB lighting controller that I\'m trying to control.

It\'s based on the Open DMX protocol (from Entec) who make available a

5条回答
  •  温柔的废话
    2021-01-21 01:02

    I fix the problem with Marshal.Copy

        public static void writeDataThread(int Length)
        {
    
            int lngBytesWritten = 0;
            IntPtr pnt = Marshal.AllocHGlobal(Length);
    
            Marshal.Copy(buffer, 0, pnt, Length);
            FT_SetBreakOn(handle);
            FT_SetBreakOff(handle);
            string  StartCode =  null;
            FT_Write(handle, StartCode, 1, ref lngBytesWritten);
            FT_Write(handle, pnt, Length, ref lngBytesWritten);
    
    
        }
    

提交回复
热议问题