03-28-2007 02:17 AM
03-29-2007 08:48 AM
03-29-2007 12:13 PM
03-30-2007 02:44 AM
03-30-2007 08:21 AM
You should be able to configure your trigger for the 5112, initiate the acquisition, and then poll the acquisition status by calling "niScope Acquisition Status". If the acquisition completes, your trigger was received. You do not have to fetch any data in this case.
03-30-2007 08:56 AM
06-04-2013 10:16 AM
I'm having a triggering/acquisition issue as well.
My digitizer is set up for triggered acquisitions. I initialize the acq then start polling the device using Acquisition_Status for a specified amount of time. Every now and then my loop times out (i.e. didn't get the IVISCOPE_VAL_ACQ_COMPLETE response from the function call). So I'm trying to determine if the problem is:
1. Unit did not receive the trigger.
2. Unit received the trigger but didn't have enough time to complete the acquisition.
3. Received the trigger but had some other problem.
It would be helpful if I could query the instrument to see if it did in fact receive a trigger signal which would help isolate the fault. I can't find anything in the NI_SCOPE documentation that indicates if this would work with a 5154 digitizer.
06-04-2013 10:25 AM - edited 06-04-2013 10:37 AM
The last post in this thread was in 2007, your question will get better visibility if you post your question as a new topic and link this thread.
To answer your question, if the fuction returns NISCOPE_VAL_ACQ_IN_PROGRESS, then that means that the trigger was recieved, but that the acquisition engine is still acquiring samples. COMPLETE means that all the samples that have been requested have been acquired and are ready to send to the host.
You can also use the Attribute NISCOPE_ATTR_POINTS_DONE or NISCOPE_ATTR_BACKLOG to find out if the acquisition has begun (recieved reference trigger), the values will be greater than 0.
I hope this helps.
06-04-2013 10:56 AM
Great - Thanks!
06-04-2013 12:25 PM
"To answer your question, if the fuction returns NISCOPE_VAL_ACQ_IN_PROGRESS, then that means that the trigger was recieved"
Nathan, can you confirm this please? When I look at the header file
#define NISCOPE_VAL_ACQ_COMPLETE IVISCOPE_VAL_ACQ_COMPLETE
#define NISCOPE_VAL_ACQ_IN_PROGRESS IVISCOPE_VAL_ACQ_IN_PROGRESS
ACQ_COMPLETE = 1
ACQ_IN_PROGRESS = 0
I seem to be getting the in progress message before the trigger is occurring and I'm wondering if the "in progress" message could mean that the instrument is also waiting for a trigger or rather, that the acquistion has been initiated but not completed.