LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

String Array Type Def

Hi all,

 

 

I tried to create a type def of  an array of strings to access to that strings in others zones of block diagram. Do you know other way to access to this strings without using global variables?

0 Kudos
Message 1 of 7
(3,792 Views)

That's not the function of a typedef.

 

Please define "other zones". Is this in different structures of the same block diagram or in different VIs?

 

There are many ways, try e.g. local, global, shared variables, value property nodes, data value references, action engines, etc. Please be more specific on what you are trying to do, maybe even attach some code.

What is your definition of "access"? Just read or modify?

0 Kudos
Message 2 of 7
(3,783 Views)
One more idea Christian didn't mention is to turn the array into an enumeration, but that only works if your list is read-only. The best option is the one that does what you need it to do.

You need to say more about what your application is doing and how it is structured. Show code.

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 3 of 7
(3,750 Views)

Create a VI with this string array constant as output and drop it wherever you need it on your diagram.

0 Kudos
Message 4 of 7
(3,741 Views)
How is that different from the global that the OP has already said he didn't want to use?

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 5 of 7
(3,736 Views)

yes sorry. Inline the VI.

0 Kudos
Message 6 of 7
(3,727 Views)

I idid not see an indication that the string array is supposed to be a static constant. "Access" could mean read or write.

We need more information.....

0 Kudos
Message 7 of 7
(3,722 Views)