ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

取消
显示结果 
搜索替代 
您的意思是: 

Waveform into Chart

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. 

 

 

0 项奖励
1 条消息(共 10 条)
3,706 次查看

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.

0 项奖励
2 条消息(共 10 条)
3,699 次查看

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. 

 

0 项奖励
3 条消息(共 10 条)
3,692 次查看

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?

0 项奖励
4 条消息(共 10 条)
3,673 次查看

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. 

0 项奖励
5 条消息(共 10 条)
3,671 次查看

I'm using LabVIEW 2016, I'd be happy to take a look if you can save it for an older version.

0 项奖励
6 条消息(共 10 条)
3,667 次查看

I believe this will work.

0 项奖励
7 条消息(共 10 条)
3,664 次查看

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.

0 项奖励
8 条消息(共 10 条)
3,653 次查看

Even when I have the reset button set to false, only one cycle appears.

0 项奖励
9 条消息(共 10 条)
3,650 次查看

@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".



There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 项奖励
10 条消息(共 10 条)
3,630 次查看