High-Speed Digitizers

cancel
Showing results for 
Search instead for 
Did you mean: 

pxi 5142 triggered status attribute?

I have a PXI 5142, I am providing an input signal to one of the channels.  This seems really simple and I can't seem to figure it out.  

 

I am using labwindows. I want to just see if the digitizer was triggered.  so I set up the system where the input should occur, initialize a session with digitizer with triggering etc, wait for some amount of time the triggering event should occur in, check to see if the triggered condition occured, true or false. 

 

This is breaking my brain.  i feel like this should be really easy, but I am struggling... any guidance would be appreciated.  

0 Kudos
Message 1 of 3
(5,603 Views)

Hi TechNew,

There is not a specific trigger property/attribute that you can monitor. An option would be to set a Boolean to true within your acquisition loop, if your acquisition occurs this means your trigger occurred. Another option would be to export the trigger to a PXI card that has a counter, if your counter increments you know the trigger occurred.

 

-Jake B.

0 Kudos
Message 2 of 3
(5,580 Views)

was able to get the desired effect by clearing out waveforms before check, setting up desired trigger settings, reading NISCOPE_ATTR_RECORDS_DONE attribute and make sure its 0, then start acquisition and allow time for system response that should trigger capture, then poll NISCOPE_ATTR_RECORDS_DONE again to see that a waveform was captured. if desired trigger event did not occur, NISCOPE_ATTR_RECORDS_DONE will return 0, otherwise it should have captured a waveform due to trigger

thanks.

0 Kudos
Message 3 of 3
(5,573 Views)