NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Read *.seq file.

Solved!
Go to solution

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?

0 Kudos
Message 1 of 19
(8,612 Views)

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:

  • The NI Sequence Editor
  • Custom UI examples in two versions: Simple and Full-Feature, both in 5 different programming languages.

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

 

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 2 of 19
(8,607 Views)

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.

0 Kudos
Message 3 of 19
(8,604 Views)
Solution
Accepted by topic author john7

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

 

Message 4 of 19
(8,586 Views)

Thanks a lot.

0 Kudos
Message 5 of 19
(8,580 Views)

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. 

0 Kudos
Message 6 of 19
(8,542 Views)

It's compiling in 3.5 .NET. Where can i get API.dll for 4 .NET?

0 Kudos
Message 7 of 19
(8,538 Views)

One more question - How can i get Locals? For steps we have methods GetNumSteps and GetStep. I didn't find something similar for locals.

0 Kudos
Message 8 of 19
(8,525 Views)

Locals are a property of the sequence object to which the step belongs.

 

http://digital.ni.com/public.nsf/allkb/5C08014017AA895686256DD6008323FB

 

 

0 Kudos
Message 9 of 19
(8,504 Views)

Thanks, i got it. And the last question - can i get limits the same way i get locals - using PropertyObject?

0 Kudos
Message 10 of 19
(8,495 Views)