LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Cluster vs Multiple Shift Registers

Solved!
Go to solution

Karlito wrote:

Hallo, thank you for the clarification, but do you suggest to put all the controls and indicators into one cluster ? I currently have a cluster of controls, a cluster of indicators, so that makes two shift registers, there are three QAQmx  taks to my hardware and additional shift registers for, file path, refnum and error, I was thinking to simplify it a bit, but not sure how to do it.

 

Yours Sincerely

 

Karlito


 

I suggest you review my Action Engine Nugget.

 

In that Nugget I talk about Actions Engines (AE) which can be thought of as "portable Shift Registers" that can be used where ever you need them. Any time I am tempted to stuff something in a shift register and that value is not used in many of the other states, then I concider using an AE. If you are careful about how you group your data (Normaliztion rules apply) they a nice and efficient way of encapsulating the data.

 

Just trying to help,

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 11 of 17
(1,535 Views)

Hallo Christian,

 

thank you for thehelp, I got to get the application running first then I mke the improvements on the code. Just one question please. I have a cluster of indicators for numeric values measured. For some reason Labview keeps telling me that there is a mismatch between the size of the array and the cluster. But when I run the subVI the array size does not report any difference. Do you have any idea why ? I copied the subvi into a file below.

 

Yours Sincerely

 

Karel

0 Kudos
Message 12 of 17
(1,508 Views)

Karel,

 

The help tells you that the Array to Cluster has 9 elements (default) and your Physical Variables indicator has 6.

 

The Array to Cluster defaults to 9 elements but you can context click on it and change it to 6.

 

Lynn 

0 Kudos
Message 13 of 17
(1,500 Views)

Hallo Lynn,

 

I never knew that, thank you very much for the hint Smiley Happy 

 

Yours Sincerely

 

Karel

0 Kudos
Message 14 of 17
(1,494 Views)

Many people stumble over that one.  It is mentioned in the help, but the fact that it needs to be configured is not obvious from the palette or the icon.  This is a good example of why the context help should always be on while you are working on your programs.

 

Lynn 

0 Kudos
Message 15 of 17
(1,490 Views)
First Name: Floramma
Last Name: Stanislaus
Email Address: pluto1047@yahoo.com
Language: US
Country: Other
Form ID Number: 5
User Profile ID: 6726013
Message Time: 28-JUN-10 08:55:37
Referring URL:  
Message: I am still working with the basic . When I try the shift register for iteration, It shows a continuous arrow. This means that my block diagram is correct . But there was no result in the front panel. I wonder why it happens.
Also I need help for matrix array
Thanks  
Floramma

 

0 Kudos
Message 16 of 17
(1,331 Views)

You probably should have started a new thread. I would also recommend to just post the question in plain text, and not all that other information.

 

 


@shift register wrote:

 


I wonder why it happens.

 

 


 

I wonder too, but without seeing any code, all bets are off! 😄

 

Why don't you attach your VI and we have a look. Most likely it's something simple (e.g. the indicator is wire to the outside of the main loop). Did you even run the VI?

 

What kind of matrix problem do you have? We need details!  Are you talking about the matrix data type or a plain 2D array?

0 Kudos
Message 17 of 17
(1,319 Views)