Dear Expert,
I'm trying to use SCPI command to control ENA machine, and now I want to transfer file(S2P) from ENA to PC.
The SCPI command of transferring is :MMEM:TRAN but it didn't work when writing.
I use GPIB-USB interface to connect PC and ENA then input SCPI command by NI-MAX.
Does anyone know how to transfer file by this SCPI command?
Thank you.
Hello,
The MMEM:TRAN? ... query command is a binary bin-block transfer. I believe NI has a data type that will handle this for you without your intervention. If not then in most all languages the bin-block transfer can be handled via manual parsing, which is not impossible, but can be overwhelming at first.
Below is an image of a MMEM:TRAN? query as a manual parsing of a *.PNG image file from an ENA via Keysight VEE, with descriptions.
I will see if I have an ENA bin-block transfer NI VI snippet specifically. If so I will post attachment to this thread.
If this bin-block transfer continues to be problematic consider a LAN connection between the ENA and the PC. Then map a drive from the ENA to the PC. Now the MMEM:STOR command which saves the files can dump them directly to the PC, via the mapped share drive letter assignment, without the need for a MMEM:TRAN query as a binary block transfer.
Sincerely,
tsilchia.
(Please refer to attachment, as NI LV zipped file. I did not re-run this. I expect at the time it was saved it was fully functional)