LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to initialize the parameter of the subvi which be called dynamically

Hi,everybody,
Now I am working on a project with Labview8.0.I make  a main VI and a Templat VI(subv.vit).I want to  running subv.vit dynamically.But i can t initialize the parameter of subv.vit.
I want to know how to do that ,Please help me ,THanks.

帖子被Richar在08-29-2006 12:48 AM时编辑过了

Using LabVIEW 8.0.0 on Windows XP
0 Kudos
Message 1 of 4
(2,652 Views)

hi there,

what do you mean with "parameters"? if you mean the VIs control values see attachment. if you mean something different please explain a more details.

 

Best regards
chris

CL(A)Dly bending G-Force with LabVIEW

famous last words: "oh my god, it is full of stars!"
Message 2 of 4
(2,636 Views)
Think you,chrisger
You give me another way to deal with my problem. 
Normally ,i make subVIs and edit its terminal like write function and edit its input parameter.And i can use subvi and set the value of terminal of subvi by "Call By Reference Node" function in other VIs like "main.vi".But I cant use the "Call By Reference Node"function if i called Template VIs(*.vit). ?:(
 
Using LabVIEW 8.0.0 on Windows XP
0 Kudos
Message 3 of 4
(2,611 Views)

hi there

you should be able to call a vit with call by reference node (see attached VIs). in your screenshot there's a coercion dot (see attached picture), maybe due to static VI references. this may cause some error codes. change your code so that there's no coercion dot. you also can post the code so we can have a look at it.

Best regards
chris

CL(A)Dly bending G-Force with LabVIEW

famous last words: "oh my god, it is full of stars!"
Download All
0 Kudos
Message 4 of 4
(2,599 Views)