LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to create this typedef of 2D array of strings

Solved!
Go to solution

thanks.

the right message will be displayed on the front panel..

 

the left column, the short one, will be written in the block diagram.. the right column, ideally can be directly linked to the indicator in the block diagram, but it is too long.

 

 

0 Kudos
Message 11 of 14
(608 Views)

@idjuven1 wrote:

thanks.

the right message will be displayed on the front panel..

 

the left column, the short one, will be written in the block diagram.. the right column, ideally can be directly linked to the indicator in the block diagram, but it is too long.

 

 


 

Another option is to load these values from a file when your application starts up. This would allow you to change some of these items externally without needing to change your application. Since you are using these for UI displays, those items may get changed over time and loading them from file will allow you to do that without changing code.

 

I do question the wisdom of tying strings to control/indicator names directly. This to me sounds like a poor UI design. More information would be needed to better understand what you are doing and if it really is a good choice or not.



Mark Yedinak
Certified LabVIEW Architect
LabVIEW Champion

"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot
0 Kudos
Message 12 of 14
(604 Views)

@idjuven1 wrote:

one reason is that we need to find the message out (right column) using the the message in (left column)

in that case, we can apply the array operation functions to achieve it..


Why would you need a string control or typedef for that? Looks like a static lookup table. Instead of an array constant, you should use variant attributes for that.

0 Kudos
Message 13 of 14
(595 Views)

THanks so much.

this is from CLD exams: the ATM sample exam..

0 Kudos
Message 14 of 14
(593 Views)