Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with GBIB-VISA-Read read binary data

I try to read a gauge (instrument) via GPIB under win7 and win10.
I used the outdated library NI-VISA-NS in the past.
Now I'm trying to migrate my program (under VB.NET) to the library NI-VISA and get a lot of mistakes.

Old version (works):
I upload an image file from the meter to the computer - NI-VISA-NS:
mbSession.Write ("0; MMEM: Data? 'PRINT9.WMF'")
mbSession.ReadToFile ("d: \ PRINT9_.WMF", 310442)

New version under NI-VISA. The command "ReadToFile" is no longer available.
mbSession.RawIO.Write ("0; MMEM: Data? 'PRINT9.WMF'")
How is the file read now? How ti read binary data?

0 Kudos
Message 1 of 1
(2,352 Views)