LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Debugging RT engine code

I have a PXI chassis with the 8176 controller. I have code consisting of a VI that runs on the RT engine and one that runs on the host processor - pentium 3. These two VIs communicate through TCP/IP. I think there is some error in the TCP/IP communication. I am not able to figure out a way of stepping through the code running on the RT engine. Is there a way to do something as the following? I start the VI on the host PC and then exit labview without shutting down the VIs and then switching execution target to the DAQ::2 and stepping through the code there? I appreciate any help you may be able to offer.

Prakash K
0 Kudos
Message 1 of 11
(5,283 Views)

No!

If you cannot recreate the test environment by running both apps on the same machine, then you will have to use two machines.

I would love to see this functionality provided in a future version of LV.

Note:
It is possible to run both LV 6.1 and LV 7 on the same machine at the same time. This could be a work-around.

Ben


Ben Rayner
Certified LabVIEW Developer
www.DSAutomation.com

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 2 of 11
(5,283 Views)
Go to your LabVIEW root folder, and make a copy of LabVIEW.exe. Launch both exes ("LabVIEW.exe" and "Copy of LabVIEW.exe"), target one of them to your RT device.

Now you can debug/run your host code and your RT code simultaneously. Although NI doesn't officially support making copies of LabVIEW.exe, it's generally necessary in order to debug this type of scenario.
Message 3 of 11
(5,283 Views)
Well I was wrong!

Please see Dr. RT's posting!

Ben
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 4 of 11
(5,283 Views)
Excellent info Bob!

I salute you sir!

You have lived up to your name.

Ben
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 5 of 11
(5,283 Views)
Thanks guys for replying to my post. Hopefully it works for me.
0 Kudos
Message 6 of 11
(5,283 Views)
Please let us know how it works out.

This could save me dragging two laptops home for my "week-end entertainment".

Ben
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 7 of 11
(5,283 Views)
If you have the Applications Builder, you can run the Host PC code compiled while you run the PXI RT code under LabView and debug the source code. You can then swap and do the reverse.

Having said that, I really like the idea of running 2 versions of labView at the same time. I could have used that idea many times over the past 2 years.
0 Kudos
Message 8 of 11
(5,283 Views)
Prakash,

Have you tried making a copy of LabVIEW.exe? You can run two uniquely-named copies of the LabVIEW executable at the same time.

Leave one LabVIEW untargeted (to run your host VI), and target the other LabVIEW to your RT engine (to download and run your RT VI). Now you can debug both sides of your application at the same time from your host computer.
0 Kudos
Message 9 of 11
(5,283 Views)
Whoops! Sorry duplicate post.
0 Kudos
Message 10 of 11
(5,283 Views)