02-14-2013 08:20 AM
I need to retrieve some info about my sequence, say step names. I suppose it's stored in MySequence.seq file. How can I read this file?
Solved! Go to Solution.
02-14-2013 08:53 AM
The obvious and simple method would be to have an application which uses TestStand to load that file. Such programs are called "User Interface" and when installing TestStand, you get a couple of them:
If you dont have such an UI, you can do the following:
Make sure that the file type of the seq-file is either XML or INI. This will give you "human readable" files. The file type can be changed in the NI Sequence editor. You have to load the file, change the type in the Sequence File Properties dialog and save the file.
Norbert
02-14-2013 09:03 AM - edited 02-14-2013 09:04 AM
Hi Norbert,
Of cause I've installed Test Stand. We have steps ranges stored in scv files, it's over 50 files right now. So i created csv files manager ( in C#) to update locals, step names, etc. I need to validate actual step names and edited by user ones. If i could open seq file in C# it would be great.
02-14-2013 12:34 PM
Use the TestStand API
http://zone.ni.com/reference/en-XX/help/370052G-01/tsapiref/infotopics/csharp/
Here is a C# example that reads and shows the contents of a .SEQ file.
https://decibel.ni.com/content/docs/DOC-3920
I have a copy of this poster on my cubicle wall
http://www.ni.com/pdf/manuals/372844b.pdf
02-14-2013 12:52 PM
Thanks a lot.
02-17-2013 12:19 AM
Sorry for disturbing. When i include NationalInstruments.TestStand.Interop.API.dll in my project and create public EngineClass myEngine; I get an error - Error 1 Interop type 'NationalInstruments.TestStand.Interop.API.EngineClass' cannot be embedded. Use the applicable interface instead.
02-17-2013 12:36 AM
It's compiling in 3.5 .NET. Where can i get API.dll for 4 .NET?
02-17-2013 09:52 AM
One more question - How can i get Locals? For steps we have methods GetNumSteps and GetStep. I didn't find something similar for locals.
02-18-2013 06:56 AM - edited 02-18-2013 07:01 AM
Locals are a property of the sequence object to which the step belongs.
http://digital.ni.com/public.nsf/allkb/5C08014017AA895686256DD6008323FB
02-18-2013 09:03 AM - edited 02-18-2013 09:04 AM
Thanks, i got it. And the last question - can i get limits the same way i get locals - using PropertyObject?