Lookout

cancel
Showing results for 
Search instead for 
Did you mean: 

How to set range of ThumbWheels in LookOut Direct

Hi

I am using a pot object for my thumbwheel and it has a increment button and decrement button.

The range of my thumbwheel is from 0 - 9. If i press the increment button after 9 it does not do anything.

I would like to change it so that the range becomes 0 after 9.

For instance if we press the increment button after 9 it should go like 9,0,1,2,3....9,0 and

 for the decrement button after 0 it should be like 0,9,8,7,....0,9.. Can this be done with LookOut Direct?

I have tried using expression like

if(pot.value>9, 0, pot.value)  -------- for increment button, but its not working.

Can you me any suggestions to get over my problem please!!!

Thanks

regards

Kone

0 Kudos
Message 1 of 4
(3,780 Views)
I don't think you can use expression to do that. Lookout doesn't allow a=a+1, or such kind of circular reference.
But I'm thinking if you can use Sequencer object to do it.
 
Ryan Shi
National Instruments
0 Kudos
Message 2 of 4
(3,770 Views)

Hi Kone,

Attached process implements this.  Please see the Pot connections to learn how it has been implemented.  Let me know if you have any questions. 

Regards,

-Khalid

Message 3 of 4
(3,752 Views)
amazing
Ryan Shi
National Instruments
Message 4 of 4
(3,748 Views)