LabVIEW for LEGO MINDSTORMS and LabVIEW for Education

cancel
Showing results for 
Search instead for 
Did you mean: 

Created executable file problem

Hi everyone

 

I'm using NXT toolkit with my Labview 2010. Now I'm trying to built the executable file from my VI. My VI is pretty simple consists of 1 motor and 1 Knob as controller. I used the usb for the connection between pc and NXT brick. I attached the VI and the exe file below. 

However, after successful built, the executable file seems like doesn't connect to the NXT motor. I mean even I move the Knob, there are nothing changes in the motor. 

I found this link http://digital.ni.com/public.nsf/allkb/522DF60F5531EA02862574F60074525A . In my case, however, I'm using USB instead of bluetooth and actually, I can't find the NXTToolkit.BluetoothLibraryReferences.vi in my pc. Therefore, I don't know how solve this hard problem.

Please help me to overcome this problem. 

Thank you so much.

 

Mina

---Let it works---
Download All
0 Kudos
Message 1 of 7
(6,629 Views)

Alot of the NXT Toolkit won't work when running from an built exe because it is not supported. If you need to use an exe, you will have to use only the functions found NXT Direct I/O palette. You can find it at "NXT Robotics: NXT I/O : NXT Direct I/O". These vis are slightly more advanced than the rest of the toolkit, but they will work from labview built executable.

 

0 Kudos
Message 2 of 7
(6,619 Views)

Thank you so much for your comment

 

That is the good sound for me while the NXT direct I/O is supported. I'm trying to use the motor unlimited in NXT Direct I/O. Howerver, I'm not familiar with using that. Therefore, my VI couldn't connect with the motor.

I attached the VI below. Please help me consider it and indicate the problem.

Please let me know if any clarification is needed of my issue.

 

Thank you so much and looking forward to hearing from you

 

Best regards

 

Mina

 

---Let it works---
0 Kudos
Message 3 of 7
(6,611 Views)

These Direct I/O functions are more complicated because you are required to find and initiate a connection the NXT Brick before you can manipulate the motors. At the end of your program you will need to release the connection as well. Please see the Connection palette under NXT Direct I/O.

 

0 Kudos
Message 4 of 7
(6,608 Views)

Hi ESearl

 

Thank you so much for your help. The motor works very well by following your VI. However, unfortunately after build, the executable file couldn't work. I mean there are same problem as last time even using NXT direct I/O. 

Please help me consider it.

Thank you so much

 

Best regards

 

Mina

---Let it works---
0 Kudos
Message 5 of 7
(6,599 Views)

I just tested with your vi and am able to build an application and run the motor successfully.

One issue is that you should always push the "stop" button on your front panel and never push the "Abort" button. This is to ensure that the NXT object is properly released.

 

More likely is that you may not be able to run LabVIEW and your Application at the same time. They are both making use of the sam NXT driver, and the driver was not designed for this usecase.

Try quittting LabVIEW and then opening your application. If that doesn't work you may even want to reboot your computer.

0 Kudos
Message 6 of 7
(6,586 Views)

Hi ESeal

 

Thank you so much for your deeply understanding and enthusiasm. Finally, it's working. The problem lies on the confliction between executable file and labview If they are performed at the same time.

 

Thank you again and best wishes!!

 

Mina

---Let it works---
0 Kudos
Message 7 of 7
(6,579 Views)