Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

How to set up 4 square pulses (10us period) every 2ms?

Promised examples saved in LabVIEW 8.2.  I think (and hope) I remembered to save the right values as defaults so it'll work properly right away.

Both examples throw a rapidly-changing number on the front panel that helps demonstrate that the task is really running.  Note that you can only run one example at a time.

Post back if they don't work right -- I verified tasks alive without errors on a real PCI board, but without any terminal block to monitor actual signals.

-Kevin P.

ALERT! LabVIEW's subscription-only policy came to an end (finally!). Unfortunately, pricing favors the captured and committed over new adopters -- so tread carefully.
0 Kudos
Message 11 of 17
(1,979 Views)
Thanks a ton Kevin, I really appreciate it.  I'll give them at try at work tomorrow (I don't have LabVIEW or a DAQ card available right now). 

Will/might these work in LabVIEW 7.1?  If not, can they be converted to work in 7.1 in some way?
0 Kudos
Message 12 of 17
(1,975 Views)
Sorry, you won't be able to open them in 7.1.  Maybe some kind soul reading this thread can help back-save them to 8.0 and then 7.1?  (I've got 8.2 and 7.1 but I never installed 8.0 and can't do this myself.)

The alternative is that I can whip up the example again native in 7.1.  I may only do the one that's like Ed's post as that's really the more sensible approach at this point.   There's no real advantage in the one that uses a dummy AI task, other than to illustrate a technique that may come in handy another time.  I'll at least post a screenshot of it though.

-Kevin P.
ALERT! LabVIEW's subscription-only policy came to an end (finally!). Unfortunately, pricing favors the captured and committed over new adopters -- so tread carefully.
0 Kudos
Message 13 of 17
(1,972 Views)
0 Kudos
Message 14 of 17
(1,960 Views)
Hi, I am trying something similar, using 2 counters to create a retriggerable pulse train (so with a slow and a fast frequency). I tried example 2 on my PCI-6030E but I get an error. Does anyone know how to solve it?

What I do not really understand is why it seems to be so difficult to generate a signal which creates several fast pulses after eachother and then waits for sometime until it does it again? I guess it should be possible to use one counter as trigger for the other, but somehow there is no example that does just that.

Or is it just not possible??

Message Edited by Kamu on 03-27-2007 09:16 AM

0 Kudos
Message 15 of 17
(1,920 Views)
Hello Kamu,

The error that you are getting is caused by routing the signal incorrectly. Reference the following KnowledgeBase on this error message.

Why Do I Get Error -89136 "Specified route cannot be satisfied, because the hardware does not suppor...

With regards to your other question about programming a signal that creates a series of pulses and then waiting for a time before repeating the siganl, take a look at the following shipping examples:

Cont Write Dig Port - Ext Clk - Non Regenration.vi

Gen Dig Pulse Train - Finite - Retriggerable.vi

Look at the write digital channel examples and digital pulse train examples. I hope this gives you a place to start.

Regards,
  Sandra T.

Applications Engineer | National Instruments
0 Kudos
Message 16 of 17
(1,891 Views)
Hi, Thanks a lot for your help. I have it working now. I also found a program in another thread which helped me. Apparently I can only use one of the counters as a pause for the other and not the other way around.
0 Kudos
Message 17 of 17
(1,886 Views)