I am trying to use a SDM-IO16 with a CR1000 to record the start and stop times of lights, blowers, and cooling units. The SDM-IO16 documentation shows that the I/O line can be used to trigger an interrupt on the logger in order to record time of state changes. However, the examples are all written for Edlog loggers, and it's not very clear how to do it with CRBasic. Can anyone with experience with this type of setup offer some insight?
I have almost the same question can someone please share any experience.
Most of the newer loggers support the Waitdigtrig instruction that when included in a Slowsequence can reproduce the P97/P98 interrupt subroutines used in the older loggers. Please see the CRBasic help on that instruction.
This can be used with the SDM-IO16 "interrupt" line to capture times of transitions. As well as data storage instructions the slow sequence should include a call to the SDMIO16 instruction to read the ports, both to check which one triggered the interrupt and also to force the SDM-IO16 to reset the line back to its normal low state so it can be "triggered" again.