Hello,
I've been sending SCPI/GPIB commands through VISA write functions in LabVIEW (7.1.1).
I'm confused on how to send queries. I undestandy you have to write the query to your instrument using a VISA WRITE (and fill the write buffer with the SCPI query command), and then you need to read it back using a VISA READ command. However, it is unknown to me the number of "bytes to read" to pass to the Visa READ command.
Is it simply just the "byte count" returned from the VISA WRITE command? OR, is there some documentation that would tell me how many bytes to read.
Luckily, I know what type of sinks I am using. For example, in the case of reading a single I32, I've been passing 4 bytes to the read command, hard coding it in. However, that doesn't count for overhead, such as header info... Please help clarify this.
Then the follow up question: Then that following data is put in a string. How do I get the appropriate data out from the string? Let's make it simple and use an I32. Do I just typecast the string? Or do I use "convert decimal string to number" vi? From my research, both ways are applicable?
Thanks in advance.
Edit:
Hmm, this would probably belong in the Labview boards. I'm going to post it there. Sorry for the trouble.
Message Edited by agill on 07-20-2006 11:51 AM