08-28-2008 06:17 AM
Hi,
I am using USB 6229 to acquire AC voltage. I need plot history as well as the cursor on the plot , so i used waveform graph to plot the analog waveform data read from DAQ assistant.I have used build array to bulid the history of data and plot to waveform graph. I do not want to use waveform chart as it does not support cursors.
I have attached the VI. I have defined 100 samples at the rate of 1000 S/sec. If i give wait timer with 1000ms delay, and i stop the loop after 6 iterations, i get 7 secs of data when I run the program. Every sec gets appended on the Graph as I am building the waveform.
But i need a resolution of 10 ms on the Graph. That is,, there are changes taking place in the analog voltage channel within 1 sec , (150 millisec, there may be voltage and 250 millisec, there will be no voltage). so this has to be depicted on the Graph. If i use dealy of 1000millisec, i am losing the change occuring in the voltage. So how do i adjust the samples/sample rate/delay?
If i give delay of 10 ms and iteration as 700. I do not get the data corresponding to the actual seconds.
08-28-2008 08:20 AM - edited 08-28-2008 08:21 AM
hema wrote:
...But i need a resolution of 10 ms on the Graph. That is,, there are changes taking place in the analog voltage channel within 1 sec , (150 millisec, there may be voltage and 250 millisec, there will be no voltage). so this has to be depicted on the Graph. If i use dealy of 1000millisec, i am losing the change occuring in the voltage. So how do i adjust the samples/sample rate/delay?
...
Assuming a screen resolution of 1024 point (so 1k for your graph), you can have 10s displayed with 10ms resolution .. without using any kind of zoom 😉 .
Have a look into the examples (Help-Find examples) to see how to set samplerate and number of points to read. A short lookup brings :
Acq&Graph Voltage-Int Clk.vi
08-28-2008 08:52 AM