From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

New Subsequence - "current file" vs sequence file

Solved!
Go to solution

Hi Everyone,

 

When adding an new subsequence is there any preference, perfomance issue or best practice between using the option "current file" vs using an actual sequence file?

 

Thanks,

 

Frank

0 Kudos
Message 1 of 3
(4,174 Views)
Solution
Accepted by topic author tstand

Unless you are calling the subsequence millions of times in a row then chances are there is no performance difference between Current File and an actual sequence file.  The performance hit you would take is if the step is set to load dynamically as opposed to load when the sequence file opens.

 

So the only time you want to move subsequences to a different file is if they can be reused by other sequence files.  Essentially creating a Sequence Library (that's what I call it).  So let's say you have ProductA and ProductB.  You create a test called ProdA.seq and you create a test called ProdB.seq.  Now let's say that both tests want to perform a current draw test.  And because you are a good modular developer you have a subsequence that represents the current draw test and all of it's steps.  You move this subsequence to a shared sequence file, we'll call it CommonTest.seq.  That way both ProdB.seq and ProdA.seq can call it.  Then if you change the complexity of the test or fix a bug then they both get the changes.

 

You could call the current draw subsequence from ProdA.seq by ProdB.seq but then what if you want to just put ProductB on a bench by itself.  Now you need the code for ProdA too.

 

Anyhow, hope this helps,

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
Message 2 of 3
(4,165 Views)

jigg

 

Thanks very much for your explanation!

 

Frank

 

 

0 Kudos
Message 3 of 3
(4,157 Views)