10-11-2021 05:36 AM
Hello,
there are 100s of Assemblies in .Net , is there a assembly function to save a file without opening the file-dialogue box?
Which Assembly to use ?
I want to avoid using a VI to do the same thing.
Best,
Akshay
Solved! Go to Solution.
10-11-2021 05:52 AM
Hi aparab,
.NET isn't my thing but I think this should help?
Use Existing Object(NationalInstruments.TestStand.Interop.API.Engine).GetSequenceFileEx(System.String, Int32, NationalInstruments.TestStand.Interop.API.TypeConflictHandlerTypes).Save(System.String)
Regards
Steve
10-11-2021 07:58 AM
Thanks Steve,
well I donot explicitly wantto save the Sequnce File but a Result file, which can be a txt or XML.
& the Save member Function is not present in this class.
May be I am looking for a different class/member.
Best
Akshay
10-11-2021 08:07 AM
You can configure TestStand to save Results files in a place of your choosing through the Configure->Results Processing menu. Are you looking to implement that through .NET?
10-11-2021 08:32 AM - edited 10-11-2021 08:32 AM
Hello Steve,
Yes, but I am not allowed to change those adapter settings because we have a standard framework.
Hence I am trying to implement it in .Net. .NET is elegant and powerfull.
For the worst case scenaio, I can always implement it with labview.
Best,
Akshay
10-11-2021 10:18 AM - edited 10-11-2021 10:20 AM
I also tried using "System.IO.FileSystem(4.0.0.0)" but the Root Class is showing neither of the classes.
The same if I do in Visual Basic it works.
Does anyone of you are able to see the classes available in the "System.IO.FileSystem(4.0.0.0)"?
Best,
Akshay
10-11-2021 05:57 PM
For .NET Framework APIs, you generally need to specify mscorlib instead, as follows:
10-18-2021 05:59 AM
thanks dug