Hello.
I'm using a 6601 counter and are using NI-DAQ to write my c-code for my application.
The system that I want to setup the coutner for is a two modules talking to eachother. The first module sends a message every xx minute, and the second module wakes up and listens to only this single message. The message is about 10mS long.
I want to write an application that verifies that the two modules are sending / receiving at the same time, which means that i want to get the.
1. period of each separate module
2. for how long each module sends a message, receives a message.
3. The time difference between the rising edge of the sending module and rising edge off receiving module.
I was thinking of setting up acounter to run on a 10Mhz and then make a "time stamp" every time the edge changes form high-> low and low->high without reseting the counte. But I can't find such a funcion in the NI-DAQ library reference. the closest function that I can find is "ND_BUFFERED_SEMI_PERIOD_MSR" but the problem is that the counter is reset every time the gate changes.
Q1. Does anyone know a way of reading the counter in "ND_BUFFERED_SEMI_PERIOD_MSR" mode without reseting the counter?
Q2. Is it possible to connect two inputs to the same counter? I want to measure the period of both modules using the same timebase, so it would be great if i could use just one counter.
Best regards//
Daniel Grafström