william Posted April 2, 2017 Share Posted April 2, 2017 I cannot get "getlength" to prin to the Command/Alert window I tried using device.XBEE.purge() private string datain private data private length private thetime while (1) try datain = device.XBEE.readUntil(asc('x')) //read serial sentence ? datain //display datain sentence in command/alert window thetime = systime() if (left(datain,5) == "$PUMP") //valid data stream length = getlength(datain) ? length data = parse(datain,1,",") ? data data.time = systime() PU_bar_p.addValue(data) But the "? length" does not display anything in the Command/Alert window. Attached is complete sequence. Help appreciated. Thanks Bill PUMP.txt Link to comment Share on other sites More sharing options...
This topic is now archived and is closed to further replies.