07-24-2018 03:35 PM
I would like to display the generated waveform on a chart. Below is what a portion of what my code looks like. How should I wire the waveform chart to actively display the generated signal.
07-24-2018 03:46 PM
You can wire an array of waveforms directly to the waveform chart or graph. If your entire signal is contained within 1 waveform, you probably want the waveform graph. The chart is a rolling display with a history.
07-24-2018 03:50 PM
When I directly connect the waveform chart to the signal the following occurs when I run the program. Only one cycle appears and I would like the time axis in relative time not absolute.
07-24-2018 04:34 PM
You can configure the axis however you like, just right click >> properties. Can you attach your code and maybe a picture of what you want your chart to look like?
07-24-2018 04:36 PM
Attached is my code. The DAQ is connected to an actuator. The signal generated is sent to the actutator and it moves in a sinusoidal fashion. I would like the waveform chart to display the changes voltage from the actuator over the changes in time.
07-24-2018 04:47 PM
I'm using LabVIEW 2016, I'd be happy to take a look if you can save it for an older version.
07-24-2018 04:49 PM
I believe this will work.
07-24-2018 06:00 PM
It only shows one cycle because when you generate the signal you have "reset signal" set to True. Set it to False and it will know based on the timing information that your new data goes after your previous data.
07-24-2018 06:06 PM
Even when I have the reset button set to false, only one cycle appears.
07-25-2018 06:57 AM
@Gregory wrote:
It only shows one cycle because when you generate the signal you have "reset signal" set to True. Set it to False and it will know based on the timing information that your new data goes after your previous data.
That is actually needed since it is in a FOR loop. Notice the OP has a shift register to hold the phase for each waveform. That is acting as the "reset = FALSE".