LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

locked class in multiple apps

I have a file class that does some initialization, keeps track of paths for storing data, logs, and some config parameters. I am running a RT application and a Windows UI which will only occasionally be connected to the RT which runs in a remote location. The class library is currently shown under the UI target in the project explorer - I would like to have different instances of the class on both targets, Win & RT, both targets need file init, path management. But once I have a reference on the top level of my UI_Main, and my RT_Main the class gets locked and I cannot edit the class; cannot add accessors or methods. What's the right way to do this?

 

Thanx

lmd2

Lawrence M. David Jr.
Certified LabVIEW Architect
cell: 516.819.9711
http://www.aleconsultants.com
larry@aleconsultants.com
Message 1 of 4
(2,660 Views)
Message 2 of 4
(2,655 Views)

Is it possible that moving your RealTime work into a separate project will keep your class from locking? By keeping your Win target work in one project and the RT work in another you may find that LabVIEW doesn't lock the class.

 

Also mentioned here: http://forums.ni.com/t5/LabVIEW/Multiple-Application-Instances-Class-Library-Locked/td-p/1971591

Thoric (CLA, CLED, CTD and LabVIEW Champion)


Message 3 of 4
(2,620 Views)

Thanks nathand & Thoric - 

I understand what I need to deal with now. AQ suggested making a second, dummy project on the idea exchange. Add the class (or classes) to this project. Then when edits needed to be made to the class, close the real project, open the dummy project and make the tweaks and save, then close the dummy project and return to the real project and the class is updated - though still locked. A small hassle but it works.

Again, thank you both for pointing me to this information.

 

lmd2

 

Lawrence M. David Jr.
Certified LabVIEW Architect
cell: 516.819.9711
http://www.aleconsultants.com
larry@aleconsultants.com
0 Kudos
Message 4 of 4
(2,588 Views)