LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to trigger a DAQmx task ??

Hello,
 
I made a simple vi with DAQmx to read pulses from an encoder.
 
A task (count pulses) is set to continuously read the counter input and second task (generate pulses) is set to send a pulse.
 
I'd like to set the second task so that it generate a pulse every time a bunch of 100 pulses are received by the "count pulses" task... 
Can somebody tell me how to "link" my 2 tasks ?
 
 
BTW, am I tha only one to think that DAQmx phylosophy is absolutely not easy to catch ?? Smiley Surprised Or maybe I'm just simple minded Smiley Indifferent

Message Edited by Lara on 03-09-2006 04:52 AM

Message Edited by Lara on 03-09-2006 04:53 AM

Message 1 of 3
(2,877 Views)

Hi Lara, I'm not sure if this is possible, but one way I've thought you might be able to do it is to to create an array with with the every element a False except element 99 which would be True to be your pulse. You then use the signal on the count pin as your clock so that every time you read a pulse you write out another element in the array until you get to the end of the array.

That was probably terribly explained! I've attached a .vi which will hopefully give you an idea of what I mean.

Good luck

David C

David Clark
CLA | CTA
Genesee Technologies Ltd
Hampshire, England
Message 2 of 3
(2,855 Views)

Hi David,

Thanks alot for the time you spent to attach the example (and for calling it my name Smiley Wink), I like you idea and will try it out at once.

But still... I would be very surprised if it's not possible to "virtually link" the counter input to the output... Smiley Indifferent that is just a simple divisor and I heard that some Vision boards have this as a built-in option.

 

Thanks again 😉

Message 3 of 3
(2,843 Views)