LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

client server debugging in LabWindows/CVI 8.0

I am developing a LabWindows/CVI User Interface, which can "launch" and control (Start, pause, continue etc.) any chosen test program.  The test program will be a seperate .exe.  The UI will also receive and display test results from the test program.   I am using TCP/IP for comminications between the server (UI) and the client (test program).  Both the client and server are on the same machine.  I am using the LabWindows/CVI TCP functions to do the work.
 
When the server (UI) is running in the debugger and launches a test program I would like the test program also to be running in another instance of the LabWindows/CVI debugger.   Actually I've never gotten two instances of LabWindows/CVI to run at the same time.  Opening another instance seems to close the first.  Anyone know how I can have client and server in the debugger at the same time?  Thanks.
 
JJT
0 Kudos
Message 1 of 6
(3,550 Views)

Hi JJT, 

 

You can do it, just opening twice CVI, I have done it so many times.

 

Good Luck

Image Hosted by ImageShack.us
0 Kudos
Message 2 of 6
(3,541 Views)

Thank you.  Can the LabWindows/CVI debug environment be forced when a program is launched from another program?  This of course presuming the program to be launched is complied as a debugged ese and has a .cdb file.  Thanks

JJT

0 Kudos
Message 3 of 6
(3,538 Views)

Hi,

What means "to be forced" ?

I suppose you want to debug both programs, server and client at the same time, so you can set brakpoints on the send/receive callbacks.

If this apps will allways work with both programs on the same machine, i suggest to you to use 127.0.0.1 IP adress so it works even without ethernet port on the PC

I have some experience in this communications, maybe I can help you If you specify exactly where is the problem.

 

Xavi

Image Hosted by ImageShack.us
0 Kudos
Message 4 of 6
(3,531 Views)
Hi,

I would recommend taking a look at the samples\activex\cvi\cvidemo.prj example.  You can use the CVI automation server to launch a new instance of the CVI environment, load your test project, build it, and debug it.  I have used this method to create a test runner very similar to the one you describe.

Hope this helps.

Mert A.
National Instruments
0 Kudos
Message 5 of 6
(3,527 Views)

The activeX cvidemo.prj seems to be exactly what I want.  Thanks.

JJT

0 Kudos
Message 6 of 6
(3,519 Views)