03-28-2014 03:15 PM
I am attempting to write some LabVIEW code that will allow me to transfer information from my Agilent E5071 network analyzer to my computer via USB. The file is an instrument state file (.sta extension). I can specify a save directory for the network analyzer using my LabVIEW code. However, I am at a loss for how to transfer this data via USB to C:\StateData on my local computer. I have attached what is coded so far. I'm not sure how to proceed with using the VISA Read. Any ideas or confirmed tested VIs?
03-31-2014 06:13 PM
Hi atm1111,
Try looking at this KnowledgeBase Article http://digital.ni.com/public.nsf/allkb/457E3ADD7D2C1E7486257323007BAC0D?OpenDocument
03-31-2014 07:10 PM
04-01-2014 09:20 AM
I have looked at other code regarding screenshots, specifically a piece of code Agilent sent me, but it doesn't seem to work. I followed the format and understand how the data is being transfered. I do not wish to write it as a binary file, so I use the "Format into File" VI. After my code runs, there is a file saved on the network analyzer (Agilent E5071-C) and a file saved on my computer. When transfered from my computer to the network analyzer, the copied .sta file is not recognized, which leads me to believe there is some issue with using this method for .sta formated files. Opening up the .sta files in notepad, I noticed that the copied files have more tabs and new lines than the original file. I don't want to use the "Search and Replace String" VI to remove all tabs because some are necessary to maintain the original format. I've attached my code and the screenshot Agilent sent me.
04-01-2014 10:32 AM
04-01-2014 10:46 AM
Agilent sent me the "VISA Read Binary Block Data to File" jpeg, mentioning it was used for saving screenshots as a binary file. Found the code Agilent sent me. It saves a screenshot to my laptop, as expected. When I use the same VIs and VISA commands for an .sta file, the new file saved to my computer is not recognized by the network analyzer.
04-01-2014 12:46 PM
04-05-2018 10:27 PM
are you able to perform the screen copy/save png from analyser to pc.
04-08-2018 11:57 PM
I fear that you can't do what you want. There is no SCPI command that does a file transfer from the analyzers filesystem ( the .sta file is a file on the analyzers file system) to the controling PCs file system (or vice versa).