Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Trigger on regeneration from AO

Solved!
Go to solution
Hello all,
 
 I would like to solve the following issue:
 
I have an NI  AI and AO cards.
They are connected via RTSI line.
AO works at regeneration mode.
 
The goal is to trigger the AI at every regeneration of the AO buffer, thru the RTSI bus. ( and I wouldn't like to use one of the AO lines for this Smiley Happy)
_________________________________________________________________________________________________
LV 8.2 at Windows & Linux


0 Kudos
Message 1 of 4
(3,546 Views)
Solution
Accepted by topic author mishklyar

Hi,

Unfortunately I don't think there is a single elegant solution for this but I think there could be a way around it using counters and a fixed buffer size.

The analog output would be configured as normal.

Counter 1 would be configured on generate pulse train to generate one pulse for n ticks of the AO sample clock where n is the size of the buffer.

Counter 2 would produce a retriggerable pulse train that is triggered by counter 1.  Examples on this are in the example finder at hardware input output>> DAQmx >> generating digital pulses >> Gen Dig Pulse Train-Finite-Retriggerable.vi .  If you have not come across this before it basically produces a signal of n pulses on a trigger and can do this over and over again.

Finally the analog input would have to be a finite acquisiton (as I presume it would be) but would be set up as a continous acquisition but with the output from counter 2 as the sample clock.  I attach an example that configures a counter and an analog input for this retriggerable acquisition.

I hope this what you were after. 

Regards,

James Mc
========
CLA and cRIO Fanatic
My writings on LabVIEW Development are at devs.wiresmithtech.com
Message 2 of 4
(3,543 Views)
Thanks James McN,
 
This is exactly the solution I was looking for.

Would you please attach the example that you are mentioned above?

Thanks,
Michael.
_________________________________________________________________________________________________
LV 8.2 at Windows & Linux


0 Kudos
Message 3 of 4
(3,537 Views)

Hi Michael,

Apologies attached is the example. Best of luck!

Regards,

James Mc
========
CLA and cRIO Fanatic
My writings on LabVIEW Development are at devs.wiresmithtech.com
0 Kudos
Message 4 of 4
(3,518 Views)