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.
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.
09-25-2020 08:15 AM
Hi,
How do you change whats in an array of a control file so that that change applies to all instances of that control in the main VI?
09-25-2020 08:29 AM
09-25-2020 08:33 AM
You need to explain better what you are trying to do. What are you wanting to change in the control file? Perhaps you need to make the control into a strict type definition. I hope that you're not thinking that the control file holds the array data. The control file is just a type definition. If you need to share data between different areas of the program then you need to use the appropriate mechanism. Can you attach some code that shows what you are trying to do?
09-25-2020 08:46 AM
Hi,
I have a control file with an array in it. (VI attached)
I would like to change the labels of the first column. So instead of "CH0", a different name for each row.
To be honest, I do not understand much about control files. I do not understand why it is grayed out, and why when I tried to edit the name of one row it does not change the instances in the main VI.
09-25-2020 09:01 AM - edited 09-25-2020 09:05 AM
Hi erabrannan,
@erabrannan wrote:
I have a control file with an array in it. (VI attached)
I would like to change the labels of the first column. So instead of "CH0", a different name for each row.
Your control typedef needs another typedef - unfortunately you forgot to attach that as well!
As I told you twice in your other thread in an array all elements share the same properties.
So which property of which array element do you want to change?
There are no "labels" visible in your control!?
09-25-2020 10:07 AM
@erabrannan wrote:
Hi,
I have a control file with an array in it. (VI attached)
I would like to change the labels of the first column. So instead of "CH0", a different name for each row.
To be honest, I do not understand much about control files. I do not understand why it is grayed out, and why when I tried to edit the name of one row it does not change the instances in the main VI.
Can you share your code so that we can see what you are trying to do? I believe that you are going about this in entirely the wrong way. Typedefs are not for passing data from one part of the program to another, as it appears that you are trying to do.