11-29-2018 10:16 AM
I have created a 2D array of cluster of 2 strings. I have been able to get property nodes and write to the strings but I am having a very aggravating issue that looks like a bug.
I initialize the array to an empty state then start writing data to the elements. However, the items are landing in the wrong rows/columns. The SN Display global contains a 2D array with 1 row, 4 elements but when this runs, I get 1 row with 6 elements with the data written but shifted 2 positions to the right.
I have attached some code and a couple of images to illustrate.
Am I doing something wrong or is this a bug?
Using LabVIEW 2017
Also, I looked and looked and can't find a way to post a new thread so had to tack this on to an old thread.
11-29-2018 11:21 AM
At the top of every forum page is a "START A NEW TOPIC" button. Strangely enough, I always have trouble finding this button when I want to post a new topic.
11-29-2018 11:52 AM
@itronChiraldude wrote:
Also, I looked and looked and can't find a way to post a new thread so had to tack this on to an old thread.
It is called "Start a topic"
Whatever you are doing seems extremely convoluted. Can you attach all code, incl. the caller and global. (... after starting a new thread)
11-29-2018 12:38 PM
Strange way to set up forum. Selecting a specific category such as LabVIEW or NXG for example gives pages with no new topic button.
11-29-2018 01:29 PM
@itronChiraldude wrote:
I have created a 2D array of cluster of 2 strings. ...
a very aggravating issue that looks like a bug.
...
However, the items are landing in the wrong rows/columns.
The SN Display global contains a 2D array with 1 row, 4 elements but when this runs, I get 1 row with 6 elements with the data written but shifted 2 positions to the right.
...
Am I doing something wrong or is this a bug?
...
Been there done that.
Personally I would say using a Global is "something wrong" but I will not open that can of worms here and now.
I do not think it is a bug but the nature of the beast.
In this thread I cover a lot of the details of using control references and I speak of the challenges of accessing items inside an array. I also posted example code there that demonstrates what it takes to target a specific index of an array and it amounts realizing that the value written to an element of an array gets written to the top left element that is visible.
Set the array so that there is only one element showing, set the array indexes and then set the value.
Ben