NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

What value should I pass to 'objecttobrowse' parameter of DisplayBrowseExprDialog method ?.

I am writing an edit settings UI for a custom step type (AC DC Voltage Measurement using NIDaqmx) in VC++ for Teststand 3.1.
I am using the 'DisplayBrowseExprDialog method' to allow "Physical Channel" value to be set with the expression browser.
The expression browser should contain the Device names and channels, so that the user can select the Device no./Channel.
What value should I pass to 'objecttobrowse' parameter? Is it possible to do this way ?
0 Kudos
Message 1 of 2
(2,784 Views)
Based on what you've said, I would not recommend using the DisplayBrowseExprDialog method at all.  The intention of this dialog is to display properties relative to a particular sequence context.  Based on what you've said, it sounds like you need an ordinary combo box.  You can use the TestStand ExpressionEdit control (set to combo box), or (what I would recommend) simply an ordinary combo box with a list of values.  These values can be pulled by using the function DAQmxGetSysDevNames (http://forums.ni.com/ni/board/message?board.id=231&message.id=4175&requireLogin=False).  In any case, the objecttobrowse input is expecting a sequence context, which would show how a list of device names is not appropriate for this method. 
Thanks,

Andy McRorie
NI R&D
0 Kudos
Message 2 of 2
(2,764 Views)