LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

insert item symbols during process

Hi, How to insert item symbols into multicolumn listbox during the process properly? I got it right except the missing last symbol. I am wondering what could be the cause? Here is my program. Will be grateful for anyone's help.
0 Kudos
Message 1 of 9
(3,950 Views)
Hi there astroboy

Take a look at the diagram, I've taken out much of the code in the loop, I hope it still does what you need.
0 Kudos
Message 2 of 9
(3,950 Views)
But it does not seem to work in the same way as my program. What I need is a monitoring process so that you can see progressing like which test is now running and passed for failed in the real time. Just run my program and you will know what it looks like. But the problem is the last missing item symbol for "Testing PSI"

Thanks in advance.
0 Kudos
Message 3 of 9
(3,950 Views)
Hello,

I have not spent much time on your VI to analyze it in detail. However, before I can answer your question, I'm wondering if there is any need for attribute nodes to be inside the 'for loop' for what you are doing? I observed that the last symbol is getting set if you move 'ItemSyms' attribute node to out side the for loop, and connect the output of shift register to it.

I'm not sure why it does so, because I have not spent much time on your VI. I hope this helps. If not let me know I will look into it detail.
0 Kudos
Message 4 of 9
(3,950 Views)
Hello,

As I understand, you need the attribute nodes in side the loop, for monitoring purposes.

Your VI basically has data flow issue. The multicolumn list box does not allow you to set the symbol unless item name is set.

In your VI, setting of Itemsym happens to run before
setting the itemname. One solution is to create a case structure around the item name and connect the output of inner loop to that case structure. I hope this makes sense.
0 Kudos
Message 5 of 9
(3,950 Views)
I cleaned up the code a bit and it seems to work correctly now. I also put a fake delay inside, simulating the test.

Notice thet growing arrays is typically inefficient, I suggest to use a fixed array, then replace the relevant elements as you go. See attached (LabVIEW 7.0).
Message 6 of 9
(3,950 Views)
Hi

The last item is still not implimented, change the initialise array from 12 to 13 and all tests will now show up in the listbox. You could add an Array Size to the list of names and use this to initialise the two arrays for the items.
0 Kudos
Message 7 of 9
(3,950 Views)
Yes, my mistake. I accidentally counted only 12 tests, just set the diagram constant to 13. (Using the array size directly to initialize will of course work too.)
0 Kudos
Message 8 of 9
(3,950 Views)
Hi Altenbach, Ianw and Giridhar.
Thanks for your great help.
I have learnt more from your helpful tips.

Thanks pals.

regards
Clement
0 Kudos
Message 9 of 9
(3,950 Views)