Hi Otto,
Well, not so fast.. these won't work in the case of... jus' kiddin 🙂
They're perfect solutions! You deserve a free upgrade.. but I am not authorised
to give you one 🙂
Khalid
------------
"otto" wrote:
Hey Khalid,
for that problem there are two (three) neat solutions I can offer (do i get
the NI prize for ingenuity and win the upgrade to lookout 4.5??):
1) using two expression an 1 sample object create your Pushbuttons (say Pb1,Pb2,Pb3
to make it simple) create an expression Exp1 : (pb1*1+Pb2*2+Pb3*3) as suggested
before create a second expression Exp2: (Exp1)
so exp2 just referes to exp1 no more will explain later why this is necessary
create a sample Sample1:
data: Exp1
sample: Exp2
enable:
What you will see now, is that Sample1.1 will keep the selected button number,
even if you release the button.
Explanation why you need exp2:
You can not link exp1 directly into Sample1 data and sample, as exp1 will
set the sample trigger before the new value is set in data. Therefore you
create exp2 for the trigger, which ensures that data of sample1 has already
changed. If you want to avoid exp2 then you would have to use not(exp1) as
sample trigger in sample1. This is not quiet so nice, as the cursor will
only change when you release the pushbutton.
2) create your Pushbuttons (say Pb1,Pb2,Pb3 to make it simple) create an
expression Exp1 : (pb1*1+Pb2*2+Pb3*3)
as suggested before
This solution needs a bit of magic is a recursive if expression:
Create Exp2, property:
(exp1)
then modify the existing exp2 property to
if(exp1,exp1,exp2)
exp2 will then retain the last pb number you have to create exp2 this way,
as if you try to create the above if expression on creating exp2, then e
xp2
is not yet recognized by the system as exisiting an will therefore creat
an error.
Have fun