LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to set (VI) module through VC++ using TS API ?

Hi,
 
I am using VC++ to generate sequence files, sequences, steps and so on.
 
I've created an action type of step, set its adapter to the LabVIEW type but can't find how to specify the VI itself.
After that, I will have to assign the locals as inputs for this VI.
 
Is it by using the "SpecifyByExpression" method ? Should I instead access it through a ModulePtr object ?
 
Any hint is welcome.
 
:mantongue:
 
- Eric
- Eric Parent
___________________________________
maito:eric.parent@averna.com
0 Kudos
Message 1 of 2
(2,316 Views)
Hi Eric,

You will first want to get an Object Reference to the Module for the step that you are creating.  I am assuming that this is what you mean by ModulePtr.  Once you have this reference, you should be able to set the VIPath property for this module.   Once you have set the path, you can call the LoadPrototype method for the Module reference to load the VI into memory.  From that point, you can then retrieve the Paramaters property from the Module reference.  This will give you the list of all of the needed parameters, which you can then use to set the parameter values.
0 Kudos
Message 2 of 2
(2,280 Views)