LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How to control TS Operator Interface

How can I control TestStand Operator Interface from CVI?

I'd like to move the TestStand Operator interface to one side of the
screen so that my CVI program can display its own panle on the rest of
the area.
How do you do that?
How can you maximize the TS panel?

Thanks
Rafi
0 Kudos
Message 1 of 4
(2,720 Views)
Rafi,

If your are using the TestStand Operator Interface (OI) written in
CVI, you can use the SetPanelPos function to change the position of
the OI panel programmatically.

With the SetPanelAttribute function you can set whether the panel can
be minimized or maximized, but to actually minimize or maximize a
window programmatically you'll probably need to use a Windows API
function.

Matt P.
Applications Engineer
National Instruments
0 Kudos
Message 2 of 4
(2,720 Views)
Thank you Matt,

1) position - I found it eventually and used 2 setAttribute functions
to achieve the same. The function you suggested is better and I used
it instead.

2) max/min - Where do I find Windows API? It is not listed in the
library. Is it some sort of ActiveX I need to install?

Thanks
Rafi


"Matt P." wrote in message news:<506500000005000000345C0100-1075935269000@exchange.ni.com>...
> Rafi,
>
> If your are using the TestStand Operator Interface (OI) written in
> CVI, you can use the SetPanelPos function to change the position of
> the OI panel programmatically.
>
> With the SetPanelAttribute function you can set whether the panel can
> be minimized or maximized, but to actually minimize or maximize a
> window programmatically yo
u'll probably need to use a Windows API
> function.
>
> Matt P.
> Applications Engineer
> National Instruments
0 Kudos
Message 3 of 4
(2,720 Views)
Rafi,

Windows API is a Microsoft tool.

I believe the function you will want to use is the 'ShowWindow'
function:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/WinUI/WindowsUserInterface/Windowing/Windows/WindowReference/WindowFunctions/ShowWindow.asp

You'll see from the above web page that the ShowWindow function is in
the user32 library, which should be found under C:\WINDOWS\system32 in
a DLL form.

I hope that helps.

Best Regards,

Matt P.
Applications Engineer
National Instruments
0 Kudos
Message 4 of 4
(2,720 Views)