03-11-2010 03:34 AM
There is no data saving this is just a post treatment program. So My my program isn't doing anything else.
2) I have attached a screen print of a problem a faced when making up the VI I attached. Why can’t I wire directly to the Index Array that is in the For Loop in my VI… I had to go throw a shift register to make up the example. When going back to my original program I couldn’t use the index array a second time (screen shot). Thanks a lot for any help, Regards, UserSolved! Go to Solution.
03-11-2010 03:42 AM
03-11-2010 04:05 AM
You can use the Defer Panel Updates property. Set it to T before the loop and to F after the loop (using the wires to determine the order of execution).
Also, as muks suggests, the wire going into the Index Array primitive is not an array, but a single element, because of auto-indexing. It's actually better to iterate over the array this way, because it simplifies your code (no need to wire a value into N and to use Index Array). Also, I wouldn't be surprised if you find out you have a bug in your code. All those +1 functions are bound to create a mess.
To learn more about LabVIEW, I suggest you try looking at some of these tutorials.
03-11-2010 04:15 AM - edited 03-11-2010 04:16 AM
Here's a possible solution:
Ton
03-11-2010 06:55 AM
Hi Tst and Muks,
Thanks for your time.Tst, I tried doing what you were saying concerning the PNL property node but I get a message error n° 1055 and I don’t know why…. Do you have an idea? But it seems to be exactly what I was looking for.
I still don’t understand why the first index array could be wired and not the second one (screen shot)?
Concerning all my +1 functions, what do you mean … that it is a complicated way of doing this (and consequently easy to make an error) or that this method is unstable and could lead to some bugs? Thanks again, User03-11-2010 07:03 AM
03-11-2010 07:13 AM
03-11-2010 08:01 AM
User_1979 wrote:Tst, I tried doing what you were saying concerning the PNL property node but I get a message error n° 1055 and I don’t know why….
You're probably not feeding the panel reference into the property node. Do a search to see how others used the property.
03-24-2010 03:19 AM
Hi Tst,
You solution is fine and it works efficiently enough with my original program. The difference is really incredible. Thanks again.
I have attached the solution for the example I posted.
Regards,
User
11-22-2010 04:57 AM
Hi User_1979,
I'd really like to see the final solution implemented - but I only have LV 8.2.
Could you please post an 8.2 version of your vi?
Regards,
Xeldon