Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Waveform ASCII/Binary Export

Hello,

I'm a total beginner in using labview.
I would like to export a waveform from a network analyzer encoded in ASCII or Binary format. Has anybody more information about how it works? I'm particulary interested in the way to convert an ASCII or Binary code in a 2d coordinate array to display the waveform on my VI.

Thanks,

Henri
0 Kudos
Message 1 of 2
(3,497 Views)
Hello Henri,

Are you getting back a string from your instrument that you would like to convert to a numeric array to use in LabVIEW? If so, I recommend you use the "Extract Numbers" VI for this. "Extract Numbers" is an example VI that ships with LabVIEW...you can get it from going to Help >> Examples >> Fundamentals >> Strings. This VI is going to extract all the numbers to a 1D array...you will need to perform some manipulation on this data to get it into a 2D array.

If you are receiving the data in binary string format, you will need to convert the binary string data into numeric data using some of the casting functions, located in the Functions >> Advanced >> Data Manipulation subpalette in your block diagram.

This should get you started in the right direction.
I think the example VIs that ship with LabVIEW would also help. These topics are also covered in our LabVIEW customer education courses, which you can learn more about by visiting www.ni.com/custed .

Good luck with your application, and have a pleasant day.

Sincerely,
Darren Nattinger
Applications Engineer
National Instruments
0 Kudos
Message 2 of 2
(3,497 Views)