Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Need "Trigger Detected" or "Acquisition Complete" Output From DAQ Assistant

I'm using DAQ Assistant in a loop. I need to terminate the loop based on whether DAQ Assistant has been triggered (or is done acquiring N samples). Software=LabView7.0. Hardware=PCI-6052E. I have configured the DAQ Assistant to these settings:

Task Timing
Acquire N Samples
Samples to Read: 100
Rate (Hz): 1000.00

Task Triggering
Start
Trigger Type: Analog Edge
Source: PFI0
Slope: Rising
Level: 2.500

It seems to be triggering accurately, but I need a "Trigger Detected" signal to terminate the loop.
Is there a way to get a "Trigger Detected" Boolean from DAQ Assistant?

Alternatively, is there a way to configure DAQ Assistant to monitor PFI0? The only channels available under "Add Channels To Task" seem to be ai0 through ai15.

Alternatively, is there a way to determine if DAQ Assistant has completed acquiring N Samples?
0 Kudos
Message 1 of 6
(3,444 Views)
The better way is not to use Assistant (it should be possible to create an example with all required steps in the natural DAQmx functions based on the Assistant configuration automatically). In that case you can easy check if the task has been triggered or not. Also, you will be able to set the timeout and check for error after WaitTaskDone function.

May be it is possible to check the error of Daq assistant output (if it throw error when trigger has not been captured, or set timeout for such task)...
0 Kudos
Message 2 of 6
(3,437 Views)
I need to know the PFI0 status too.
Is there any wethod to monitor if the trigger event really happened?
0 Kudos
Message 3 of 6
(3,436 Views)
> I need to know the PFI0 status too
For this you need to create another task (Digital input) and just read what line you need (PFI0 should be port1/line0 I think).

> Is there any wethod to monitor if the trigger event really happened?
Not sure that I am correctly understand you question 🙂
If the task is done (IsTaskDone return true or WaitForTaskDone does't return timeout error) that means trigger has been occurred.

Think it will help
Good Luck!
0 Kudos
Message 4 of 6
(3,433 Views)
I want to use strat trigger function in my data acquisition system.
That means there will be a couple of seconds hold before acquisition starting.
Sometimes, the program fails to respond my trigger event when a button wired at pin 14 (5V) & pin 11(PFI0) with PCI-6224 pushed.
What should I do?
Is it okay that I use a button to directly wire pin14 and pin11 to function as a trigger event?
0 Kudos
Message 5 of 6
(3,430 Views)
Hello Zenith,

Theoretically, it should be ok to put a button between pin 14 and pin 11 to act as your trigger. Some more information might help us figure out why the trigger is not being registered every time.

1) Is the program set up for rising edge or falling edge triggering?
2) What kind of button are you using?
3) Do you notice any differences between the times when the trigger event is registered and when it is not (for example, the length of time you hold down the button)?

E.Lee
Eric
DE For Life!
0 Kudos
Message 6 of 6
(3,402 Views)