LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

how can the wavechart in accordance with instrument HP8595E front panel

i control HP8595E Spectrum analyzer through labview, and when i change reference level,how can the wavechart change also,that is y axis change accordingly?
and if there is a way to make the wavechart display same as the instruement front panel?if there is 8 scale in x,y axis on instrument,how to do it with labview wavechart?
0 Kudos
Message 1 of 3
(2,937 Views)
To display data on a waveform chart, the data needs to be in an array form. How you can modify the display on the chart depends on which VI you use to get this array.
You can search on our Intrument Driver web site at:
http://ni.com/devzone/idnet/
and see if there already is a LabVIEW driver for your instrument.
To get more than one plot on your chart, you'll just need to have a 2D array of data. Each column would be new y data on the chart.
Chart will not allow you to input the X axis data. By default, it displays the Time on the X axis. If you need to change the Y axis data based on the X axis, then you should probably use the waveform graph.
Posting an example of your VI that is supposed to display data on the chart would help answer your question better.

Also, try looking at some of the chart and graph examples that ship with LabVIEW. They will give you an idea how to change the display.
I hope this helps.
Have a nice day.

Zvezdana S.
National Instruments
0 Kudos
Message 2 of 3
(2,937 Views)
Lydia,
I received your Web Project Request, submitted through the marketing web site on the same issue. That is not the best way to submit request, because the marketing people do not provide technical support. You can generate a service request for either phone or email support on the following web site:
www.ni.com>>Support>>Support Utilities>>Request Support

I looked at the VI you submitted. I cannot run it because I do not have the hardware.
The top level VI has a waveform graph whose Y scale was hidden. Both X and Y scales were set to auto scale. The RL.vi documentation said that that VI configures the frequency options of the spectrum analyzer, which on the graph is the X scale. The Scale Set.vi sets the vertical scale of the spectrum analyzer. I don't kn
ow what this scale is on the actual instrument, but in this VI it is the amplitude.8595-c.vi goes on to configure the marker on the instrument. I don't see anywhere where you are programmatically setting the X and Y starting points of the waveform graph.
8695 Read Wvfm to Array only reads whatever is the array of Y data that the instrument sends. It returns the X start but not the Y start.
If you want to programmatically set the Y scale starting point, you should use the property node Offset for the Y scale. It sets the initial value Y0. Wire the RL control to this property node so that the scale gets updated before the data is plotted.

I hope this helps

Zvezdana S.
0 Kudos
Message 3 of 3
(2,937 Views)