01-25-2011 12:24 PM
Hello all,
I'm working on an automation program to pull data from a VNA over a GPIB port to a computer, then save it in some arbitrary file.
We have some pre-configured settings on the VNA, and normally we have it set to simply save ASCII data to a file.
Can anyone point me towards how I can perform this read in VB, or where I can read how I can do this?
Thanks for your time!
Solved! Go to Solution.
01-26-2011 09:19 AM
Hello,
What VNA you are using?
Cheers!
01-26-2011 09:43 AM
Hi Michael B.
Depending on the VNA, if there is a driver for it on www.ni.com/idnet you could potentially get the CVI version of the driver compiled then use the Measurement Studio driver wizard to do it that way. Or you can use the VISA API to send commands to the VNA and receive them and parse them that way. The VISA method would require you to know exactly which commands your instrument uses.
Hope this helps!
02-04-2011 09:25 AM
norrod,
We're using the R&S ZVB4 VNA. We have a requirement at the moment to write this as a
standalone application, which is why I ask if it can be done in VB at all.
Thanks for your time.
02-04-2011 10:29 AM
As a correction to the above, I made a mistake in which VNA we're using.
The one we're using is the R&S ZVM.
02-07-2011 04:52 PM
Hi Michael B.,
Are you using VB.net? If so you can use the instrument driver found here:
http://sine.ni.com/apps/utf8/niid_web_display.model_page?p_model_id=876
Compile the cvi code into a dll and load the fp file in the Instrument Driver Wizard in Visual Studio to create the wrapper around the C dll.
Hope this helps!
02-14-2011 10:05 AM - edited 02-14-2011 10:13 AM
Hi Christopher,
Yes, I am using VB.NET For the programming. I've actually moved past the initial issue of communicating with the device.
We were using the VisaNS drivers which included support for .NET programming.
However, we still need to read data from the VNA.
More specifically, we're looking to remove an intermediary step. We're setting up the unit to save an ASCII file, read off the dB, mag
and phase, and then then saving the data to a file for transfer to a computer.
However, I can't find anywhere in the documentation for actually reading the data that's normally saved to the mass storage device on the unit.
Could you possibly point me towards any documentation or examples that show how to do this?
Thanks for your time!
02-15-2011 05:38 PM
Hi Michael B,
Looking through this, I don't see any commands where it will send the data over to the PC. (looked at the user guide Vol. 2 on the manufacturer's website). I see there are commands for manipulating the data on the memory of the VNA. The thing about the commands is that they are device specific, if the manufacturer has not given a way to receive data from the device there is not much you can do. Maybe the manufacturer might have more information on perhaps a command that we might be missing that might transfer data over.
Hope this clears some things up.
Regards,
02-23-2011 10:54 AM
Christopher,
Thanks for your help through this. I was actually able to find the command that would transfer data files over the GPIB to our local machine for manipulation.
For reference for others, it was the MMEM:DATA command. We simply wrote the command to the the unit, then did a ReadToFile() to get a local copy.
We also had to increase the buffer size a bit just so it would transfer the whole data file all at once (to prevent requiring multiple reads).
08-02-2024 11:18 AM
I'm using the vna.read() statement from the pyvisa program and it takes a very long time, tens of seconds, to read data to the PC. Why is this, what can i do to speed this up. many thanks. N