LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Deciding if a target is real-time or not

Hi all!

 

I would like to check on target references (from project items) if they are real time targets or not.
My try was to check the Application.Real-Time Support property but it doesn't work as I expected. Does anyone know what does this property mean?
Is there any way to get whether a target is real-time target, or not?

 

Thanks,
Barnabás

Message 1 of 3
(2,806 Views)

I would use the Application.Target.Operating System property.  Though, I am not sure it will distinguish between a RT Linux and any other Linux.  It might not matter for your situation.

 

EDIT:  According to the help, you will get Phar Lap or VxWorks if you are working on an RT target.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 3
(2,763 Views)

Hi crossrulz,

 

Thanks for your tip.

I tried it in small VI, but it didn't resulted as I expected. The code i used is the following:

 target detection.png

 

As result, I've got an array in which the first element is the operating system of my computer (windows) and the second is a Linux, although the target is a (real-time) compactRIO, so this method doesn't seems to solve my problem.

 

In the meanwhile it turned out, that the property I asked for (Application.Real-Time Support) returns whether the current system in which the code runs is RT or not. (I noticed, that it works similar to conditional disable structures with TARGET_TYPE==RT condition)

So I could get this information if I run a VI in the given context, which calls this property node, but I don't want to call any VI, because I think I should get this information from the target reference without running any dummy code.

 

Thanks,

Barnabás

0 Kudos
Message 3 of 3
(2,740 Views)