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.

CS616 in CR1000x


Marianna Apr 24, 2025 02:00 PM

Dear all, I have  a problem with a CS616 water reflectometer and the program in CR1000x.
CR1000x acquired also eddy covariance data so I have two scan instructions:

1) Scan (100,mSec,15,0)  

......

NextScan

2) Scan(10,Sec,0,0)

.....

and these instruction to read the reflectometers

If TimeIntoInterval(0,10,Sec) Then
CS616(TDR1,1,13,C7,1,1,0)
TDR1=-0.0663+(-0.0063*PA_uS1)+(0.0007*PA_uS1^2)
CS616(TDR2,1,14,C8,1,1,0)
TDR2=-0.0663+(-0.0063*PA_uS2)+(0.0007*PA_uS2^2)
EndIf

I cannot compile the progam:

[Version]C:\Campbellsci\Lib\Compilers\CR1000XComp.exe VERSION:CR1000X.Std.08.01 DATE:09/19/2024
Eddy_Jolanda.CR1X -- Compile Failed!

line 235: CS616 not allowed inside of a conditional statement in PipeLine Mode.
line 237: CS616 not allowed inside of a conditional statement in PipeLine Mode.
Error(s) detected in the program. Double-click an error above to navigate to it.

How can I solve this problem? What does it mean?

Thanks who can help me


JDavis Apr 25, 2025 10:22 PM

The CR1000X program is being forced to compile in pipelinemode, which is needed for eddy covariance. In that mode, it is not allowed having measurement instructions like CS616() within an If statement.

Put the CS616 measurements in a slow sequence scan.

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