07-29-2010 11:04 AM
I am creating channels in veristand. I use a for loop to automate the process and I have about 100 channels to create. The channels are grouped by module type. The problem is, that the whole procedure takes about 5-10 minutes. veristand shows the busy cursor and I can't do anything until this is finished. When it finishes all is fine. Is there a way to speed this up? I have attached a Jpg.
07-29-2010 03:16 PM
The VIs you're using to supress the dialog can't be used on a page. I've x'd them out in this picture.
Your custom device is interesting, what is its purpose?
07-29-2010 03:23 PM
Ok I'll do that, but that doesn't change the result. The custom device configures, and collects data from a cRIO using TCP. One thing to note, when I step through the channel creating process using a an index array instead of the fore loop I get a better result.
JY
07-29-2010 03:26 PM
Hmm, my mistake.
How many channels does this create? What is happening inside that subVI? The other things in the for loop don't look like much.
Thanks,
07-29-2010 03:48 PM
The sub vi is creating a section and adding channels--very simple.
JY
07-29-2010 04:08 PM
How many sections and channels are being created? NI VeriStand 2009 has a known issue that as the # being added increases, the speed degrades exponentially. If your channel count isn't huge (<200) I wouldn't expect this to take more than maybe 10-20 seconds.
The only thing that worries me is all the string manipulation, array building, and array initializing is probably hitting memory pretty hard, also I don't know what is in that parse VI. Although those operations will all pale in comparison to the slowdown experienced with adding a large amounts of items to the tree.