From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Actor Framework Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

Can message maker default directories be changed?

The message maker puts new messages in "<ActorName> Messages", but I'd like to put them in "Messages" most of the time.

I tried finding where the directory name is chosen, but I ran into a locked VI. Is there some place to change this?

I'm mostly keeping the following directory structure for my actors:

./<ActorName>/

./<ActorName>/<ActorName>.lvlib

./<ActorName>/Actor/

./<ActorName>/Actor/<ActorName>.lvclass

./<ActorName>/Actor/<MethodName0>.vi

./<ActorName>/Actor/<MethodName1>.vi

./<ActorName>/Messages/

./<ActorName>/Messages/<MethodName0> Msg/

./<ActorName>/Messages/<MethodName1> Msg/

Only for helper actors do I need more specific names

./<ActorName>/<HelperActorName>/

./<ActorName>/<HelperActorName>/<HelperActorName>.lvclass

./<ActorName>/<HelperActorName>/<HelperMethodName0>.vi

./<ActorName>/<HelperActorName> Messages/

./<ActorName>/<HelperActorName> Messages/<HelperMethodName0> Msg/

Even so, I'm thinking of keeping those helper actors in a different toplevel, so I can keep their pathnames short too.

Message 1 of 4
(3,785 Views)

Look in the following directory and file.

 

Program Files (x86)/National Instruments/LabVIEW20xx/project/_Message Maker/support

 

Look at file name "Calculate Message Class Path.vi"

 

I am in no way stating that you should change this file, but you might want to look in here if you are looking to alter any of the directory structure of messages. 

Message 2 of 4
(3,537 Views)

Just an additional FYI, the solution I mentioned works in LabVIEW 2014. I dont know about LabVIEW 2016, as it appears that the message maker has been changed somewhat. 

0 Kudos
Message 3 of 4
(3,489 Views)

@StevenHowell_XOM wrote:

... it appears that the message maker has been changed somewhat. 


A little, yes.  Smiley Wink

 

But most of the changes wrap the old code, so that VI should still control the default message paths, if I recall correctly.  Just make sure you test all three message types!

 

 

0 Kudos
Message 4 of 4
(3,483 Views)