09-07-2018 05:27 AM
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
09-07-2018 10:23 AM - edited 09-07-2018 10:28 AM
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.
09-10-2018 05:53 AM
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:
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