Hi i'm using the Sample output template for writing a plugin for my own interface.
Unfortunately i can use C# so i'm blocked with the old visual basic
The trouble is:
i've added that code to the SetChannel function to send the value via the com port.
Code
On Error GoTo COMError
frmMain.MSComm1.CommPort = 3
frmMain.MSComm1.PortOpen = True
If Channel < 256 Then
frmMain.MSComm1.Output = Chr(&H10) & Chr(Channel) & Chr(Value)
Else
frmMain.MSComm1.Output = Chr(&H11) & Chr(Channel) & Chr(Value)
End If
COMError:
If frmMain.MSComm1.PortOpen = True Then
frmMain.MSComm1.PortOpen = False
SetChannel = True
End If
Display More
Note that the com port is a virtual com port (via usb cdc) and thus the transfer is extremely fast.
When i run that code, dmxcontrol freezes and the visual basic too!!
I've tried everything but it seem doesn't want to work!!
Any help will be appreciated