dkraja Posted March 3, 2023 Share Posted March 3, 2023 Hi, I am trying to code the data logger with a trigger but it is not working. I took an example of an mcc118 data logger and implement the trigger. but it is not working. can you suggest an example? Link to comment Share on other sites More sharing options...
0 DAQman Posted March 3, 2023 Share Posted March 3, 2023 Hello, External Trigger (rising edge default) is enabled by including OPTS_EXTTRIGGER with the options. For example, options = OPTS_EXTTRIGGER | OPTS_CONTINUOUS. By doing this, the acquisition should wait for a rising edge TTL signal to appear on the trigger input. In other words, the trigger must rise up from below 0.66 volts to above 2.64 volts. Best regards, John Link to comment Share on other sites More sharing options...
0 dkraja Posted March 4, 2023 Author Share Posted March 4, 2023 (edited) i am trying to add an external trigger in the data logger c code. i put options = OPTS_EXTTRIGGER | OPTS_CONTINUOUS function , but not working. I want to execute the trigger function Rising Edge after the start button is pressed wait for the trigger, then start the logging and automatically logging stops when the next trigger Falling edge occurs, modified_logger.c Edited March 4, 2023 by dkraja Link to comment Share on other sites More sharing options...
0 dkraja Posted March 13, 2023 Author Share Posted March 13, 2023 Hello, i am again trying the options = OPTS_EXTTRIGGER | OPTS_CONTINUOUS. now it is working fine. Now we need to add one more trigger to stop the logging. also, too much fluctuation in analog read voltages, so can we add sample averaging or some filter to get the proper value? uint8_t trigger_mode = TRIG_RISING_EDGE; working but uint8_t trigger_mode = TRIG_FALLING_EDGE; not working. Link to comment Share on other sites More sharing options...
0 DAQman Posted March 13, 2023 Share Posted March 13, 2023 Hello, There is only a start trigger, stop trigger is not a supported operation. Link to comment Share on other sites More sharing options...
0 dkraja Posted March 14, 2023 Author Share Posted March 14, 2023 can we use a finite scan trigger? , our project logging time is 1 second. so please suggest how to do this also needs to average the samples because of too much fluctuation in voltage. Link to comment Share on other sites More sharing options...
0 DAQman Posted March 14, 2023 Share Posted March 14, 2023 Hello, The logger program was created to demonstrate what is possible with the support. It's too complex to be a programming example. I do know if changing to a finite scan will work without massive changes. The onus is on you to dissect it and make it work. I would like to throw out a suggestion. Get to know the finite_scan and continuous_scan examples really well, then attack the logger program and mold it to your requirements. Best of luck, John Link to comment Share on other sites More sharing options...
Question
dkraja
Hi,
I am trying to code the data logger with a trigger but it is not working. I took an example of an mcc118 data logger and implement the trigger. but it is not working. can you suggest an example?
Link to comment
Share on other sites
6 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now