09-27-2010 12:59 PM - edited 09-27-2010 01:01 PM
Hi all,
Thanks for reading me
I'm currently trying to find some code (if it does exist), or some ideas/directions in order to automatically retrieve a code module prototype.
Such a code can be written in any language (LabVIEW, C, TestStand or any other)
My final goal is to scan a directory for VIs, DLLs (and so on) and get their prototype in order to have an external generator code module database filled.
In case this code doesn't exist, could you please let me know what methods I could interact with in the TS engine to retrieve a code module.
Best regards.
Solved! Go to Solution.
09-27-2010 02:26 PM
Hi Mathieu,
At the of this "funny" thread there will be an example who it could work with .net adapter
On this Thread there is an example with Labview Adpater
http://forums.ni.com/t5/NI-TestStand/Create-a-LabVIEW-Step-dynamically/m-p/977348#M25792
On this here with SequenceCall Adapter
http://forums.ni.com/t5/NI-TestStand/Insert-SubSequence-Call-Step-using-TS-API/m-p/628857#M17591
Regards
Juergen
09-27-2010 02:31 PM
Thanks Juergen
I'm not try to script TS code (which I can do), but to retrieve code module parameters.
It means that for a given sequence, I want to get the parameters of the code module of one of its steps.
Hope this is more clear now. Lmk if it's not
Regards.
09-27-2010 02:50 PM - edited 09-27-2010 02:51 PM
09-27-2010 02:57 PM
Hi ,
On this C# example you will see what has to be done to get the parameters list
SequenceCallModule objModule = (SequenceCallModule)step.Module; // Just a note: only if you are sure that is a SeqenceCall
objModule.UseCurrentFile = true;
objModule.SequenceName = strSeqName;
objModule.UseSequenceParameterPrototype = false;
objModule.LoadParametersFromSequence(sequence); SequenceCallParameters Parameters = objModule.Parameters;
Regards
Juergen
10-08-2010 08:05 AM
Juergen,
Sorry for delay.
I must say you are right. I read the links very fast, without getting into code. I thought it was dealing with something else.
Thanks a lot for having pointed these thread out
Best regards.