LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to continoulsy receive different data from optical spectrum analyzer

Hi
I am creating an interface between the computer and optical spectrum analyzer.I am using a GPIB card to communicate
with the optical spectrum analyzer.I want to receive three sets of data continoulsy from the instrument. These data sets will be used to plot the graph. By doing so, if the graph changes on the screen of the optical spectrum analyzer, then graph in my labview program should also change accordingly.So, if I am receiving the data continuosly, then the data used to create the graph will get updated automatically and this will automatically change the graph.

To receive the data continuosly, I put the 3 different commands(used to receive the 3 different sets of data) inside an array and used the for loop to send the commands one by one after an interval of 10 seconds. I also put the output from the instrument in an array which is inside a for loop. The problem is that I am not able to get the output properly. Also, I don't how to store this output (3 different sets) so that it can be distinguished and can be used to create the graph.

Please help me..
0 Kudos
Message 1 of 2
(2,477 Views)
To separate out your results, use the Index Array function. The array shouldn't be inside the for loop. It should be created by the for loop. Just wire the result of the instrument read to the edge of the for loop and the auto-indexing feature of a for loop will automatically create an array. You should have something like in the attached picture. The response strings that you get back from the instrument will have to be converted to numbers in order to be graphed.
0 Kudos
Message 2 of 2
(2,467 Views)