05-28-2010 12:38 PM
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).
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
05-28-2010 12:46 PM
How do you expect the For Loop to end if you run in an infinite number of times?
05-28-2010 12:52 PM
05-28-2010 12:54 PM
05-28-2010 01:50 PM
05-28-2010 03:44 PM
Will the chart give me a continuous output once connected to a 'real' data source? (Thermocouple/Pressure Transducer?
Cheers
05-28-2010 05:08 PM - edited 05-28-2010 05:12 PM
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.