LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to manage a code project to run on different target types?

Solved!
Go to solution

I have a large LabVIEW project that contains RT and FPGA code, which I have continuously developed for many years.
I first develop the code to run on cRIO-9074, but I have included Conditional disable structures, so that code can also run on cRIO-9067 and cRIO-9057.

I have 3 LabVIEW projects, one for each target type and I copy my code changes (folders containing VI's and controls) from one project to another.

My method works, but please can anyone advise on a better way to manage the code to run on different target types.
I would prefer to have just one copy of the code files, so I do need to copy my code changes from one project to another.

0 Kudos
Message 1 of 5
(185 Views)

I have multiple times in the past have a single project with multiple targets in it for different cRIO chassis. Code that can be used with both host and RT is in a shared subfolder, then there is a host subfolder for VI’s only used in the host application and another for RT and one for FPGA.

 

It’s important to enable the “separate compiled code from VI” option for all VIs, libraries etc!

Rolf Kalbermatter
My Blog
Message 2 of 5
(167 Views)

Where would the shared sub folder appear in the project tree?
Do you have this shown under both targets? 

0 Kudos
Message 3 of 5
(156 Views)
Solution
Accepted by topic author sparkymark567

Yes I add it under each relevant target. That can give a bit of a difficulty if it contains a class or lvlib as they frequently end up getting locked when referenced from multiple contexts. I would recommend to keep development of such components on a separate project for that reason and use them mostly as ready made libraries only. 

Rolf Kalbermatter
My Blog
Message 4 of 5
(86 Views)

Thanks Rolf, I can try that.

0 Kudos
Message 5 of 5
(25 Views)