Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Combining analog input and frequency counter

I am trying to measure a voltage as a function of a frequency. The application must be trigged by a signal at the apfi input. I have not found any way of trigging the counter from the apfi input. It is important that the frequncy is measured at the same point as the voltage, or at least at a constant delay. It would also be appreciable to acquire pretrigger-samples. The card I am using is ni-usb 6259.

0 Kudos
Message 1 of 6
(3,516 Views)

Hey,

 

You can trigger an AI Task with a analog signal connecte to APFI. However a counter task for frequency measurements cannot be triggered.

Also I assume that when talking about a trigger you understand to use a external signal as kind of sample clock. A trigger at DAQmx is unique event to e.g. start an acquisition.

 

Christian

0 Kudos
Message 2 of 6
(3,492 Views)

What you can try is to configure AI's trigger to use level triggering at APFI line and then set the Counter's trigger settings (using 'DAQmx Trigger' property node)  as follows

 

ArmStart.TrigType: Digital Edge

ArmStart.DigEdge.Src: DevName/ai/StartTrigger

ArmStart.DigEdge.Edge:  Rising

 

After doing this start the Counter task first and then the AI start task.

 

Even though I have used triggering of counter with AI starttrigger, I have not yet tried cascade triggering that I have suggested above. So may be you can just give it a shot. 

 

Please let me know what happened.

Message Edited by kikiduu on 02-05-2009 04:48 AM
------

"A VI inside a Class is worth hundreds in the bush"
യവന്‍ പുലിയാണു കേട്ടാ!!!
0 Kudos
Message 3 of 6
(3,488 Views)
@kikidu:  you cannot set a trigger for a frequency counter task.
0 Kudos
Message 4 of 6
(3,475 Views)

Christian_M wrote:
@kikidu:  you cannot set a trigger for a frequency counter task.

May be you are right, I have used it for edge counting using counter not for frequency measurement using counter.

Message Edited by kikiduu on 02-05-2009 09:53 AM
------

"A VI inside a Class is worth hundreds in the bush"
യവന്‍ പുലിയാണു കേട്ടാ!!!
0 Kudos
Message 5 of 6
(3,465 Views)

@kikidu: No, I'm sorry, you where right, you can use an arm.start trigger with this bord. It just does not work with E-Series boards.

 

 

Christian 

0 Kudos
Message 6 of 6
(3,461 Views)