10-22-2018 08:47 AM
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.
10-22-2018 09:50 AM
@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.
10-22-2018 10:41 AM
@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.
10-22-2018 10:45 AM
THanks so much.
this is from CLD exams: the ATM sample exam..