Hi Ariel_Z
Have a problem with the GetCurrentStatus command which i can not get to work. It comes back with a weird error any help appreciated as always.
All the other commands work fine.
Thanks
Code :
Sub Globals
'Declare the global variables here.
Dim m1,m2,s1,s2,i
End Sub
Sub App_Start
stp.New1
stp.InitStp
stp.RunMotor1(1000,10,0,0)
stp.GetCurrentStatus(m1,m2,s1,s2,i)
End Sub
Error :
An error ocurred in sub main.app_start
line number: 10
stp.GetCurrentStatus(m1,m2,s1,s2,i)
error description
Attempted to read or write protected memory. This is often an
indication the other memory is corrupt.