CHANGE VALUE USING BUTTON


Recommended Posts

I want to change the value in a channel; the channel is updated from incoming serial data using  xxxx.addValue().

I tried changing the value using a BUTTON and the SET TO action but it does not add the value I enter into the set to box.

 

The only way I can get it to work is to:

a. create a global variable; (use DATA for variable name.)

b. Create a button and using the SET TO action, I can write the  value I want to DATA.

c.Create a second button and use the QUICK SEQUENCE action to write data to the channel using xxxx.addValue(DATA);

 

Is there a way to do this with one button???

 

Thanks

 

Bill

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.