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

Problem with GBIB-VISA-Read read binary data

$
0
0

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?


Viewing all articles
Browse latest Browse all 5634

Trending Articles



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