06-15-2010 01:07 PM
Using a Timer on a control panel, which triggers a callback function to sample data. I'd like to read a numeric input from the user interface panel, and then set that value as the Timer interval. But how do you write to the Timer interval? The obvious function does not seem to work,
SetCtrlVal (panelHandle, PANEL_TIMER, SampleSeconds);
Solved! Go to Solution.
06-15-2010 01:20 PM
Hello -
You'll want to use SetCtrlAttribute:
NickB
National Instruments
06-15-2010 01:40 PM
06-15-2010 01:51 PM
Probably the best place to start is with the top level help for the control you're interested in. I usually just go to the index tab in the help, start typing the name of the control (timer in this case) and then pick the top level help topic. From here, you can see the attributes you can use, the events you can capture, programming concepts, etc.
NickB
National Instruments