LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Problems using SetCommState to configure external device

Hello, I am trying to use the kernel32.lib function SetCommState to set the communications for and external I/O board. The board is by Sealevel Systems, and they supply VB example code. The problem I have is this: in the code, they run the function GetCommState, then they individually modify the baudrate, bytesize, parity, and stopbits to match the settings fo the device. Finally, they take the updaded settings and input them into the function SetCommState. This all works well in VB, where it is possible to set the baudrate, bytesize, etc. individualy, but in labview, I cannot seem to do this. So I either need to be able to set these individually, or I need to know the protocol for inputting all four parameters into SetCommState through labview. Another option is to use internal labview code (like VISA), but I am not sure that approach would work. Any help would be much appreciated. Thanks,
JOe
0 Kudos
Message 1 of 2
(2,916 Views)
Try the LabView forum - this is the LabWindows/CVI one. Smiley Happy
0 Kudos
Message 2 of 2
(2,910 Views)