LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Why is this wire broken?

Drop "New VI" onto diagram.

Right-click the terminal "type specifier VI refnum".

Select "Create -> Constant".

Right-click the constant.

Select "Select VI Server Class -> Browse...".

Browse to a VI.

 New_VI_Ref.png

0 Kudos
Message 1 of 5
(2,460 Views)

It's broken because it's a strictly typed reference (although I don't know why that should cause it to be broken). If you drop a static VI reference instead and then place your VI in there, it won't be strict by default and the wire won't break.


___________________
Try to take over the world!
Message 2 of 5
(2,442 Views)

But I need the output reference to be strictly typed.

0 Kudos
Message 3 of 5
(2,419 Views)

Where is the New VI function located?

 

I have never used it and it does not show up on my Application Control Palette in 2009.

 

Thanks.

jc
Mac 10.4
LV7.1
CLD
0 Kudos
Message 4 of 5
(2,391 Views)

@jcrooke wrote:

Where is the New VI function located?

 


In LV9 you need to download and activate scripting to see this function.

 

https://decibel.ni.com/content/groups/labview-apis?view=overview

 

As to the original question, the Type Specifier input can be used to specify the New VI as a Generic VI, Facade VI, Method VI, etc..  A strictly typed VI refnum implies a specific connector pane and connections, this in not compatible with a New VI since this is a blank slate.  The Help description is misleading, they simply copied and pasted from the Open VI Reference Function.

 

Speaking of Open VI Reference, that is the workaround I would use.  I do not know your goal here, but one thing you could do is create your Strict VI Type Def, use the VI Path property to create a new VI using that path as the template.  Use the VI Name property of the new VI reference and feed that to Open VI Reference with the Strict Type Def reference passed as the Type Specifier.  Now you have a New VI and a Strictly Typed Reference.

 

0 Kudos
Message 5 of 5
(2,383 Views)