ni.com is experiencing intermittent service disruptions.

Support teams are actively working on the resolution.

LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

TS_PropertySetValNumber Options

Solved!
Go to solution

I am using GetCtrlIndex() to obtain the index of selected value in ring control. Need to set fileglobal with the value of index. TS_PropertySetValNumber() takes double, is there any other function or options to set the varaible with index value?

 

****************************

int *selectedTestIndex = 0;

switch (event)
{
case EVENT_COMMIT:

GetCtrlIndex(gMainWindow.statPanelTab,control,selectedTestIndex);

 

tsErrChk(TS_PropertySetValNumber(TSSeqContext, &errorInfo, "FileGlobals.Monitor.TestSelection", 0, selectedTestIndex));  //this takes double and errors out with selectedTestIndex, need to set the varaible with index value of ring control.

}

******************************

TIA.

*************************************************
CLD
*************************************************
0 Kudos
Message 1 of 2
(2,892 Views)
Solution
Accepted by topic author lvrat

Don't believe options would work so modified the definition:

 

int selectedTestIndex = 0;

......

GetCtrlIndex(gMainWindow.statPanelTab,control,&selectedTestIndex);

 

 

*************************************************
CLD
*************************************************
0 Kudos
Message 2 of 2
(2,889 Views)