Jump to content

Running RT application on windows


sib592

Recommended Posts

I have an application that has two nodes. One is a windows node and the other runs on a cRIO. There is alot of shared code but also code that will run base on the OS conditional disable. The customer now wants to create a training system so that they can train their employees on the system in the office. They do not want to have a a controller with every training system so we need to run both apps on a windows machine. The problem is we to build the rt code as a windows runnable executable with the OS==VxWorks condition. When I change the OS condition to VxWorks under the My Computer target it changes itself back to win. Does anyone have any suggestions on how to do this?

Link to comment

I have an application that has two nodes. One is a windows node and the other runs on a cRIO. There is alot of shared code but also code that will run base on the OS conditional disable. The customer now wants to create a training system so that they can train their employees on the system in the office. They do not want to have a a controller with every training system so we need to run both apps on a windows machine. The problem is we to build the rt code as a windows runnable executable with the OS==VxWorks condition. When I change the OS condition to VxWorks under the My Computer target it changes itself back to win. Does anyone have any suggestions on how to do this?

You can't do that. The OS condition is meant to be a fixed value that depends on the selected target and nothing else. Allowing to override that would allow to cause all kinds of obscure troubles, as surely there will be people trying to click around in their ignorance. It seems you will have to revisit your software and change all the conditions into something that depends on a customizable project property.

Link to comment

Rofl is correct. You could convert your conditional disables to look at a project condition (I forget the specific term) instead of the platform. You'd have to either remember to change the variable before each build, or you could write a pre-build VI which checks the platform and asks for confirmation, changing it based on that input (I *think* all that is possible now).

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.