Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Read binary data with VBA

I trying to receive binary data from an instrument using Excel VBA but can’t figure out how to do this.

I’m using the VISA COM library and the instrument is communicating trough Ethernet defined as a socket. I have no trouble sending and receiving ASCCI data when the data is terminated with a defined termination character.

 

However, I’m also need to be able to read binary data. The data does not contain any header or termination character. The only thing I know is how many bytes that will be sent.

I cant find any function in VISA COM where I can define the a number of bytes to receive.

Is this even possible with VBA?

0 Kudos
Message 1 of 1
(1,210 Views)