Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Why can't I communicate on rs232 using Win 7?

And did you look inside those VIs? They use VISA.

0 Kudos
Message 11 of 14
(987 Views)

@smercurio_fc wrote:

And did you look inside those VIs? They use VISA.


Heck, they even say "VISA" on the icons.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 12 of 14
(983 Views)

I know. I also noticed a lot more coding.

There is the OPEN VISA function in all of them, for one thing.

0 Kudos
Message 13 of 14
(975 Views)

There's also a VISA Open in the Configure Serial Port VI. If you believe the "old" serial VIs work any differently, they don't. They use VISA. They only exist for backward compatibility, so that old code that used them would still load in newer version of LabVIEW. NI changed those VIs a long time ago to use VISA.

 

I haven't looked at your code, but what Dennis said seems to be the real cause of your issue. If the messages you get terminate with a character such as a linefeed, then you should not be used Bytes at Serial Port. You configure the serial port to use termination characters, and set the termination character to what it's supposed to be. Then you simply feed a large enough value for the byte count to VISA Read. VISA Read will automatically stop reading once it sees the termination character. Please read the documentation on these functions.

0 Kudos
Message 14 of 14
(963 Views)