Our full technical support staff does not monitor this forum. If you need assistance from a member of our staff, please submit your question from the Ask a Question page.


Log in or register to post/reply in the forum.

Recording time of event with SDM-IO16 and CR1000


texagg98 Feb 14, 2019 01:46 PM

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?


adamhiggins887 Feb 17, 2019 06:20 PM

I have almost the same question can someone please share any experience.


aps Feb 19, 2019 10:04 AM

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.

Log in or register to post/reply in the forum.