LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

maximum no. of sequences in a sequence structure

The maximum number I use in my code is 1.  The usual number is 0.  It is used to force data dependency.

 

The one exception is when I running a timing test on pieces of code to see which is faster.  Those programs use flat sequences with n+2 frames where n is the number of  pieces of test code.

 

Lynn 

Message 11 of 20
(1,734 Views)

tst,

 

Please tell me you made this VI using scripting, and not by manually adding 10000 cases!

 

If you did the former, did you try and see how many you could add before LV gave up completely?

 

As a glutton for punishment I tried clicking on the case structure, it listed all the cases nearly instantaneously on my PC, so then I decided to convert it to a flat sequence and that did the trick: LabVIEW thought for a while then just terminated Smiley Very Happy

 

 

Message 12 of 20
(1,704 Views)

nrp wrote:

 

Please tell me you made this VI using scripting, and not by manually adding 10000 cases!


What's "scripting"? Smiley Wink

Adding it is simple - you just add a few cases every hour during breaks and in a few months you have your structure. 😄

 

I initially let it run to ~20,000 but then tried to look at it and crashed LV (hence the warning). The property itself is an I32, so it should be able to get to ~2 billion frames, but there are probably other limitations which will prevent you from getting that high.


___________________
Try to take over the world!
Message 13 of 20
(1,693 Views)

I tried to get that many cases with LV 7.1.

Having accomplished to create a enum with 10000 enties (named from 0 to 9999 so I'm sure I don't miss one). I wired the enum to a case structure and tried 'add case for every value'.

All I got was one new case with the name "".

Are state machines limited to <10000 states in LV 7.1.?:robotvery-happy:

  

Felix 

Message 14 of 20
(1,682 Views)

tst wrote:
Will 10,000 frames be enough for what you want?

10000 stars for making 10000 sequences, tst! Smiley Very Happy

 

BTW, how did you make it, scripting... ?! Smiley Wink

- Partha ( CLD until Oct 2027 🙂 )
Message 15 of 20
(1,679 Views)

nrp wrote:

tst,

..., so then I decided to convert it to a flat sequence and that did the trick: LabVIEW thought for a while then just terminated Smiley Very Happy

 

 


I think I read that the LV block diagram is limited to about 65,000 pixels wide. If the stacked seq was wider than 65 pixels (about two sub-VIs in width) then the conversion would have run into the diagram size limit.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 16 of 20
(1,665 Views)

Scripting is where you train a monkey to use a mouse and repeatedly do right click-->add case after

 

These modern monkeys are really smart, after only a few bananas they get the idea and can produce some LabVIEW. Trouble is when senior management gets wind of these code writing monkeys they try and steal them away from me to produce test applications! Smiley Tongue

 

 

Message 17 of 20
(1,646 Views)

Hey,

 

@Ben: I think the limit of the block diagram width is 65.498 pixels. However if you test it with a flat sequence it becomes invisible over a width of 32600 pixels (LV8.2.1)

 

 

Christian

Message 18 of 20
(1,635 Views)
I still haven't heard from the poster why they want to know this in the first place.
Message 19 of 20
(1,618 Views)

nrp wrote:

Scripting is where you train a monkey to use a mouse and repeatedly do right click-->add case after

 

These modern monkeys are really smart, after only a few bananas they get the idea and can produce some LabVIEW. Trouble is when senior management gets wind of these code writing monkeys they try and steal them away from me to produce test applications! Smiley Tongue

 

 


 

Yair helped me find this thread on LAVA

 

 

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 20 of 20
(1,596 Views)