01-31-2022 11:11 AM
I do not edit the element value of the 2d array of string indicator While Vi is in run condition how to edit 2d array of string indicator
(only array control is easy to edit the element value While Vi is in run condition.)
I need this requirement for my report generate project.
Anyone knows this concept Please Comment on me.
Thanks & Best Regards.
Solved! Go to Solution.
01-31-2022 11:35 AM
An indicator displays whatever is in the wire connected to it, so change the data there.
I think you are missing some basic concepts of LabVIEW programming. Feel free to attach some simplified code we we can give more useful advice.
01-31-2022 01:05 PM
Hi altenbach,
I try to change the data element in the array but it not working can you send any reference Video or Labview coding it might be very helpful for me.....
01-31-2022 01:27 PM
Hi guru,
@guru13 wrote:
I try to change the data element in the array but it not working
So you created some code, but the code does not work as intended.
And now you refuse to attach that code - how should we tell you what you did wrong?
Why don't you follow Altenbach's suggestion to upload your VI?
01-31-2022 01:57 PM
sorry, I will attach the vi file but it is a long file so I will edit the code which part I would have a doubt.
01-31-2022 02:01 PM - edited 01-31-2022 02:02 PM
Hi guru,
@guru13 wrote:
I try to change the data element in the array but it not working can you send any reference
Have you tried to use a simple array function like this:
What do you think is the result displayed in the array indicator?
01-31-2022 02:08 PM
@guru13 wrote:I try to change the data element in the array but it not working can you send any reference Video or Labview coding it might be very helpful for me.....
There are millions of ways to write non-working code for this problem and probably dozens of way to write working code. You need to narrow down the choices by showing us what you are doing.
An indicator is entirely passive and just shows what's it gets from other parts of the code. The wire is the data!!
Typically "replace array subset" is the preferable tool where an existing array is modified by changing the value of one element (or more) based on index. For a 2D array, you need to wire both indices to define one element, row and column!
01-31-2022 02:22 PM
I will attatch the vi and json file link below
https://drive.google.com/file/d/1paW8WDXWdA7X8Xw-UWCodb9rqrj6v9tG/view?usp=sharing
01-31-2022 02:24 PM
thank you so much
01-31-2022 02:27 PM
yeah, it a replace array in this code 1 row and 1 column element would be replaced 0.