LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to read the "Strictly Typed VI Reference" of a VI file on disk

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

 

 

0 Kudos
Message 1 of 11
(3,962 Views)

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."

 

 

>

"There is a God shaped vacuum in the heart of every man which cannot be filled by any created thing, but only by God, the Creator, made known through Jesus." - Blaise Pascal
0 Kudos
Message 2 of 11
(3,948 Views)

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

0 Kudos
Message 3 of 11
(3,925 Views)

If you construct all of your "different" vi's with the same connector pane, you can still call by reference.

 

 

>

"There is a God shaped vacuum in the heart of every man which cannot be filled by any created thing, but only by God, the Creator, made known through Jesus." - Blaise Pascal
0 Kudos
Message 4 of 11
(3,910 Views)

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

0 Kudos
Message 5 of 11
(3,883 Views)

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

>

"There is a God shaped vacuum in the heart of every man which cannot be filled by any created thing, but only by God, the Creator, made known through Jesus." - Blaise Pascal
0 Kudos
Message 6 of 11
(3,869 Views)

For futher reading:

 

hhttp://forums.ni.com/t5/LabVIEW/Detect-data-type-within-Variant/td-p/1666200

>

"There is a God shaped vacuum in the heart of every man which cannot be filled by any created thing, but only by God, the Creator, made known through Jesus." - Blaise Pascal
0 Kudos
Message 7 of 11
(3,864 Views)

vt92,

 

I have a small problem with your quote in your signature.....

0 Kudos
Message 8 of 11
(3,855 Views)

@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.....


"Should be" isn't "Is" -Jay
0 Kudos
Message 9 of 11
(3,849 Views)

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.

 

Variant.JPG

 

Visualize the Solution

CLA

LabVIEW, LabVIEW FPGA
0 Kudos
Message 10 of 11
(3,841 Views)