Lookout

cancel
Showing results for 
Search instead for 
Did you mean: 

Having problem with pot value

I have a spreadsheet with values for mix designs. I load these values on the screen with the recipe object. I have a pot for each of the values in the mix design and have the value parameter connected to the headings in the spreadsheet. When i change recipes the values from the spreadsheet load into the pots....if i want to alter the values i can just change the pots....everything works fine unless one of the pot values happens to be zero and I change it to another value. When the next recipe is loaded it won't change that pot to zero if the value is now zero. If it's something other than zero it will change that pot. It's like it won't load zero to a pot that was previously zero and changed with the pot if that make sense....any hints what's going on here...thanks..randy
0 Kudos
Message 1 of 4
(6,155 Views)

The datamember from recipe are read only. How do you connect a pot to it and change the pot's value?

 

Could you give a sample?

 

As you said, a pot value happens to be zero. Is it expected or not? After the recipe loads the data from spreadsheet, unless you change the recipe, the datamember's value should not change. So the pot's value should not change automatically. When the pot happens to be zero, what's the value of the recipe datamember?

Ryan Shi
National Instruments
0 Kudos
Message 2 of 4
(6,141 Views)
when ever the pot value is changed it will change with the next recipe unless the value in the pot was zero and you change it to another recipe that has a zero for that value....it won't change...if there is anything besides a zero...it will change
Download All
0 Kudos
Message 3 of 4
(6,122 Views)

It is the expected behaviour...

 

If you have expression A = B, as Lookout design, only when B changes, its value will be sent to A. When you operate A manually, A will have a new value which is different from B. A will keep that new value, because B doens't change and its value is not sent to A to overwrite it.

 

The recipe object is the same. Even if you change the recipe, the datamember is the same one. If you operate the pot manually, the pot will have a new value. When you change to another recipe which is also zero, the "zero" will not be sent to the pot because it was zero and no change. That's why the pot will not go back to zero until you change to another recipe which has a non-zero value.

 

 

Ryan Shi
National Instruments
0 Kudos
Message 4 of 4
(6,054 Views)