LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Case Structure

Hi
 
  I have 10 case in a case structure and I need error handling for each case. From pic attach which method use less memory? case 1 or case 2? Thank.
 
 
Download All
0 Kudos
Message 1 of 12
(4,095 Views)
Your guess ?
Chilly Charly    (aka CC)
0 Kudos
Message 2 of 12
(4,083 Views)
Actually my case has more than 60 case and the VI which contain this case structure file size almost 17MB. I wonder why the file size so large.
 
Now looking a way to reduce the size. Anyway I using case 2 method now.
0 Kudos
Message 3 of 12
(4,077 Views)


ctk a écrit: ... Now looking a way to reduce the size. Anyway I using case 2 method now.

Good ! So you don't need help 😉
Chilly Charly    (aka CC)
0 Kudos
Message 4 of 12
(4,067 Views)
o.. that mean case2 use less memory? Thank Smiley Wink
0 Kudos
Message 5 of 12
(4,052 Views)
I doubt that the way you have the errors wired up is contributing too much to a 17M VI.
 
It is much more likly you have large array constants on the diagram or you saved some graphs or arrays on the front panel with default values.  You can attach your VI for us to look at, but I would be surprised if the error wire changes effected it at all.
0 Kudos
Message 6 of 12
(4,018 Views)
Evan is right. You can get some information about your vi memory allocation by right-clicking the vi icon at the top right, and choosing "VI properties" then selecting "Memory usage" from the menu ring button. If you have stored a large amount of data as default values, this will appear in the data field.
This being said, the solution n°2 is of course much better.

Message Edité par chilly charly le 04-06-2007 11:05 PM

Chilly Charly    (aka CC)
Message 7 of 12
(4,004 Views)

Hi Evan, I make the VI to a library file and zip it. Hope all subvi will be in.  

 

 I am still trying to modify this subvi to make it use less memory.

0 Kudos
Message 8 of 12
(3,975 Views)

Hi chilly charly

I attach that memory pic.

0 Kudos
Message 9 of 12
(3,975 Views)
ctk
Your case structure holds about 300 cases. And each case uses at least 50Kb. Guess what ? 50K x 300 = 15000Kb = 15 Mo
Since most of the cases look to be duplicates, a better program structure, with some carefull planning, would probably have saved 90% of memory space.
Apart rewritting your vi from scratch, I don't think there is something you could do now.
Too late.
Sorry.

Message Edité par chilly charly le 04-09-2007 11:41 AM

Chilly Charly    (aka CC)
Message 10 of 12
(3,923 Views)