VeriStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Connect to System: Error 7 Trying to Deploy System Definition Using Gateway.dll

If you receive Error 7 from Connect to System while using the Gateway.dll, it's because the VeriStand Data folder is not adjacent to the EXE.  While in the development environment, the EXE is LabVIEW.exe.

 

 

0 Kudos
Message 1 of 2
(2,263 Views)

I read and took this code (callVSGatewaySilent) in this post: https://forums.ni.com/t5/NI-VeriStand/Is-there-a-possibility-to-start-the-VeriStand-2011-SP1-Gateway...

 

I changed the Current Directory to "C:\Program Files (x86)\National Instruments\VeriStand 2018" with Environment.CurrentDirectory, before launch the Gateway. It starts correctly and I can retrieve the handle with GetIWorkspace2 method, but when I use ConnectToSystem method (http://zone.ni.com/reference/en-XX/help/372846M-01/veristandsdapi/html/m_nationalinstruments_verista...) an error occurs (error code 7).

 

The ConnectToSystem method is not the problem, beacuse if I launch my code from this path "C:\Program Files (x86)\National Instruments\VeriStand 2018" it works (no error).

 

The problem could be the setting of the current directory?

 

Francecso

0 Kudos
Message 2 of 2
(1,733 Views)