10-14-2010 04:59 AM
10-14-2010 11:25 AM
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;
}
}
10-15-2010 02:42 AM
10-15-2010 09:15 AM
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)
10-15-2010 09:21 AM
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.
10-15-2010 10:02 AM - edited 10-15-2010 10:04 AM
(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