Quantcast
Channel: Digital I/O topics
Viewing all articles
Browse latest Browse all 2167

Log events

$
0
0

Dear Forum members,

 

We are using a custom build setup that drives behavioural experiment paired to a microscope. We created a driving program using the NIDAQmx C driver. The program runs an event-driven state machine which reads digital inputs and reacts accordingly with generating digital outputs to drive some instruments (e.g. microscope scanner, water pumps, playing of audio files etc.). The NI card we are using is NI PCIe 6321 X-series.

We seek advice on how we configure the logging of events (either DI or DO change of line). By logging we understand that the system runs a monotonous hardware clock, that has the fastest frequency from the whole system and we would like to log to file the clock step upon event. 

Here are the options we came up with:

1.) The card has 2 clocks, should we use one of them as a master clock from the system and read it upon an event?

2.) Should we use DAQmxRegisterSignalEvent on a task and create a CVICALLBACK function to read time upon an even? But is there a way to retrieve event time from task directly?

3.) What about DAQmxConfigureLogging? We could not find a proper example of its functionality. Is it designed with the same purpose?

 

Any suggestion or helpful advice will be highly appreciated!

Thank you in advance!

G.


Viewing all articles
Browse latest Browse all 2167

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>