LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem using " square waveform " for cycles longer than 1 sec

Hi everyone,
 
I have attached a very simple VI that I use to  create an AO square wave form signal. It works fine for cycles that aren't longer than 1 sec for instance : 100ms high and 900 ms low... this works fine. However this kind of cycle doesn't work : 2 secs high and 3 secs low...the result isn't correct   Would anyone have an idea how to do this?
 
I have replaced my AO by a graph.
 
Thanks,
 
regards,
 
Marc
0 Kudos
Message 1 of 4
(2,653 Views)
Marc,

Look at the Sampling Info cluster which you left unwired, and, therefore at the default values. Default is 1000 Samples per second and 1000 samples => 1.000 second of data. Change the number of samples appropriately to get the results you asked for.

Lynn
Message 2 of 4
(2,647 Views)

Hi Lynn,

 

Thanks for your answer. Works fine now !

 

Regards,

 

Marc

 

 

0 Kudos
Message 3 of 4
(2,630 Views)
Marc,

I am glad you have it working now.

A situation like this will help you remember that default values can be a great convenience, but you need to check that the values set by the VI's author match your needs. The context help often shows default values and you can always look at the VI front panel.

Lynn
0 Kudos
Message 4 of 4
(2,623 Views)