LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

What does this error mean?

Solved!
Go to solution

Hi  Verne

 

I understand that difference of putting the input to the structure outside the loop, But still cannot make the boolean toggle to operate the flood light in the graphing_value_6.vi I have attached and although the sensor values are displayed the lamp does not respond to user input. If it was on in the begining of the run it stays on and if it was of the user changing the toggle does not have any affect. 

 

While the similar vi with the old nxt sub vi that does not need the case structure is operating OK

 

can you run it to see for yourself?

 

Thanks

 

Moshe

0 Kudos
Message 11 of 16
(1,222 Views)

I don't have the nxt VIs currently installed, but I noticed you haven't included a wait VI in your loop. This can make the front panel somewhat unresponsive. Does adding one improve your results?

Verne D. // Software R&D // National Instruments
0 Kudos
Message 12 of 16
(1,210 Views)

Hello

 

You said : If you put it in the loop it will read the current value after each iteration. and this exectly what i looked for but when i run this vi in debuge mode and expect the user to change the status of the lamp -it does not change!!!  this is what i was trying to explain.

 

Regards

 

Moshe

0 Kudos
Message 13 of 16
(1,206 Views)

Hello

 

I have added wait vi into the loop but this does not help

 

Moshe

0 Kudos
Message 14 of 16
(1,195 Views)

You might want to try storing the reference to the NXT in a shift register to make sure we are talking to the correct instance. Code might look something like this.

NXT.png

Verne D. // Software R&D // National Instruments
0 Kudos
Message 15 of 16
(1,179 Views)

Hello 

 

I think I resolved the reason for the unexpected behivier (although I don"t fully understand the reason)

 

 

  • When I ran the program I used the NXT as the target and run in debug mode (see capture 1 pic), I got the chart on the PC , the value on the NXT screen but the control had no affect.

 

  • If I ran the same progran on the PC as target ,(see capture 2 pic)  I get the Chart and influence of the toggle switch as expected but the display on the NXT screen does not show the value but the NXT Shell screen.
So this leads me to more question and obviously to the need to learn the two mode differences.
Can you point me to the best source for that ?
Thanks
Moshe

 

 

Download All
0 Kudos
Message 16 of 16
(1,156 Views)