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.

CR1000 Getting Serial input SerialInRecord() cannot compiled unknown instruction error


eng Sep 7, 2017 02:49 PM

Hi, 

I'm trying to get a serial input from my own serial sensor, and for now just to monitor it. I wrote a simple code for this purpose. I'm getting a Cannot Compiled Unknown Instruction SerialInRecord(Com3,SerialInString,35,0,42,NBytes,01) Error.

I'm using CRBasic Editor and PC200W, and the CR1000. Here is the code;

Public NBytes as Long

Public SerialInString as String * 25

DataTable (Test,1,9999)
DataInterval (0,15,Sec,10)
Sample(1,SerialInString,IEEE4)
Sample(1,NBytes,FP2)
EndTable

BeginProg
SerialOpen(Com3,9600,0,0,10000)
Scan (5,Sec,3,0)
SerialInRecord(Com3,SerialInString,35,0,42,NBytes,01)

CallTable Test

NextScan

EndProg

Thanks,


JDavis Sep 11, 2017 04:19 PM

That program compiles fine on the current OS version. If the datalogger gives a compile error, update the OS on the datalogger.


jra Sep 11, 2017 04:48 PM
Log in or register to post/reply in the forum.