08-15-2007 02:55 AM
08-15-2007 03:50 PM
08-15-2007 08:04 PM
08-16-2007 12:37 AM
Hello Günter and Mike,
Günter: yes, i know the vis have to be reentrant. my software is very similar to the one you send. but i use static references instead of loading dynamiccally the vi into memory. i find static references are better. this way the vi appears on the hierarchy of the project. Mike: I am familiarised too with templates. I am not using them, because if the test pattern has to be changed, then I have modify the template, delete all six copies, and create six new vis based on the modified template. I am somewhat lazy...
my question actually was: what to I have to add/change to the upper loop in my example, so that the array contains six different references, instead of 6 times the same reference.
thanks
Daniel
08-17-2007 02:30 PM
08-17-2007 07:11 PM - edited 08-17-2007 07:11 PM
Hi Mike,
In my experience, any re-entrant VI can have multiple dynamically-opened copies running in memory - it need not be a VIT for this.
Cheers!
Message Edited by tbd on 08-17-2007 07:12 PM
08-18-2007 01:24 AM
Hello Mike,
you are right, i missed the point, sorry.
so your proposal is more or less what i am doing, with two differences:
- I do not have a template, but a reentrant VI. it is not necessary that the file is a template(as tbd confirms)
- I do not open dynamically the references, but create static references. (in the comments at the bottom of this article can you find the disadvantages of loading vis dynamically. that is why i preferer to create static references: http://zone.ni.com/devzone/cda/tut/p/id/3929)
what i am trying to find out, is, how to create different static references of the same vi in a loop.
Daniel
08-18-2007 01:53 AM - edited 08-18-2007 01:53 AM
ok, i think this will do.
one can dynamically load the vi, but using the static reference as type specifier.
thank you everybody for your support. you have helped a lot in solving this.
regards
Daniel
Mensaje editado por Dani Pindado
08-18-2007 02:06 AM - edited 08-18-2007 02:06 AM
Oops! - posted a follow-up too slowly! It's all mute now, sorry for this distraction.
Message Edited by tbd on 08-18-2007 02:10 AM