From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Square very low frequency signal

Hello,

for an experiment I need to send to a device a low frequency square signal.
In fact I would like to be able to set the high level delay and low level delay.
I don't think the "simulate signal express" can fit to my needs.
I believe that I should use a sequence inside an infinite loop while.
The first sequence
 set output to 0 (a numeric float constant)
The second sequence
 wait x seconds
The third sequence
 set output to 100 (a numeric float constant)

and so one

But I don't know if it's a good way to do like this...

Any idea ?

I also encountered a problem when I try to send the 2 constants (0 and 100) to a display.

I don't know what I should do.

I hope you can help me

Best regards
0 Kudos
Message 1 of 7
(3,320 Views)
Hi,

I think your solution is a good one, it allows you to set all the parameters you need. Have you tried? does it work ?

Regards

Richard Keromen

0 Kudos
Message 2 of 7
(3,290 Views)
I don't think so !
The problem is that if I want to stop the sequence (because as I said it before... it can be quite long !) I can't.
Sequences can't be break !
See my posts on LAVAG forum
http://forums.lavag.org/Generate-my-own-input-signal-for-a-device-t10532.html
http://forums.lavag.org/Break-abort-a-long-sequence-t10544.html

I wonder if I shouldn't use
Express / Input / Simulate arbitrary signal
(not sure of the translation because in french it's
Express / Entrée / Simuler un signal arbitraire)
0 Kudos
Message 3 of 7
(3,288 Views)
Hi,

I suggest you to use a State machine, if it's not already done. See the exemple given in the link below.
Hope it will fit your spec.

Regards

Richard Keromen

0 Kudos
Message 4 of 7
(3,280 Views)
Sorry but I can't try your vi with your DAQ board !
Moreover I wonder if using a state machine is a good solution because what should I do
if I want to change the square for a sawtooth signal ?

Best regards
0 Kudos
Message 5 of 7
(3,274 Views)
Hi,

Have you solved your issue? Did you find a solution?

Regards

Richard Keromen

0 Kudos
Message 6 of 7
(3,241 Views)
Yes I use the VI Express / generate abitrary signal
All the VI are in my SVN repositery
http://svn.berlios.de/viewcvs/openphysic/labview/turbo-wrenturbines
svn checkout svn://svn.berlios.de/openphysic/labview/turbo-wrenturbines
see trunk/input dir
I like this VI Express instead of using sequences because I can easily stop it.
(because breaking/abording a sequence doesn't seem easy)
0 Kudos
Message 7 of 7
(3,239 Views)