serial in timeout does not simulate

giuseppe

Member
Hello all

I have been trying make this line of code work within my program but VSM seems to have a problem running it.

Code:
serin [300],5,7,b0
When I try to run this code by itself outside of my program (meaning what is above is the only thing I am trying to simulate) the 28X1 in VSM will give the error: "Syntax Error". However, within the PICAXE editor, it reports no errors.

I instead tried to us the code:

Code:
serin 5,7,b0
...and it works. This seems to be implying that for some reason, I am not able to use a timeout within VSM.

Anyone know of why this is happening?
 

Technical

Technical Support
Staff member
You can either update the 28x1 compiler (picxe28x1.exe) in VSM to the latest version, or just use this equivalent instead:

serin [300, nextline], 5, 7, b0
nextline:
 
Top