08-26-2009 11:46 AM
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
08-26-2009 02:29 PM
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
08-26-2009 02:49 PM
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
08-26-2009 03:05 PM
Hallo Lynn,
I never knew that, thank you very much for the hint
Yours Sincerely
Karel
08-26-2009 03:12 PM
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
07-01-2010 10:34 AM
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 |
07-01-2010 11:00 AM - edited 07-01-2010 11:02 AM
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?