11-06-2012 05:45 AM
Hi
I have a .vi file on disk. (e.g., C:\temp\my.vi)
How do I programmable read the connector pane "Strictly Typed VI Reference" ?
Br Per
11-06-2012 08:00 AM - edited 11-06-2012 08:07 AM
Please explain what you are trying to do. Why do you need the Strictly Typed VI Reference?
If you want a strict type reference to a VI, get a "Static VI Reference" from the application palette. Right-click and choose "Browse for path...", select the VI ond disk, then right-click on the static reference again and choose "Strictly Typed VI Reference."
11-07-2012 01:01 AM
Sorry I wasn’t clear enough.
In the program I have a user input (Path to a LabVIEW .vi on the hard disk)
I call the VI, with the “Call by Reference”, and it is easy to call it if you know the “connection pane”
But I need to call different VI´s (depending on the user input Path) and depending on what connector pane it has, I need to call that VI by “call by reference”.
Hope this clarify it. (please also see attached picture.)
Thanks for any comments…
Br Per
11-07-2012 08:11 AM - edited 11-07-2012 08:16 AM
If you construct all of your "different" vi's with the same connector pane, you can still call by reference.
11-08-2012 12:38 AM
Unfortunately it’s not possible to have the same connecter pane do to different output. (string, arrays, numeric, boolean, waveforms etc.)
There are at least 10 different connector panes.
(the user select different .VI in an array and the main.vi call the different vi’s by “Call by reference”.
I know it is possible to use the “to variant” function. And have the same connector pane this way. But when I unpack the variant to data I still need the type 😞
I was looking for a way to reed the "connector pane" with a property or invoke node... ? or some other way?
Br Pern
11-08-2012 08:19 AM - edited 11-08-2012 08:30 AM
I suggest using LVOOP and creating a class for each VI type.
See this thread:
http://forums.ni.com/t5/LabVIEW/Detect-data-type-within-Variant/td-p/1666200
11-08-2012 08:42 AM - edited 11-08-2012 08:44 AM
For futher reading:
hhttp://forums.ni.com/t5/LabVIEW/Detect-data-type-within-Variant/td-p/1666200
11-08-2012 09:02 AM
vt92,
I have a small problem with your quote in your signature.....
11-08-2012 09:15 AM
@Intaris wrote:
vt92,
I have a small problem with your quote in your signature.....
I don't. Although, I did omit Ste. Julian's title in my signature line. Perhaps I should remedy that.....
11-08-2012 09:23 AM
I have a RIO FPGA plugin where I use a cluster of a string and a variant to pass all my information. The variant is a cluster containing the information for that operation. I use a Type Def to convert to / from the cluster. It is a pain but I am able to use an API to handle each different FPGA program.