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,
That program compiles fine on the current OS version. If the datalogger gives a compile error, update the OS on the datalogger.
Here's a video if you need help:
https://www.campbellsci.com/videos/sending-an-os-to-a-local-datalogger-part-1