02-16-2013 12:45 PM
Dear community,
Being new in this forum I hope I post this request at the correct board.
My son has used Mindstroms v1.1 to program his NXT brick (v1.3.5). Now he wants to change to LabVIEW2011 (incl. NXT module 2011 with mass compilation). For this reason he wrote a small program to check his touch sensor, incrementing a counter each time the sensor is bumped. The Mindstorms program works well. But its LV2011 counterpart fails to recognise the sensor. So the counter increments all the time even if there is no bumper action just like a loop counter. Using the LV2011 sensor viewer he recieves normal indications. Please check the attached pdf files which depict both programs. Same situation arises if he uses the sonar sensor.
I'm not sure what's going on here. Is it a major misunderstanding in the use of LV2011 like a global setting or is it a kind of compatibility problem between the different versions? Even the VIs from the help tutorial are not running.
Since we are struggeling since last Christmas I hope anyone can give us some good advise.
All the best
Markus
02-17-2013 05:04 PM
You need to include the 'True' case of the conditional block.
We can't see what logic is there when the sensor is 'Bumped'.
02-17-2013 05:11 PM
Also... Why are you sending the 'Enter' button into the conditional logic?
If you want to stop the program when it is pressed, you have already accomplished that by sending it to the 'Stop' function of the loop control block.
02-23-2013 09:23 AM
Thanks for your comment.
Here is the true and false case and the VI.
Also I removed the 'Enter' button in the conditional logic. But still the program doesn't work.
02-23-2013 02:42 PM
Indeed the program works well, since the code is well done and also run it. So I assume it's a problem with the installation of the libraries or the lego NXT Firmware.
The first thing you should check is the firmware version of your lego NXT, ( currently on version "1.31" ) this can be seen in (Tools / NXT terminal), where you can update the version if necessary.
You could also try reinstalling the LEGO NXT toolkin. https://decibel.ni.com/content/docs/DOC-15615
02-25-2013 12:28 PM
Thanks
I update the firmware to 1.31 and install LabVIEW 2011 new.
03-01-2013 12:46 PM
Sorry for my incomplete post, mom got angry.
So once again, I updated the firmware to 1.31 and reinstalled LabVIEW 2011 and NXT toolkit including mass compilation.
But it still doesn´t work.
Has anybody an idea why?
03-10-2013 02:33 PM
Dear community,
I have installed LabVIEW Student version 2011 and the according NXT toolkit on another PC. The counter.vi still does not work.
However, I recognise that the program runs correctly in direct control mode, but not in remote control (touch sensor has no influence). So I am glad, that at least the direct control is fine. Is there anything to be considered before distributing the vi to the NXT brick? Or is a library missing, cause during mass compilation some errors occured, which I have attached in the text file. Where does LabVIEW expect the libraries to be stored?
Hope anybody has some answers.
All the best
Markus