LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Trigger time out in edge trigger mode in NI scope 5112.

I have a problem concerning NI scope 5112.
Using Edge trigger with no trigger avaiable, the vi gives an error (after a time out).
 I would like that in absence of trigger, the software reads the "imeddiate" signal instead, just like an oscilloscope
0 Kudos
Message 1 of 2
(3,063 Views)
This functionality is not included in the NI-SCOPE API, but it is fairly easy to create.  The basic method is as follows:
  1. Set up your device the way you want it.
  2. Initiate the acquisition (niScope Initiate Acquisition.vi).
  3. Check the device status at your timeout interval (niScope Acquisition Status.vi)
  4. If data is available, fetch it with a zero timeout (niScope xxx Fetch xxx.vi)
  5. If data is not available, change trigger mode to immediate, fetch with a timeout long enough to allow acquisition, then change trigger mode back to edge
  6. Loop until done
This is a special case of the generic polled acquisition.  I attached a polled acquisition example.  You will need to add step 5 above to the empty case which just goes on if the data is not ready.  Set the loop delay to your timeout time.  Let us know if you have difficulties.
0 Kudos
Message 2 of 2
(3,058 Views)