ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Changing Path And Dll-Filename of CVI-Step in a SequenceFile,

Solved!
Go to solution

Following the TestStand-Example "Sequence Builder.seq" we have created our own SequenceBuilder, which let us generate Sequence-Files from our SQL-Server-Database. Unfortunatly I could not find out how to Change the DllName and Path for our CVI-Steps.

 

We want to change the Dll-Name and the Path in SequenceFile.

If it is possible  to  do it with TestStand -Active-X –Steps, this would be the best way. If it is only possible,  to do it in CVI-Code, this will also be ok.

 

Thank you for your Help

 

Paul Buehlmann

0 Kudos
Message 1 of 5
(4,635 Views)

Hi Paul,

 

would you be so kind to upload your "E4_SequenceBuilder.dll" file, too. I'm going to have a look on it.

 

I think this tutorial would be interesting for you, too:

http://www.ni.com/white-paper/4242/en 

 

Best regards,

Matijas

0 Kudos
Message 2 of 5
(4,584 Views)

Hi Matijas,

 

Thank you for your answer. I attached the whole Project (including the dll, without the database of course). I've read your suggested document. But I could not find out how to Change the Property 'RunState.Sequence.Main["SetVariables"].TS.SData.Call.LibPath'. I think this property is from older TestStand-Versions.

 

I inserted a Label-Step With the Name "ChangeDllName Could Be done here" in the Sequence-File "E4_SequenceBuilderE4.seq" .

 

Best Regards

 

Paul

 

 

 

0 Kudos
Message 3 of 5
(4,576 Views)
Solution
Accepted by topic author Paul_Buehlmann

Hi Paul

 

maybe these threads are interesting for you

 

http://forums.ni.com/t5/NI-TestStand/Create-a-LabVIEW-Step-dynamically/m-p/976702/highlight/true#M25...

 

http://forums.ni.com/t5/NI-TestStand/TestStand-Dynamically-retrieve-a-code-module-prototype/m-p/1261...

 

Regards

 

Juergen

--Signature--
Sessions NI-Week 2017 2016
Feedback or kudos are welcome
0 Kudos
Message 4 of 5
(4,566 Views)

Hi Matijas, Hi Juergen,

 

With yours suggested links I could find out how to change the dllName. I simply had to Insert a StatementStep with the following expression:

 

Locals.ClonedStepRef.TS.SData.Call.LibPath="MyNewDllName.dll"

 

(ClonedStepRef is the Reference of my actualStep which I want to Modify)

It is always the same with TestStand: the solution is so easy, if know it.

 

Thank Matijas and Juergen your hints were exactly what I needed

 

Best Regards from Switzerland

 

Paul

 

Message 5 of 5
(4,533 Views)