02-13-2014 05:26 AM
Hello,
I'm working with Timing Module 6674T. My question is: how can I detect a trigger signal in LabVIEW which goes to the PFI0 Port of Timing Module. There are a lot of trigger related VIs but no of those VIs give me a state of the trigger or input voltage so that I could check myself.
greetings
christian
02-17-2014 05:44 PM
so nobody has an idea?
or is this question to specific?
02-18-2014 05:32 AM
hi,
I attached an example.
for me it is not clear what exacly you want to do.
02-18-2014 05:42 AM - edited 02-18-2014 05:56 AM
I can explan in more details. I have a NI 5663E Analyzer and this Timing Module. I wrote a program in LabVIEW which configures thoses devices, reads data from the Digitizer and write it to the disk.
By now I've only integrated a manual Start/Stop Aquisition and Start/Stop Record Button on the GUI. Now I wand to implement a Trigger - System in which the programs waits until the Timing Module receives a trigger signal and then starts. For this I have to have a way to monitor the trigger status ( trigger received, or not yet received) in LabVIEW. If this would c++ I was looking for a method like bool CheckTriggerStatus().
In the event of an detected trigger signal my aquistion and logging loops would start until a certain amount of samples were recorded (will be set by the user on th gui or an ini-file).
I hope this gives you a better picture.
greetings
christian
edit:
I've just made a little - not working - code scratch in labview. this code is really just to illustrate what I want and where I want to go.
02-18-2014 06:31 AM
what about the "basic level trigger detection.vi"?
02-18-2014 06:40 AM - edited 02-18-2014 06:52 AM
@Richard
Do you mean this ?
In that case: In my algorithm I need a information about the trigger status to start the aqusition, I have no data before this. The Basic Trigger VI needs an signal to decide if a trigger-threshould were crossed. At least this is what I understood from this basic trigger vi ( am I right/wrong here?).
if this is true, this does not do the trick, because I need a trigger signal in my program BEFORE it reads data from digitizer.
greetings
christian
edit:
and to be precise here. I'm working with different NI-Devices.
My IQ-Data I get from NI PXIe-5663E
and my Trigger-signales I get from this NI PXIe-6674T
and I really need only a way to read the data from PFI0..5 from 6674T ( trigger signals comes from accelerator facilities) to check if a trigger signal were on those lines. If I could read the voltag levels on this 6674 it would be enough, but there seems to be no vi to do this .. really frustrating from my end. I don't mean the very nice trys to help me, but the labVIEW documentation etc.
I hope nobody misunderstands me
02-18-2014 10:46 AM
Hi Christian,
On the PXIe-6674T, you can check the level (high or low) of the PFI0 by using the NI-Sync PFI Line State property node:
Trigger State Properties»PFI Line State
If you need change the voltage sensitivity of PFI0, you can adjust its voltage threshold with the following property:
Calibration Properties»PFI0 Threshold
You can quick drop an NI-Sync property node by typing [Ctrl] + [Space] then niSync Property Node.vi + [Enter].
Hope this helps,
-Tyler