03-02-2022 01:43 PM
I tried this, but it still didnt work, so what did i do wrong. (i have it named 'time' instead of tick)
03-02-2022 01:45 PM - edited 03-02-2022 01:52 PM
I think it is better to separate the entry cluster form the queue managements. Here's a quick draft.
Extract to a new folder, then open the project, then open the QueueDemo002.vi within the project.
Study it!
I have separated the queue managements from the entries for scalability.
All important clusters are typedefs, so just edit the typedefs to change the contents.
03-02-2022 01:48 PM
Thank you, but what did I do wrong in the VI attached in my last reply, because im trying to make it so that the time spent in the simulation is also an element in the cluster.
03-02-2022 01:52 PM
03-02-2022 01:56 PM
Ok I changed it into a DBL but how do I fix it.
03-02-2022 02:21 PM
@dannn2020 wrote:
Ok I changed it into a DBL but how do I fix it.
You only fixed one of my four points. Did you understand the other points?
I strongly (!!!) recommend to not use this architecture, but here's a quick way to fix it using a subVI.
03-02-2022 02:30 PM - edited 03-02-2022 02:45 PM
Ok thank you very much this really helped, but that doesn't stop counting when it gets to the 3rd array, So how can I make it stop counting when it gets to third array.
03-02-2022 02:52 PM
@dannn2020 wrote:
So how can I make it stop counting when it gets to third array.
... just modify the code that updates array 3 accordingly!
(I still recommend to not go down that rabbit hole. Use my new code instead!)
03-02-2022 03:00 PM
@dannn2020 wrote:
So how can I make it stop counting when it gets to third array.
One possibility? Makes sense?
03-02-2022 04:52 PM - edited 03-02-2022 04:53 PM
Thank you very much this works perfectly, ( But why isn't the 'time' in the the cluster container orange, even though I changed it to a DBL by right clicking on time in the front panel and changing the representation to DBL) it still works fine though, Also what does the in place element structure function do.