LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to multiply a cluster and all actions connected to it

Solved!
Go to solution

Hello again,

 

I reply to you so late because I tried and tried to understand how the "In place element structure" works...well, I didn't understand, but I adopted your method and this is what I managed to do:

1. create the array

BalajO_0-1603889844177.png

2. Used "In Place Element Structure" to manipulate data inside the cluster

3. Tacking the index from inside the for, I update the cluster at the end of InPlaceElementStructure inside the For that loops through the cluster array 

BalajO_1-1603889982518.png

Questions:

1. Should I create a subVI with everything inside InPlaceElementStructure?

2. When updating back the cluster is there a way to do it dynamically, not like I've done it?

3. How do I create an executable/installer to run it on a computer that doesn't have LabView installed?

4. How can I make sure that if you exit by accident the executable, when you run it again, it keeps the last values that have been updated before leaving the app?

 

Thanks again for your replies and be safe all of you!

Ovidiu

0 Kudos
Message 11 of 13
(484 Views)

"3. Tacking the index from inside the for, I update the cluster at the end of InPlaceElementStructure inside the For that loops through the cluster array "

 

In Place Structure works ... In Place. It'll affect the data directly, so no need to make an extra 'data update'

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
Message 12 of 13
(475 Views)
Solution
Accepted by BalajO

@BalajO wrote:

Hello again,

 

I reply to you so late because I tried and tried to understand how the "In place element structure" works...well, I didn't understand, but I adopted your method and this is what I managed to do:

1. create the array

BalajO_0-1603889844177.png

This:

LLindenbauer_0-1603896738289.png

Is not the right tool.

 

This is the right one:

LLindenbauer_1-1603896827620.png

https://zone.ni.com/reference/en-XX/help/371361R-01/glang/initialize_array/

 

Questions:

1. Should I create a subVI with everything inside InPlaceElementStructure?

2. When updating back the cluster is there a way to do it dynamically, not like I've done it?

3. How do I create an executable/installer to run it on a computer that doesn't have LabView installed?

4. How can I make sure that if you exit by accident the executable, when you run it again, it keeps the last values that have been updated before leaving the app?

 

Thanks again for your replies and be safe all of you!

Ovidiu


  1. Depends on what You want to do. In most cases: Yes.
  2. Yes. See my comment above on "the right tool". With arrays, You can add and delete items with ease.
  3. Please use the Search function for this one.
  4. This depends on what "by accident" means. Your executable cannot remember anything, so You will have to load the values from somewhere on startup and save them somewhere before all is lost in an accident. I guess You will also find lots of answers here in the forum on where to save and how to load this data. If there are no useful search results, feel free to open a new thread.
Message 13 of 13
(468 Views)