LabVIEW for LEGO MINDSTORMS and LabVIEW for Education

cancel
Showing results for 
Search instead for 
Did you mean: 

input conditions not working with nxt motor case strucutre

Hello,

 

I am working an application that classifies keyboard note frequencies (via myDAQ assistant etxtract single tone) and the frequency is fed into the nxt case structues to control the robot depending on the frequency values.

 

The frequency is being read correctly, but the NXT robot is not reposnding and only turning on to the defualt case.

 

I cannot figure out why the case structure is ignoring the frequency inputs. attached are screenshots of the block diagram, and the .vi.

Thanks

evan

Download All
0 Kudos
Message 1 of 2
(4,228 Views)

Have you tried turning on highlight execution to follow the data through the wires? It could be that the input to your case structure isn't what you're expecting, or that the frequency is what you expect but is not a valid input for the NXT robot. I would check what range of values are valid for frequency inputs for the robot.

 

The following resource provides information on highlight execution and other tools in LabVIEW.

 

Debugging Tools in LabVIEW

https://www.ni.com/getting-started/labview-basics/debug

0 Kudos
Message 2 of 2
(4,206 Views)