@Emilie S. wrote:
Hi Jen:
If you want to know how many bytes to specify, what you could try is opening a VISA session in MAX. If you click on your instrument, there should be a button on top of the right window that says "Open VISA Session". Then in the Basic I/O tab, write and execute your command, then go to the read tab and hit execute. This will get all the data and tell you how many bytes are included in the return count.
Let me know if this helps you out.
Emilie S.
Applications Engineer
National Instruments
OK, I tried this and maybe I'm not using the same version of MAX you are but the MAX I have (version 3.1) does exactly the same thing as my program, that is, it does not read all of the data.
I know that I should receive about 8008 bytes, because there are 2000 points which are each 4 bytes. There is also a header which is about 8 bytes. The Write command in NI MAX asked for a byte count as an input, just like the VISA write in my LabView program. It says 1024 by default. So I got 1024 bytes. Is there a way to get around the "byte count" in the read command?
I tried this sequence of events:
1. Open NI MAX
2. Select GPIB device
3. Open VISA session
4. Went to BASIC I/O tab
5. Write DAT:SOU CH1 and press execute
6. Write CURV? and press execute
7. Went to Read and press execute (it correctly reads 1024 bytes)
8. Could not find "VISA Close" command in the drop downs (is there one?), so I exited the VISA session using the close button ("X")
9. Tektronix freezes.
????
😞 jen