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.

Stream out from cr1000


satoe Apr 1, 2020 03:23 AM

I have a script but it can't be compiled because writing came out " Expression too long break it up "

'open serial port
SerialOpen (COM1,9600,0,0,100000)

'output serial string
If ASRS.output(1,1) Then
SerialOut(COM1,"MMI"&""&Year&";"&Month&";"&DOM&";"&hour&";"&minute&";"&sundir_azimuth&";"&sundir_altitude&";"&diffuse_rad_round&";"&DNI_rad_round&";"&global_rad_round&";"&reflected_rad_round&";"&UVA_rad_round&";"&UVB_rad_round&";"&IR_rad_round&";"&nett_rad_round&";"&Sunshine_minutes&CR&LF,"",0,100)
EndIf

please give mee solution...

thanks...


JDavis Apr 1, 2020 02:37 PM

Create a string variable. On a line before SerialOut(), set the string equal to the expression. Then, use the string as the source for SerialOut().

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