LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Add new element to row.

Hi, I am very new to LabView. I am using LV8.6 .

I want to do following things

1. The main aim is to plot hysteresis and deadband of my positioner.

2. I am using OPC to read the values.

3. Please see the attached vi .

Operator will enter signal coloum. I just want to get the position reading and place it in the corresponding cell in the table. I dont know how to address particular cell inside the table.

And also i want to draw graph for the same values. (please see the image)

Please help me.

Download All
0 Kudos
Message 1 of 10
(3,198 Views)

Hi kaush,

you have to read the data from your table, replace the cell you want (use array function for it) and write it back to your table.

Sorry, i can't open your vi at the moment.

 

Mike

Message 2 of 10
(3,168 Views)

Thanks mike.

But sorry.. i am not clear with the explanation.  😞

0 Kudos
Message 3 of 10
(3,158 Views)

Hi kaush,

what do you mean? You have a table, it is a 2d array of strings. To replace part of it, you can use the "replace array subset" function.

 

Mike

0 Kudos
Message 4 of 10
(3,152 Views)

I can insert the new element. But how to increment the index of the array automatically. Can i create any property node for that ?

0 Kudos
Message 5 of 10
(3,138 Views)

Hi kaush,

you have to store the value in your program, you can use a shift register for it.

 

Mike

Message 6 of 10
(3,134 Views)

Hello mike,

Thanks..

i wand to append element to the bottom. Please see the image..

0 Kudos
Message 7 of 10
(3,119 Views)

Hi kaush,

you should initialize your array first, then you can use the replace function.

See the attached example please.

 

Hope it helps.

Mike

Message 8 of 10
(3,094 Views)
Keep in mind that a 2D array must always be rectangular. In your screenshot you cannot simply add an element at row 2 column 2 without LabVIEW automatically adding another element at row 3 column 2 in order to keep the array rectangular. This is by design.
Message 9 of 10
(3,081 Views)

Thanks a lot for both.

I forgot to mention that there r two arrays. Please see the image.

Thanks mike for example. I am trying to modify that.

0 Kudos
Message 10 of 10
(3,057 Views)