LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Stand-alone Variable Manager available for download anywhere?

I'm experimenting with network variables. If I just want to copy my program to a PC that ha just the runtime installed, it doesn't work. Is there a way to install the Variable Manager without installing the whole CVI or building a distribution?
-----------------------
/* Nothing past this point should fail if the code is working as intended */
0 Kudos
Message 1 of 6
(3,777 Views)

There isn't a standalone version of the CVI debugger, but you can debug remotely. If you can access the PC where you're having the problem from the PC where you have CVI installed, you can set up CVI to debug it remotely (Run>>Select Execution Target for Debugging>>New Execution Target). In the remote PC, you need to make sure that you're running a debug configuration of your program, and you also need to copy and run the configureremotedebugging.exe tool, which you can find in the bin folder under the CVI installation directory.

 

For more information, you should read the Using LabWindows/CVI>>Debugging Tools>>Remote Debugging topic in the CVI help.

 

Luis

typedef struct {
 short sVar1;
 short sVar2;
 char cVar1[512];
}MyStruct2;

 

typedef struct {
 MyStruct2 ReadMyS2;
 MyStruct2 WriteMyS2;
 MyStruct2* pReadMyS2;
 MyStruct2* pWriteMyS2;
}MyStruct1;

 

int main()

{

 MyStruct1 MyS1_Phis[3]={0};
 int i = 0;

 // init
 
 for(i=0;i<3;i++)
 {

  MyS1_Phis[i].pReadMyS2 = &MyS1_Phis[i].ReadMyS2;     

  MyS1_Phis[i].pWriteMyS2 = &MyS1_Phis[i].WriteMyS2;
 }

}

0 Kudos
Message 2 of 6
(3,757 Views)
Thanks, but I thought that the Network Variables are more than just a debugging aid... They can be used for OPC as well (http://digital.ni.com/public.nsf/allkb/9C66E414F9E0022A8625740A00536C67), or not? The question is: How to deploy a program, that uses NVs? In my case preferably with installing the corresponding engine and copying the exe.
-----------------------
/* Nothing past this point should fail if the code is working as intended */
0 Kudos
Message 3 of 6
(3,728 Views)

I just found out I need the Variable Engine not the Manager, sorry.

 

I've build my own installer and it works - but only on localhost. The variable is not available over the network. I've turnd the firewall off but to no avail. Any security setting or an attribute I missed?

 

(And I still would like a stand-alone installer of the Variable Engine)

-----------------------
/* Nothing past this point should fail if the code is working as intended */
0 Kudos
Message 4 of 6
(3,701 Views)

You can deploy a Network Variable program by creating a Distribution installer in CVI. See the Build >> Distributions menu. In CVI 2009, one of the components you can select and redistribute in the Drivers and Components tab of the Edit Installer dialog is the NI Distributed System Manager - this is similar to the now obsolete Variable Manager. Also, refer to the 'Deploying Network Variables' topic under Library Reference >> Network Variable Library in the CVI Help.

0 Kudos
Message 5 of 6
(3,699 Views)

(The help is also available here: http://zone.ni.com/reference/en-XX/help/370051M-01/cvi/libref/cvinetvardeploying)

 

A recap:

- I could not reach the target because name resolution was not up-to-date. The target PC did have an other IP address (via DHCP) than my PC thought it had.

- A program that just reads Network Variables only needs the CVI run time

- Publishing requires the NI Variable Engine installed

- To install the engine on the target PC you need to build a Distribution

 

How to configure the firewall: http://zone.ni.com/reference/en-XX/help/371361D-01/lvhowto/psp_firewall

-----------------------
/* Nothing past this point should fail if the code is working as intended */
0 Kudos
Message 6 of 6
(3,693 Views)