LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

VISA Reads and Writes (queries)



@Dennis Knutson wrote:
I have no idea why the example doesn't have the bytes to read wired up. Afaik, you have to wire something there or it will default to 0.

I just gave the tutorial 1 star, and gave feedback with a reason why the example is confusing.  AFAIK, I tried wiring up nothing too, and I lo and behold, it doesn't work.  Maybe you can notify NI, and get a response back faster than I can, as you seem to know your way around here ;).

I hope I'm not the only one having problems in understanding the VISA syntax, as the help files associated with VISA write/read are certainly lacking (IMO).


@Dennis Knutson wrote:

The CR or LF character is often required to terminate the commands with serial instruments. Serial instruments lack a well-defined standard like 488.2 that says that a talker or listener use EOI. However, some GPIB instruments (especially older ones) don't exactly follow the standard and may require a command be terminated with a different or additional characters. You may also see some drivers written like this to make them compatible with both GPIB and serial versions of the instrument. You can set a VISA property to do this but some programmers may choose not to do that (or may not be aware of the other technique). A GPIB instrument will usually ignore the extra character if present.


Good information to know!  It's times like this, I'm glad we have such an active and informed discussion forum.   In general, I can't learn these things just by reading tutorials (esp. fault ones ;)).  From reading the documentation, I am almost certain that the instrument I am writing driver for follows the SCPI/GPIB standard fully.

Thanks for your help.  I really appreciate it.

0 Kudos
Message 11 of 11
(1,103 Views)