07-16-2012 04:58 AM
Dear all,
I have a serious problem with the Lego NXT module for LabVIEW. I'm wrote a software for electrochemical measurements that has to inferface with a custom made potentiostat that is integrated with a microfluidic system, whose peristaltic pumps are moved by Lego NXT motors. Since the motors add mechanical and electrical noise to the measurements, I wanted to create a simple VI that could synchronize the motors with the measurements. I managed to do it, but when I create the executable file (the software has to run on computers that do not have LabVIEW installed, so I need to create a stand alone application to distribute it among the partners of this project) the VI that controls the motors do not work anymore and returns me an empty error message.
I hope that the problem is clear.
Now, my question is the following: Can I insert a VI that controls NXT motors in a compiled application that has to run on any PC that hasn't LabVIEW installed?
Thank you very much in advance
Lando
07-17-2012 08:09 AM
Hi Lando,
Have you already installed LV run-time engine on the machine without environment? Which is your Labview version?
Regards,
Enzo
07-20-2012 10:28 AM
Hi Lando,
I expect you wont be able to use the dual mode NXT API in a labview built executable because that API makes calls into private labview application instances that wont exist in the context of an executable.
However, you should be able to use the older NXT Direct I/O API (these are the VIs with grey icons). This API can not be deployed to the NXT, but it sounds like you aren't interested in that anyway.
The Direct I/O palette can be found at NXT Robotics:NXT I/O: NXT Direct I/O .
Note that with this API you will be responsible for creating and destroying handles(NXT Objects) to the brick.
Good luck and let me know if you have more questions.