LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

XY Graphs

Hi,

 

I am using a Sine wave to simulate what will eventually be an input from a pressure transducer. I have placed a Waveform Graph on the front panel to give a graphical output.

 

What I now want to do is to change this Waveform Graph to an XY graph. The X-axis of this should record time in seconds and the Y-Axis Pressure (in the simulated case, this is the amplitude of the sine wave).

 

 

 

 

XY Grapg.JPG

 

When I run this, the scale on the XY graph is huge (3E+9) It is setup to auto scale. Also no plot trace is visible.What I want is an X-Axis which will increase its scale so as to record the Data over time. Thus giving the entire experiments pressure on one plot.

 

How can I solve this problem?

 

 

Cheers

 

 

 

0 Kudos
Message 1 of 7
(3,861 Views)

How do you expect the For Loop to end if you run in an infinite number of times?

0 Kudos
Message 2 of 7
(3,856 Views)

I specified a finite number of loops (10) and got what is described above.

 

Ignore the infinite symbol!!:smileytongue:

 

 

 

How can I get the desired output?

 

 

0 Kudos
Message 3 of 7
(3,848 Views)
Post your updated VI so we can play with it.
0 Kudos
Message 4 of 7
(3,837 Views)
Why are you using a graph at all?  It sounds like a job for the chart.
LabVIEW Pro Dev & Measurement Studio Pro (VS Pro) 2019
0 Kudos
Message 5 of 7
(3,813 Views)

Will the chart give me a continuous output once connected to a 'real' data source? (Thermocouple/Pressure Transducer?

 

 

Cheers

 

 

0 Kudos
Message 6 of 7
(3,801 Views)

Simulated channel.png

 

You could create a simulated device in MAX and create a dummy channel, that dummy channel will put out a sinewave since it is simulated.  Then put a DAQmx read on the block diagram to read the dummy channel you made.  Set the read for a single channel waveform and hook it up to a waveform chart.  That will give you a sinewave with a timestamp which should be similar to the way you are going to be reading the data for real.

Message Edited by _Bryan on 05-28-2010 05:12 PM
0 Kudos
Message 7 of 7
(3,787 Views)