Test and Measurement Forum

time trigger

Post your C and C++ discussions here

time trigger

Postby fernandoluiz » Wed May 11, 2011 2:55 pm

i have a gui program in language C, and i have a problem
sometimes the user select a trigger higher that the value of signal and my program does'nt responds.i would like to know if its possible verify the trigger and if its higher that the signal the program does'nt collect data or collect 0 values
fernandoluiz
Newbie
 
Posts: 0
Joined: Wed Dec 15, 2010 6:13 pm

Re: time trigger

Postby Chris » Wed May 18, 2011 1:25 pm

If using block mode, your application won't collect data until the device has triggered (If the trigger has been set)

You will know what value you have set the trigger at, but won't know what voltage levels are being sampled.

The application will be waiting for the callback to set the g_ready flag to show that data is available.

You can decide what to do if the trigger doesn't occur.


If using streaming mode, you will know what value you have set the trigger at, and will be able to collect data. The callback will set the triggered parameter to show if the trigger occurs.

You can monitor the received signal, and decide what to do.
Chris
Site Admin
Site Admin
 
Posts: 169
Joined: Tue Aug 17, 2010 9:00 am
Location: St. Neots


Return to C and C++

Who is online

Users browsing this forum: No registered users and 0 guests