LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

typedef update

AE?  Please define...

0 Kudos
Message 11 of 17
(1,528 Views)

@id wrote:

AE?  Please define...


AE = Action Engine (see here).

 

Init- Caches the refums of the rings that need to be updated.

Set List - Accepts an array of strings and uses the cached refs to to do proprty node "strings".

 

Ben

 

 

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 12 of 17
(1,527 Views)

Try this:

Replace one of the ring controls with an enum (the strings should all transfer over)

Customize the control and make a typedef.

Replace all of the other corresponding controls and constants with the typedef.

Now edit the typedef to add more strings.

 

0 Kudos
Message 13 of 17
(1,515 Views)

Sounds like the best solution yet - thx

0 Kudos
Message 14 of 17
(1,512 Views)

Sorry about the previous.

 

For some reson I thought you needed to update the ring at run time.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 15 of 17
(1,507 Views)
The solution of using an action engine I assume would have a functioanl global structure with a unique case to initialize the value to a constant at run time. If you were to use this AE in mutliple places, how would you control when it is to initalize if it was nested in subVIs?
0 Kudos
Message 16 of 17
(1,490 Views)

Maybe some image will help illustrate my point.

 

The top level VI will start out by cahcing the refs.

 

2_Init_GUI_Controller.PNG

 

 

The VI to the right of of the VI that launches my Event Logger (see rocket ship icon) the GUI control is inititalized by passing a cluster of refs.

 

3_Check_Valid.PNG

 

After verifying that all of the ref are valid...

 

4_Cache_Refs.PNG

 

They are cached in the core for later use.

 

When the time comes to update or interact with the GUI (from anywhere in the app) I invoke one of the coded methods. Here I am setting the visablity for one of the modes of operation.

 

5_Set_Visability.PNG

 

In your case that code would be changed to push the desired strings into the ring. Unfortunalatly, I do not have a screen shot of where I am updating rings, so you will have to fill in the blanks yourself.

 

I hope that helps,

 

Ben

 

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 17 of 17
(1,472 Views)