LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible check whether Start UP exe is running in RT system from host PC

Hi,

I have loaded Startup EXE in RT system and set as startup.

At any point is it possible to check from host VI whether Start EXE is running in RT System.

Thanks & Regards,

Visuman

 

Message 1 of 11
(3,523 Views)

There are two things I do for nearly all RT applications to identify if it is running or not.

 

The first is to blink the User1 LED. This allows me to see at a glance if the RT application is running properly, or if it isn't running for some reason.

 

The second is to create a network shared variable hosted on the RT target, which is constantly incremented inside of a while loop (once per second) by the RT application. This variable acts as a watchdog. So long as the host VI can see this variable is being incremented, then you know the RT application is running.




Certified LabVIEW Architect
Unless otherwise stated, all code snippets and examples provided
by me are "as is", and are free to use and modify without attribution.
0 Kudos
Message 2 of 11
(3,481 Views)

HI,

I would like to check this information before connecting to the RT system.

Is it possible to do the same.

 

0 Kudos
Message 3 of 11
(3,473 Views)

Hi visuman,

 

you don't need to connect your LabVIEW IDE to your cRIO: you can have network traffic (aka data transfer using network shared variables or simple TCP, UDP too) using some standalone executables!

 

When you want to check if a program is running you have generally two options: either play command-response game or have a "beacon"-kind signal from your external device…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 4 of 11
(3,471 Views)

Hi GerdW,

Could you please explain little bit detail.

Thing is I am using PXI-8106 RT controller,and would like confirm whether startup.rtexe is running on the same.

Thanks

Visuman

0 Kudos
Message 5 of 11
(3,459 Views)

Hi visuman,

 

as has been said before: have your RTexe send data over the network, either by setting the value of an "alive" shared variable or by sending beacon signals using UDP.

On your PC you just check the value of the shared variable or try to receive the UDP messages…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 6 of 11
(3,455 Views)

Hi,

Is there a option to view RT monitor from host computer.

If so can we integrate same with LabVIEW.

Thanks 

Visuman

0 Kudos
Message 7 of 11
(3,484 Views)

Hi visuman,

 

have you tried to implement network communication by now?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 8 of 11
(3,438 Views)

Hi,

Yes I did  I able view a flag from host to confirm the EXE is running.

I have another requirement to view RT monitor details from host PC.

Regards,

Visuman

0 Kudos
Message 9 of 11
(3,426 Views)

What do you mean by RT monitor details? Something like CPU / RAM usage?

 

In any case, additional shared variables and/or network comms would do the job.

 

If it is CPU / RAM you're after, there's also the System State Publisher which can be used in conjunction with the Distributed System Manager to monitor an RT target's status. See this link for info: https://digital.ni.com/public.nsf/allkb/FA5C65FF5645FA5A862575D30029B6E4




Certified LabVIEW Architect
Unless otherwise stated, all code snippets and examples provided
by me are "as is", and are free to use and modify without attribution.
0 Kudos
Message 10 of 11
(3,422 Views)