06-21-2014 01:25 AM
hello,
I've written a program to control an old spectrum analyzer (OSA) throught a GPIB device.
the program is written as an infinie while loop with varioud buttons which respond to changes in the button value.
the only think that is constantly done is to read data from the OSA. The OSA constantly sweep over the measurement ragne and store the data - 800 points;
I read it in my while loop and output it to waveform chart.
When I wrote (it was my first program in ;LabView) I read a lot of tutrials and used a standard scheme that was working for me: send read command, some delay and read data from the instrument. without the delay time between read and write (send read command) it did not work. I tried other configuration like waiting for status byte without success.
any how - this method is working but kind of slow...for example if the OSA sweep the entire range at 50 msec, when working through the computer it's down to about 1 Hz.
Is there any way to make it faster?
06-21-2014 01:53 AM
Can you post your vi or screen shot?
06-21-2014 02:32 AM
attached.
06-21-2014 03:38 AM
What is the baud rate that you have set? you dont need to use a flat sequence to create delay between write and read. Please close your session
06-21-2014 07:17 AM
06-21-2014 07:42 AM
The data are 800 points of numbers (like -62.45).
This is what the TRA? command output. I don't know if it can be output binary and if so, how to show it in a graph.
I do not save the data to file but input it to a waveform graph
06-21-2014 09:22 AM
06-25-2014 10:54 AM
hello,
sorry for the late respones. I had to check the manual again as I worked on this program long time ago.
it is possible to read the data as binary (one or two bytes)...
but how do I present them on a waveform chart? (currently I present data on chart as x0, dx, number of points)
06-25-2014 10:55 AM
it is an old optical spectrum analyzer model: HP 71450B
06-25-2014 12:32 PM