09-23-2010 01:05 PM
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
09-24-2010 09:17 AM
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?
09-24-2010 09:41 AM
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
09-24-2010 02:32 PM
Hello
I have added wait vi into the loop but this does not help
Moshe
09-27-2010 11:12 AM
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.
09-28-2010 08:16 AM
Hello
I think I resolved the reason for the unexpected behivier (although I don"t fully understand the reason)