05-16-2006 06:12 PM
05-16-2006 06:17 PM
Have you considered using VISA for serial port communication? No need to reinvent the wheel while some great guys at NI have dealt with the serial port access for you already!
@thoj wrote:
Hello, I was hoping someone could tell me what the protocol is for inputing the DCB information on baudrate, parity, etc into a labview function call. I believe I have the serial port handle part of the call working corrently, and when the GetCommState function is called, the DCB returns "28". I am simply unsure of how to place the setup the data to be read into SetCommState because normally the baudrate, parity, etc. are set individually in either C++ or VB and then the call is made. Unfortunately, I do not know how to set the individual states in labview, nor do I have or have a C++ compiler to set the info outside labview (and I don't have any desire to use external C code).
I have also tried briefly and unsuccessfully to swap out the SetCommState call with labview Visa code. Any help would be much appereciated. I am really stuck here.
Thanks,
JOe P
05-17-2006 01:19 PM