NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

accessing a CVI *.uir control

In TestStand, my sequence calls a CVI Action, which is linked to a function
call in a CVI code module. The first such action display a panel from the
CVI developed UIR. The next step calls a CVI code module and tries to set a
control attribute on the displayed panel.

The SetCtrlAttribute calls from CVI no longer work with the displayed panel.
Do I need to go through the TestStand API to set/get control attributes?
Can you provide an example call.

Chris
0 Kudos
Message 1 of 2
(4,527 Views)
Chris,

I put an example on the ftp site at ftp://ftp.ni.com/incoming/
Download UpdateCVIPanel.zip

This example demonstrates how to update a CVI panel at runtime.
The panel handle is stored as a global variable in the DLL.
If you want to respond to panel events, you should use another thread to
catch the events. This will ensure that the panel appears responsive.

You can refer to the Open Panels During Execution example on the examples
database at
www.ni.com/support/epd/

Hope this helps,
Paul


"Chris Schuhmacher" wrote:
>In TestStand, my sequence calls a CVI Action, which is linked to a function>call
in a CVI code module. The first such action display a panel from the>CVI
developed UIR. The next step calls a CVI code module and tr
ies to set a>control
attribute on the displayed panel.>>The SetCtrlAttribute calls from CVI no
longer work with the displayed panel.>Do I need to go through the TestStand
API to set/get control attributes?>Can you provide an example call.>>Chris>>
0 Kudos
Message 2 of 2
(4,527 Views)