Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

Syncronizing based on CO, retriggerable

Solved!
Go to solution

I would like to synchronize AI, AO and DO finite tasks that are retriggerable based on a CO pulse train.  I have set up a CO Pulse Freq task to run off ctr3 of my 9178 chassis.  The rising edge triggers the AO to start, the falling edge triggers the AI and DO to start.  Provided these finite tasks are short enough they should be retriggerable, thus each time my CO sends a pulse they should restart. 

 

Having trouble making this work, get an error that the AI task is not retriggerable (using 9222).  Can anyone provide guidelines on how to set such a scheme up?

 

Gracias.

0 Kudos
Message 1 of 3
(5,881 Views)
Solution
Accepted by topic author Telleurium

Hello Telleurium, 

 

The error you are getting is expected because the 9222 does not support retriggerable tasks, but the onboard counters of the 9178 are retriggerable. I suggest you make the CO Pulse Freq Output a finite generation, set up a trigger for this task, set it to retrigger, and use it as the sample clock for the AI, AO, and DO. This will allow you to create a retriggerable  AI, AO, and DO based on the ct3 of your 9178 chassis. Examples of what I mentioned above can be found in the many locations. Here are a few to get you started.

 

https://decibel.ni.com/content/docs/DOC-6801

https://decibel.ni.com/content/docs/DOC-14581

https://decibel.ni.com/content/docs/DOC-4131

 

 

Best Regards,

 

Izzy O.

Applications Engineer

National Instruments

www.ni.com/support

 

  

0 Kudos
Message 2 of 3
(5,874 Views)

Yes, this worked nicely, thanks!

0 Kudos
Message 3 of 3
(5,828 Views)