From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

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,092 Views)