LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with VI in Normal Mode, but not in Highlight Execution

Solved!
Go to solution

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

0 Kudos
Message 1 of 3
(2,910 Views)
Solution
Accepted by topic author A.L.

Your control loops seem to run unbound (using up all CPU load on the NXT) and probably cause starvation of the other loop.

 

Unbound.JPG

Add a delay there to mitigate the issue.

 

Not sure if it helps though.

 

Br,

 

/Roger

 

0 Kudos
Message 2 of 3
(2,899 Views)

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

0 Kudos
Message 3 of 3
(2,849 Views)