LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

read and write data

I was given a project, where I need to use labview to save the waveform in the spectrum analyzer automatically.

 

My spectrum analyzer is MS2724B from Anritsu. It is connected to the labview in my laptop using LAN cable, so it is "ping".

 

1. How should I read the data (waveform) from the spectrum analyzer and then write it to labview, so that I can see the waveform in labview?

 

2. After finishing step 1, what are the codes I needed to write in labview so that the spectrum analyzer can save the waveform automatically?

 

please help to solve the above problem

0 Kudos
Message 1 of 8
(3,499 Views)

You can ping a device.  A device can't be ping.  The ping is just done to see if you have a connection. 

 

You need to send commands via ethernet, likely TCP/IP connections.  You'll need to know what those messages are.  Once you figure that out, question two is trivial.  Just use the "write to measurement file" express VI.

0 Kudos
Message 2 of 8
(3,491 Views)

okay... we can use that vi to write, but I need to read the data from the spectrum analyzer in the first place. How to read the data then?

0 Kudos
Message 3 of 8
(3,486 Views)

And where should I add the "write to measurement.vi"?

0 Kudos
Message 4 of 8
(3,485 Views)

You need to read the communication manual for the device to see what command or commands you need to send, and how to parse the data out of any response it sends back.

 

Then you can write that to the Write to Measurement file within the same loop if you have enough time, or sent to a separate loop through queues in a  producer/consumer architecture if you don't want the file writes to slow down the communication with the instrument.

0 Kudos
Message 5 of 8
(3,477 Views)

I have zero knowledge in programming and does not know about programming.  this is the first time I am doing it. Can you kindly teach me step by step?

 

I am using labview 2014

0 Kudos
Message 6 of 8
(3,468 Views)
There are numerous free tutorials on LabVIEW.

For instrument control, you have the option of using an existing instrument driver by simply using the Help> Find Instrument Driver option. At http://www.ni.com/downloads/instrument-drivers/ you will find links on basics of instrument control, what a driver is, how to use one, how to create your own, etc. Before you start messing with any code, you need to be familiar with the instrument and how to operate it manually.
0 Kudos
Message 7 of 8
(3,452 Views)
0 Kudos
Message 8 of 8
(3,391 Views)