Im having troubles making the code for my NXT Guitar. Im trying to make it so that when the slider is at a certain distance from the sensor and when the NXT button is pressed it will play the designated note depending on the distance.
The provided link doesn’t take me to a valid webpage. Are you using LabVIEW for Lego Mindstorms? NXT Module/Toolkit for LabVIEW?
You can start by looking at examples in Help>>Find Examples>Toolkits and Modules>NXT Robotics. There are some examples that use the ultrasonic sensor (like Radar Gun) that should be of help. Some tutorials on LabVIEW basics are available on ni.com and LabVIEW's YouTube channel.