キャンセル
次の結果を表示 
次の代わりに検索 
もしかして: 

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 件の賞賛
メッセージ1/11
5,448件の閲覧回数

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 件の賞賛
メッセージ2/11
5,448件の閲覧回数
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.
メッセージ3/11
5,448件の閲覧回数
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 件の賞賛
メッセージ4/11
5,448件の閲覧回数
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 件の賞賛
メッセージ5/11
5,448件の閲覧回数
Thanks guys for replying to my post. Hopefully it works for me.
0 件の賞賛
メッセージ6/11
5,448件の閲覧回数
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 件の賞賛
メッセージ7/11
5,448件の閲覧回数
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 件の賞賛
メッセージ8/11
5,448件の閲覧回数
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 件の賞賛
メッセージ9/11
5,448件の閲覧回数
Whoops! Sorry duplicate post.
0 件の賞賛
メッセージ10/11
5,448件の閲覧回数