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.

Elapsed time since edge on C1 using TimerInput()


Anton Mar 17, 2024 02:53 PM

I have pulses arriving on C1, C2, C3 and C4, and I would like to measurer the delay of C2, C3, and C4 w.r.t. C1 on a CR1000x.

I tried the following code in my program: 

public elapsed(8)
TimerInput(elapsed(),C1, 1111, 4441, 0, msec)

 but unfortunately it fails to compile, and I haven't found a variation that works

[Version]C:\Campbellsci\Lib\Compilers\CR1000XComp.exe VERSION:CR1000X.Std.06.01 DATE:08/23/2022
test_timerinput.CR1X -- Compile Failed!

line 22: Invalid TimerInput function: 4 for channel C3.
line 22: Invalid TimerInput function: 4 for channel C4.
line 22: Invalid TimerInput function: 4 for channel C5.

Error(s) detected in the program. Double-click an error above to navigate to it.

 Can anyone suggest a solution? 


nardleo Mar 18, 2024 08:38 AM

This post is under review.

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