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?
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.
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.