LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

table

Dear,

 Made this small Vi, it receives data from rs232 the he receives from the vi changes when i do something on the machine.

the first data it receives should appear in the table in colomn 0,0 and may not change anymore, the rest of data should appaer 

in column 0,1 0,2 .... but the can change, how can i make the fisrt data in colomn fixed tha it change nomore

 

0 Kudos
Message 1 of 50
(3,219 Views)

Hi drek,

 

a table is a "2D array of strings" in LabVIEW. You don't create such a 2D array of strings in your whole VI…

 

- Create such an array and keep it in a shift register.

- Replace the elements you like to write to with the strings you receive.

 

More hints:

- Don't use BytesAtPort with serial communication. It is (nearly) everytime the wrong command…

- Right now you try to set element [0, 1] in your table with either a numeric value or an empty string. Do you really want to delete the element when "Set Value" is FALSE?

 

We talked about creating tables in your other thread. I thought you already know how to build up arrays/tables…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 50
(3,198 Views)

Dear Gert,

 

As you see i never give up 🙂 would it be possible to change the vi so i can how i should do it ?

it would learn me to know labview faster

 

Thx

0 Kudos
Message 3 of 50
(3,194 Views)

Hi drek,

 

like this:

check.png

Initialize the array and replace the elements as needed. Then display the array in your table…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 4 of 50
(3,180 Views)

Hi Gerd,

 

Gonna try it asap let you know, but many thanks for helping sometimes i need a helping hand 🙂

0 Kudos
Message 5 of 50
(3,176 Views)

Gerd where can i find the symbol right under set value where the zero is connected ?

 

Thx very much

0 Kudos
Message 6 of 50
(3,156 Views)

Hi drek,

 

in the Array functions palette. It's named ReplaceArraySubset…

 

(Didn't we talk about replacing array elements before?)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 7 of 50
(3,150 Views)

thx found it 🙂

0 Kudos
Message 8 of 50
(3,136 Views)

sorry for the stupid questions Gerd tis is the only array subset i find

0 Kudos
Message 9 of 50
(3,124 Views)

@drek123 wrote:

sorry for the stupid questions Gerd tis is the only array subset i find


You need to find Replace Array Subset.  It is in the top-middle of the Array palette.

 


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 10 of 50
(3,114 Views)