I just bought VSM and have been trying my first simulation and so far i need a Tylenol extra headache patch to my forehead. I wrote a program for 08m2 to control a two line lcd1602 display so i can understand how these nice displays work. I assume that my program works fine since the Picaxe editor has simulated it without problems. It was tested step by step which shows the program's highlighted line pointer moving correctly with the logic and giving good values for variables ect... Now i load it in VSM with the circuit and the step mode program highlighted line pointer jumps without sense to various lines of the program...
Ok it might be my circuit so i reduced it to just one Picaxe 08m2 and the same thing happens? Why is it good in the Picaxe step mode editor and in VSM it's chaos? I did an update on the VSM models like it is written for v 7.1 and still the same. I have read the 5 tutorials.
Now i did a simple circuit and program with a 08m2. The circuit has the usual
picaxe socket and only a switch at pin c.1. Thats it . the program is this:
#picaxe 08m2
main:
for b0 = 1 to 20
if pinc.1=1 then goto main
high c.2
pause 100
low c.4
pause 200
next b0
goto main
Again in step mode, the highlighted simulated pointer that shows the line of code executed keeps jumping in a non step by step fashion with this simple program. First the line of the 'for' command is highlighted, then on the next step the 'pause 100' and after pause 200. After that it keep toggling between the two pause command lines. I don't understand why the step mode behave this way. It does not step one line at a time like it should. Visually, it's confusing, not user friendly and impossible to follow with more complex program. Now i have checked some demos included with VSM they also do not show a regular step by step highlighted line pointer on execution, it is jumpy and not like Picaxe editor...
So far, my initial lcd program is jumping without logic in its code is visually impossible to follow in vsm step mode, plus all vsm demo programs in step mode show a jumping highlighted line pointer in VSm. I have read a thread on a similar jumpy program problem but the example in the thread was a bit complex to follow. Do i have a buggy installation or is this bad software design because the free Picaxe editor works super fine contrary to the $80 (CAN) VSM ? Can someone explain this?
Andre
Ok it might be my circuit so i reduced it to just one Picaxe 08m2 and the same thing happens? Why is it good in the Picaxe step mode editor and in VSM it's chaos? I did an update on the VSM models like it is written for v 7.1 and still the same. I have read the 5 tutorials.
Now i did a simple circuit and program with a 08m2. The circuit has the usual
picaxe socket and only a switch at pin c.1. Thats it . the program is this:
#picaxe 08m2
main:
for b0 = 1 to 20
if pinc.1=1 then goto main
high c.2
pause 100
low c.4
pause 200
next b0
goto main
Again in step mode, the highlighted simulated pointer that shows the line of code executed keeps jumping in a non step by step fashion with this simple program. First the line of the 'for' command is highlighted, then on the next step the 'pause 100' and after pause 200. After that it keep toggling between the two pause command lines. I don't understand why the step mode behave this way. It does not step one line at a time like it should. Visually, it's confusing, not user friendly and impossible to follow with more complex program. Now i have checked some demos included with VSM they also do not show a regular step by step highlighted line pointer on execution, it is jumpy and not like Picaxe editor...
So far, my initial lcd program is jumping without logic in its code is visually impossible to follow in vsm step mode, plus all vsm demo programs in step mode show a jumping highlighted line pointer in VSm. I have read a thread on a similar jumpy program problem but the example in the thread was a bit complex to follow. Do i have a buggy installation or is this bad software design because the free Picaxe editor works super fine contrary to the $80 (CAN) VSM ? Can someone explain this?
Andre