11-01-2012 03:24 AM
Hi all
This is my first post in this forum and i hope, that you can help me. I'm sorry for my bad english too, English isn't my main language.
Now to my problem. I made a CNC machine with Labview, the machine was build with a Mindstorms Lego NXT.
The VI should know read the lines in a text file, which content the mouvements for the motors (G-Code). The LEGO Mindsotrms NXT is connected via USB at the PC and the VI runs at the Computer Target Mode. The VI is made in the 2011 Version of Labview with the Lego NXT Addon.
Now the VI is finish but it will works only in the Highlight Execution Mode correct (but there the motors aren't sync and its extremly slow). When I try to run the VI in normal mode, the Motor of the B port doens't work.
Please can you help me.
In the Attachment there is the VI (and an example of the G-Code file (G-Code Beispiel Quadrat).
Thanks you very mutch.
With best regards
Alex
Solved! Go to Solution.
11-01-2012 04:05 AM
Your control loops seem to run unbound (using up all CPU load on the NXT) and probably cause starvation of the other loop.
Add a delay there to mitigate the issue.
Not sure if it helps though.
Br,
/Roger
11-05-2012 04:11 AM
I would also guess that the NXT has problem keeping up the performance while 2 loops are running parallel without any timer.
Could you solve your problem, implementing wait functions in the while loops?
Regards,
Lam