NI Home
Cart Cart | Help
Hello Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI
You are here: 
NI Home > NI Developer Zone > NI Discussion Forums


Reply
Active Participant
lvrat
Posts: 246
0 Kudos
Accepted Solution

TS_PropertySetValNumber Options

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,CTD
*************************************************
Active Participant
lvrat
Posts: 246
0 Kudos

Re: TS_PropertySetValNumber Options

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

 

int selectedTestIndex = 0;

......

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

 

 

*************************************************
CLD,CTD
*************************************************
By using this web site, you accept the Terms of Use for this web site. Please read these Terms of Use carefully before using any part of this site. Please go here for information on ni.com's copyright infringement policy.
My Profile | Privacy | Legal | Contact NI © 2011 National Instruments Corporation. All rights reserved.    |    E-Mail this Page E-Mail this Page