LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Remote Debug Setup in CVI7.1

Beyond runnig the config utitliy, what is exactly required to debug a program remotely?

E.g. does the complied debud exectuable need to be on the target computer?

What is the sequence to make it work?
0 Kudos
Message 1 of 8
(4,686 Views)
Yes, you need to to have the debug executable in the target machine, or at least mount in the target machine the location of the executable in the local machine. Actually, if you chose to mount the folder, that's a better option because it saves you the trouble of having to copy the executable each time you rebuild it.

So what you need to do is the following:

1. make sure that the target machine has the CVI run-time engine, plus any other support files that your application might need at runtime.
2. Run the configuration utility in the target machine
3. In the local machine, load the project that you want to debug in CVI.
4. In the local machine, enable remote debugging by clicking Run>>Configure Remote Debugging, and enabling the Accept Network... option.

5. In the local machine click Run>>Debug
6. In the taget machine, launch a debug build of your application.

Hopefully you have Windows XP and you can use Remote Desktop to control the target machine from your local machine. If you don't, you can still do control it remotely, but you'll have to use VNC, for example.

Luis
NI
0 Kudos
Message 2 of 8
(4,686 Views)
This document talks about how to setup remote debugging for CVI as well. Althought it talks about using LabVIEW RT and using dlls, the process is the same for executables. LabVIEW RT is just used to call into the dll on an RT platform. You could do the same thing with CVI on a PC.

Bilal Durrani
NI
Bilal Durrani
NI
0 Kudos
Message 3 of 8
(4,686 Views)
Thanks Luis,

I see that the order is important. This shold be documentedon your web wite, or somewhere in the CVI help.

Terry
0 Kudos
Message 4 of 8
(4,686 Views)
Hi Terry,

Thanks for the suggestion! I will go ahead and create a knowledgebase entry about the steps required to use remote debugging for future customer questions and support issues. Have a nice day!

Jeremy L.
National Instruments
Jeremy L.
National Instruments
0 Kudos
Message 5 of 8
(4,686 Views)
CVI 8.5.0
       Has anyone tried to run VNC (VNC Server Free Edition ver4.1.2) and tried to edit the *.UIR file? my mouse pointer keeps disappearing when I attempt to click on an object in the UIR file in the EDIT mode... (Classic VIEW). project file, H-file, C-file... not affected.
 
 
0 Kudos
Message 6 of 8
(4,164 Views)
Hello ASIC IIBU Tech,

I just tested editing the UIR in CVI 8.5.0 using the latest version of TightVNC (freely available from http://www.tightvnc.com/) with the default settings and I was unable to reproduce this problem.  Do you see the same behavior if you use TightVNC?
0 Kudos
Message 7 of 8
(4,145 Views)

I will have to try. I don't know if TightVNC will work with multiple monitors (spanning) but if it works, I will switch...

 

Thanks

ChipB

0 Kudos
Message 8 of 8
(4,136 Views)