06-01-2009 10:45 AM
Hi guys I have an event structure which handles two cases, one of them is to write some external hardware and the other is to read from it.
There are 2 methods of reading and writing to this part through its Volatile and Non Volatile Memory.
To decide between these two functions I have placed a control toggle switch outside of the event structure, each event "read" and "write" need instant access to this control.
When I place the switch outside the event struc its is of course not read immediately in the event but delayed a bit because of the connector at the border of the struc.
When I place the button inside in the event struc it is read everytime instantly and the appropriate Volatile or Non Volatile write/ read takes place instead of having to execute the event twice to update the value.
I would like both cases to have instant access to this toggle switch as if it would be placed inside in each event .
Is it possible to create 2 instances of a front panel control on the block diagram ?
Solved! Go to Solution.
06-01-2009 10:49 AM
eoin87 wrote:Is it possible to create 2 instances of a front panel control on the block diagram ?
Yes. Use a local variable of the front panel control in the other event case. Right-click on the control and select Create -> Local Variable.
One of the few times that a local variable has merit.