LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Help me about Array

Solved!
Go to solution

Hi! I have a question about how to use the Array!
When I first run, I want to select and show the entire data to the array, and then the user will search and show the selected data!

Is there any way you can combine the two arrays in the picture?

0 Kudos
Message 1 of 13
(3,083 Views)
Solution
Accepted by topic author adavb

Hi adavb,

 

Is there any way you can combine the two arrays in the picture?

Yes!

 

Wire the "array" data through the event structure and place the "array" indidcator after the event structure. Now you can use a TimeOut event case to show "first" data, and you can replace the array data inside the "Search" event case…

 

(This is basic DATAFLOW programming!)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 13
(3,072 Views)

Sorry.. GerdW

 

plz Show me a Example...

0 Kudos
Message 3 of 13
(3,048 Views)

Hi adavb,

 

example:

check.png

The shift register holds the array data, and you can manipulate that data in the event case(s)…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 13
(3,038 Views)

Thanks!! My bro

 

Thanks you very much!!

 

감사합니다(thanks) GerdW

 

0 Kudos
Message 5 of 13
(3,033 Views)

Hi guys!

I want to make each button in a red space.

Somebody help me.

0 Kudos
Message 6 of 13
(3,013 Views)

Hi adavb,

 

you really need to explain that "red space buttons".

(Are we changing to Sci-Fi topics?)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 7 of 13
(2,997 Views)

Sorry, I thought I uploaded it.

0 Kudos
Message 8 of 13
(2,986 Views)
Solution
Accepted by topic author adavb

Hi adavb,

 

basic LabVIEW knowledge: in an array all elements have the same datatype and share the same properties! You cannot mix strings with buttons in a string array!

 

You could create an array of clusters of [string, string, string, button]…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 9 of 13
(2,977 Views)

I have one more Question.

Is it possible to get the data from an array click?

0 Kudos
Message 10 of 13
(2,969 Views)