04-09-2013 03:40 PM
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.
04-10-2013 04:33 PM
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.
04-11-2013 07:08 AM
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.