Hi
I have some trouble getting streaming of CIO1 (DIO17) and CIO18 (DIO18) to work properly. I’m setting up the address for LJ1 to be:
[0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 61520, 4899, 2017, 4899, 2018, 4899, 2500]
Prior to this I do a configuration of the channels by as I want to stream a pulse counter with the frequency of app. 112 KHz.
(name = "DIO17" / "DIO18")
ret = ljm.eWriteName(self.ljHandle, name + "_EF_ENABLE", 0)
ret = ljm.eWriteName(self.ljHandle, name + "_EF_INDEX", EF_INDEX_PULSECNT)
ret = ljm.eWriteName(self.ljHandle, name + "_EF_ENABLE", 1)
I get no errors back, and I can read the correct values in command response mode so hardware counter seems to be work. Any idea to solve this issue.
Kind regards
Steen
Addresses 2017 and 2018 read the states (high or low) of CIO1 and CIO2. If you want to stream the counter values from CIO1 and CIO2, use the DIO17_EF_READ_A and DIO18_EF_READ_A registers. Try this scan list instead (changes in bold):
[0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 61520, 4899, 3034, 4899, 3036, 4899, 2500]
Great it works. Thanks a lot.