08-29-2013 02:01 AM
How do I create a waveform with exact timing from a two column table. The first column sets the timing, the second column sets the values at these timings. For instance I want to set 1V at 0 seconds, then 2V at 10 ms, then 3V at 30 ms, then 0V at 35 ms and so on.
08-29-2013 02:03 AM
On X axis you want time or value?
08-29-2013 02:05 AM
Check this....
08-29-2013 02:15 AM
Thanks for your reply!
This looks already fine, but I also want the previous value to be kept constant until a new value is set at a new time. In your application there is a linear interpolation between consecutive samples. Is this easily done?
08-29-2013 02:21 AM
I am not sure. Frankly I dont understood what is causing problem. Can you elobrate with an example
08-29-2013 07:50 AM
@Claude2 wrote:
How do I create a waveform with exact timing from a two column table. The first column sets the timing, the second column sets the values at these timings. For instance I want to set 1V at 0 seconds, then 2V at 10 ms, then 3V at 30 ms, then 0V at 35 ms and so on.
To have "exact" timing it would be preferable to use a timed loop where you set the loop delay at each iteration. Now if you want to generate a real waveform you will also need some hardware like an analog I/O card and use the daqmx functions to control it.
Ranjeet vi is a simulation where the x-axis values correspond to the timing values but where the actual delay between points is not exact (e.g. it didn't take 10ms between first and second point). To change the interpolation type of the graph click in the plot legend and then select interpolation.
Ben64
08-29-2013 07:55 AM
Thanks for the reply!
I'm a newbee to Labview... indeed the samples are not interpolated as you show in the graph.
I have the NiDAQ9178. For now I use equidistant points in time but haven't found yet how to do it with different delta times.
I need dt values of order 0.010 to 1 milliseconds, so I cannot do it in a loop.
Maybe I can create a waveform and then resample it and send it to the DAQ.
Regards, Claude.