03-03-2015 08:06 AM - edited 03-03-2015 08:10 AM
Hi,
I would like to be able to create sequences like the one attached, using LabVIEW.
This sequence has only 2 steps, a LabVIEW VI call, and an ActiveX/COM Adapter Call.
I have been able to do this using an adaptation of the code here: https://decibel.ni.com/content/docs/DOC-36337
However, I am struggling to add the ActiveX/COM step.
Any help would be gratefully received.
Thanks,
Solved! Go to Solution.
03-03-2015 01:48 PM - edited 03-03-2015 02:01 PM
Hi,
Take a look at the attached example, it will do the job for you by creating the 3 different steps in 3 separate sequence groups. Check the output located at C:\NewSeq.seq.
Good luck:)
03-04-2015 02:15 AM
Thanks for that Folon - I think I'm half way there.
Is there a way to populate the Module Settings fields, as in my attachments. "No Settings.png" is what your code currently generates, and "Settings.png" is what I want.
Thanks,
03-04-2015 10:56 AM
Obviously there is a way if you look for it:)
Since you have an existing object of the "Step" class you can also get a "Module" object for it. Afterwards you have to specify that this is an ActiveX module. If you do not know that - probably you need to get it from the "Adapter" object somehow... Our case is simplier, so you just cast it to the ActiveX module and ... set some properties like ServerId, ActiveXReferenceExpr and so on.
I have attached an example for you. Interesting thing is the ServerId - I have just read this chain from the TS for similar step and reused it here so don't ask me how to obtain it automatically:)
You still have to fill your "Properties" like "file" - but I will graciously leave this job for you =:)
Best Regards,
03-04-2015 11:29 AM
Thanks very much!