NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How to launch NI SPY programaticaly from TS?

Hi,

My GPIB communication does not work properly unless the NI SPY is active. Until I resolve this issue, I would like to launch the NI SPY programatically.

Can anybody show me how to do that?

Thanks

Rafi
TestStand 3.0
0 Kudos
Message 1 of 4
(3,175 Views)
Hi Rafi,

You need to use the Call Executable step type. Place the full path to NiSpy.exe in the Step.Executable property and set it not to wait but return immediately.

See the manual Chapter 4-17 for more information.

Regards
Ray Farmer
Regards
Ray Farmer
Message 2 of 4
(3,175 Views)
Thanks Ray,

I got it running. The only problem now is, how to activate the program to run (F8 from the program).

Is it possible to do programatically?

Thanks
Rafi
0 Kudos
Message 3 of 4
(3,175 Views)
Hi Rafi,

I dont believe there is but there is a setting in NiSpy when set will start capture automatically after NiSpy is launched.
You will find it in menu item Spy | Options... and it the check box Start NI Spy with capture on. By default this setting is off.

Hope this helps
Regards
Ray Farmer
Regards
Ray Farmer
0 Kudos
Message 4 of 4
(3,175 Views)