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.

Number of bytes must be less than input buffer


PM Mar 27, 2026 09:18 AM

Hello,

Any idea why this does not compile? With error message for the SerialInRecord: "line 30: Number of bytes 16 must be less than input buffer 0"

I've set the buffersize in serialopen to "17".

Datalogger is CR1000X

'Main Program
BeginProg
Scan (1,Sec,0,0)
PanelTemp (PTemp,15000)

'Flowmeter
SerialOpen (ComC1,38400,0,0,17,0)
SerialOut (ComC7,"DCFTP0001","",0,0)
SerialInRecord (ComC7,FlowString,0,16,&H13,NBytesReturned,01)
SplitStr (FlowResult(),FlowString,",",3,5)

CallTable Test

NextScan

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