04-13-2010 04:04 PM
Hi, I'm having a communication problem when I use a NI USB-232 (778472-01) adapter to control a pressure sensor. There are many posts about this in the forum, but I'm encounting something a bit different. I am able to use MAX to fully control the instrument with the VISA test panel. So I guess the driver of the USB-232 is correctly installed. However, in labivew, even though I can select the instrument from the visa source name, it always return an error (-1073807339) when I run the program. The screen shot of labview program is attached. Could anyone kindly help me with this problem.Thanks a lot.
The system is XP SP 3 Pro.
The Labview version is 8.6.
The MAX version is 4.5.0f0.
Solved! Go to Solution.
04-13-2010 04:52 PM
04-14-2010 02:52 AM
Your code doesn't show you opening the port at all. Have you done this somewhere else or is this all of the code?
If you haven't opened the port previously and set Baud and parity and so on then this code most likely won't work.
Shane.
04-14-2010 10:27 AM
04-14-2010 10:30 AM
04-14-2010 11:23 AM
If the default windows port settings just happen to correspond to the settings you need for communication you can get lucky and it will work. If just one setting is different, it won't work.
It's always better to set the parameters in your code.
Shane.
04-14-2010 05:11 PM
04-14-2010 11:14 PM
04-15-2010 10:40 AM
04-15-2010 04:16 PM