04-16-2009 03:59 PM
The UIR has a group of 20 buttons all associated with the same callback function. There is a case statement for each button which does a bunch of stuff when that button is pressed.
Here is the question:
While accessing statemachine code I need to simulate a UIR button press. Can regular code invoke (the above) a callback function or is that taboo? I could have a dedicated function but it would be exactly the same as the callback function.
I don't know if this is recommended or not? LabWindows might not like it?
NOTE: When executing statemachine code all the above buttons are dimmed so that they would be inactive during the invoked call to the callback function.
Thanks for any insight.
Solved! Go to Solution.
04-16-2009 04:03 PM
Hello -
The function CallCtrlCallback in the Programmer's Toolbox should be exactly what you are looking for.
NickB
National Instruments
04-16-2009 04:10 PM
That did it.
Thanks Nick.
04-24-2009 10:10 AM