Quantcast
Channel: Instrument Control (GPIB, Serial, VISA, IVI) topics
Viewing all articles
Browse latest Browse all 5566

VISA Read Byte count - binary data format input

$
0
0

--Hello everyone,

 

I have been working on a device which outputs binary data of 9-14 bytes for a single command I write using VISA Write(depending on the data size). As the communication protocol is in binary format, I disabled termination character. Can anyone tell how to input binary count to VISA Read function when the output varies in byte count.

 

From the beginning, I avoided using 'Bytes at Port' function to feed 'Byte count' input, but as I received Timeout error everytime, I tried using it with a wait of 10mS after VISA Write. Although it worked out fine except with a warning (Hex 0x3FFF0006), I am looking forward to know any better method to get variable sized binary output data without changing byte count value everytime. Thank you. 🙂


Viewing all articles
Browse latest Browse all 5566

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>