04-13-2006 09:22 AM
Solved! Go to Solution.
04-14-2006 02:59 PM - edited 04-14-2006 02:59 PM
Hello Stefo,
If I understand your question correctly, you wish to trigger your analog acquisition
if you get a pulse on your TRIG1 or TRIG2 line. Unfortunately, this is
not possible with an E Series device alone. You would require some
external hardware to 'OR' you two triggers. If you were using an M Series
board (with DAQmx), you could use the pattern matching start trigger.
Digital events have very limited support on E Series boards, and the
PCI-MIO-16E-1 does not have digital events. You can view more information on E
Series digital events here.
The only other option I see available to you is to create a digital input task
where you read two lines as fast as you can. As soon as you see the
expected values on these lines you can start your analog task. This would
work like a software trigger, and would not start as fast as a hardware
trigger.
Regards,
Jesse O.
Applications Engineering
National Instruments
Message Edited by Jesse O on 04-14-2006 03:01 PM
04-15-2006 12:02 AM
Hi Jesse,
Does the MIO16 have two counters, and (if so) do you think they might be exploited to implement a NOR gate as follows:
A constant high is wired to CTR 0 SRC, and 0 OUT is enabled when 0 GATE is LOW.
CTR 0 OUT is wired to CTR 1 SRC, and CTR 1 OUT is enabled when CTR 1 GATE is LOW..
So, CTR 1 OUT should stay high unless/until either CTR 0 GATE (Stefo's Trig1) or CTR 1 GATE (Trig2) goes high.
It's been a long time since exploring counters, sorry if this is silly for some reason. If not, then Stefo may have the OR he needs...
(?)
04-17-2006 06:45 PM
04-17-2006 08:41 PM
Hi Jarrod,
Thanks for trying to understand what I'm suggesting! ![]()
Cheers.
04-19-2006 12:07 AM
Hi Stefo,
You're probably way past this by now, but if you still want to trigger your PCI-MIO-16 on either of two inputs, I think it's simple...
- if you're configured for differential input...
If so, wire both of your triggers to the same AI - one to the plus side, and one to the minus side. When one trigger fires, it will pull that AI up or down. Use that AI channel as the trigger source and configure a trigger "window" around the untriggered level. It's called "window triggering" in the "E Series help" and if there's a good example I didn't see it. However, open "AI Trigger Config.vi" (Advanced AI palett) and look at the "Trigger or Pause" options - "Trigger upon leaving window". From what you've said it seems unlikely that both triggers will occur so close together as to negate each other - though it's theoretically possible.
As an added bonus, you only need to acquire one channel to monitor both triggers! ![]()
Cheers.
04-19-2006 01:59 AM