LabVIEW for LEGO MINDSTORMS and LabVIEW for Education

cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to compile ”Basic move until touch sensor.vi"

Hello,
 
I try to control the motor using the "Basic move until touch sensor.vi" in the example of the toolkit.
But, I have a trouble in compiling. The error message said
 
 " Error: Unsupported case structure value, only single value cases and Default, are supported "
 
The error seems to be occured at the case structure in the example program whose input value take other than true or false.
 
I'm using the toolkit with Labview 7.1, and other example such as Basic chart.vi were successfully compiled and run on the NXT.
 
What is the cause of my problem?
Is something missing from my development environment?
 
Thank you for your help in advance.
 
S. Komatsuzaki
 
 
 
0 Kudos
Message 1 of 15
(10,191 Views)

Hi zaki,

is it a shipped example? Did you change something on it?

Mike

0 Kudos
Message 2 of 15
(10,188 Views)

Hello, Mike

No, I didn't make any change.

 

0 Kudos
Message 3 of 15
(10,179 Views)
Same problems happened when I tred to use touch sensor or NXT button.
There were no problems with light sensor or sound sensor.
 
I'm using Japanese version of Labview7.1. (NXT toolkit 1.0.1 patch has already been installed.)
 
Is it related?
0 Kudos
Message 4 of 15
(10,152 Views)
Please send a screenshot of your VI as well as the block diagram of the touch sensor VI.  I suspect something has changed in there.
Joel Sumner
NI-Shanghai
0 Kudos
Message 5 of 15
(10,145 Views)
Thank you for your reply.
 
Here are copies of block diagrams of my own VI and NXT_touch_sensor_VI.
The errors were occured at the case structure at the lower left of NXT_touch_sensor.VI.
Download All
0 Kudos
Message 6 of 15
(10,132 Views)
Hi zaki,
i created the vi from your picture and it works for me. Maybe you can try it and it works for you, too, because the other one was corrupt.

Hope it helps.
Mike
0 Kudos
Message 7 of 15
(10,125 Views)
Thank you, Mike!
But sorry the vi you provided doesn't work again.
I re-installed the toolkit, but the condition has not improved yet. 
 
Does "the other one"  you wrote mean the NXT_touch_sensor2.jpeg which I attached?
If so, you can see the details by zoom in the picture. 
0 Kudos
Message 8 of 15
(10,116 Views)

Hi zaki,

i thought the NXT_touch_sensor2.jpeg shows the original touch sensor vi and it´s contained in my  example. I can compile and download the before attached example without any problems.

Mike

0 Kudos
Message 9 of 15
(10,114 Views)

I found the same problem issue in message 7 of the thread "LabVIEW Toolkit for LEGO MINDSTORMS NXT bugs"  posted by Borsch in 12-09-2006 06:10 AM. 

In the relating reply messages, there was a conclusion saying that the toolkit does not support the local version of Labview. In fact, He was using German version.

Since, I am using Japanese version of Labview 7.1.0, I also installed "NXT_toolkit_1_0_1_patch". I think that is not working fine, however.

 

 

  

    

 

0 Kudos
Message 10 of 15
(10,111 Views)