I am trying to set password for sequence files during deployment in automated way.
Engine engine = new Engine();
SequenceFile seq = engine.GetSequenceFileEx(seqPath);
I ve tried to find some documentation but no success so far.
Solved! Go to Solution.
Hope this helps,
Script in c# works fine, next step is to create powershell script to do the same but I ca not instantiate Engine class:
$assembly = [System.Reflection.Assembly]::Load("NationalInstruments.TestStand.Interop.API, Version=126.96.36.199, Culture=neutral, PublicKeyToken=ad9244eb3b825cd8")
$engine = New-Object NationalInstruments.TestStand.Interop.API.Engine
The output is:
New-Object : A constructor was not found. Cannot find an appropriate constructor for type NationalInstruments.TestStand.Interop.API.Engine.
At line:2 char:11
I am not expert in powershell scripts so there might be something simple that I do not understand clearly.