Is there a way to dynamically create the sequence file documentation?
Sequence file documentation
Re: Sequence file documentation
I assume that by dynamically, you mean programmatically. And by documentation, I assume that you mean the equivalent of using the tool available in the TestStand sequence editor: Tools -> Sequence File Documentation.
If my assumptions are right, the answer is yes.
The documentation of the current sequence file is generated by the tool using sequence files located in <TestStand>/Components/Tools/DocGen. You can call the sequences of those sequence files to generate the documentation of a sequence file.
As an example, you can do the following (assuming here that you use the documentation options of the TestStand sequence editor).
*** Load Documentation Options ***
You need to create a DocOptions container custom type, available in docgen.seq.
DLL call from DocSupport.dll (located in the DocGen/Win32 directory), ReadDocOptions with RunState.Engine and Locals.DocOptions as parameters.
You can modify the options here as needed.
*** Get Reference from Sequence file ***
Create a local variable SequenceFileRef as object reference.
Use RunState.Sequencefile if you want to document the sequence file currently loaded or RunState.Engine.GetSequenceFileEx(Locals.SequenceFilePath) where the Local variable SequenceFilePath is a string containing the path of the sequence file you want to document.
*** Generate Documentation ***
Call the sequence "Sequence File Doc" from the sequence file docgen_html.seq or dog_text.seq if you want to generate html or ascii documentation respectively using Locals.Options and Locals.SequenceFileRef.AsPropertyObject as parameters.
*******************
I have attached the code. Up to you to modify your Documentation Options and the sequence filename according to your needs.
Importing variables from .csv to be used to set channels and perform channel value limit test
Is there a way to import a file like the one attached and loop through each row as opposed to creating a step to set each unique value and to check each unique limit?
Re: Importing variables from .csv to be used to set channels and perform channel value limit test
Hey,
This is actually a perfect candidate for the Data Streams feature that was introduced in TestStand 2017. If you haven't upgraded to the TestStand 2017 SP1, you can download it at TestStand 2017 SP1 - 64 bit and take a look at the shipping example for data streams at <TestStand Public>\
Examples\Fundamentals\Using Data Streams\
Thanks!
Roxy
Tools >> Update Sequence Files does not update Types
This post implies that Tools >> Update Sequence Files will update the Types
https://forums.ni.com/t5/NI-TestStand/Update-All-Sequence-files-automatically-Types/td-p/2319322
But yet another post claims it does not.
https://forums.ni.com/t5/NI-TestStand/How-to-mass-compile-types-after-Labview-update/td-p/3822095
I have tried the Update Sequence Files tool for the explicit purpose of updating my sequence files to the latest process model / engine type definitions and have found that the types remain unchanged. In particular the Type that needed updating was NI_ModelPlugin (Update needed because changing from TS 2016 SP1 to TS 2017)
Can anyone confirm if the Update Sequence Files tool is supposed to update Types?
Re: NI TestStand Log Results Run-Time Error
Is this only happening when using the LabVIEW VI?
You can try placing breakpoints to indentify on which step it's failing.
Regards.
How to find the loop count for while loop?
hello,
I want to find the loop counter when the while loop is running, without setting parameter for record additionally. Is there anyway possible for me?
Thanks in advance.
Re: How to find the loop count for while loop?
There is no loop counter that comes with the while loop step. You can easily add one using the Pre or Post expression fields.
Re: Custom Step Type on TS 2017 compatible with TS 2016, error -17339
Hello,
I copied the type definitions to a new .ini file in TS 2016. But, in fact my error was related to the DLL called inside the TSDotNetSupport.dll, which is specific for each version of TestStand (I think so).
I didn't test the compatibility option in the properties.
Thanks,
Freddy
Re: How to find the loop count for while loop?
Thank you. I compared with For loop and find that there is also no loop counter in itself. Therefore, I still have to set temperary parameter for loop counting.
Re: Loading sequence dynamically causes deployment of shared variables to fail.
Hi,
i had same problem, i removed the virtual folder from the library and it worked fine. it seems that it not allowed to use in Teststand Shared Variables in Virtual folders from a LabVIEW Project.
the guileful thing is that when trying the vi in labVIEW everything works fine.
Re: RemoteEXEServer.exe Not Working + Exception
hi,
yess, these 2 articles were di first thing tried.
have you got it to run? remotely? because locally every thing is ok!
one problem appears just by typing a password (error -17500 ) and i dont think that i have any influence on that (maybe a bug?).
by the way am using Teststand 2017 SP1 32bit
Error when calling Veristand Logging Step in Teststand
Hi,
I have been tasked with creating an automated test system which uses Teststand to sequence control of Veristand.
I am more familiar with Veristand then Teststand, but when I found that someone has previously installed the Veristand steps in Teststand, I thought great until I got the attached error!
My aim is to control Veristand Logging through Teststand.
If someone could shed some light on this issue I would really appreciate it.
Si
Re: RemoteEXEServer.exe Not Working + Exception
Hello,
Have a look over this.
Remote Execution in 32-bit TestStand and 64-bit TestStand: http://zone.ni.com/reference/en-XX/help/370052N-01/tsfundamentals/infotopics/64remoteexecution/
It might be to do with the set up
Re: Using ExtraPutty for Telnet Communication in TestStand
Hi,
I am able to get a response from the device via Telnet window, but not displaying anything returning into TestStand.
Thanks,
Willer
Re: Tools >> Update Sequence Files does not update Types
Hi,
I do not see anything that specifies that tool for updating types. The help menu states that the "Sequence File Converter", which opens when you go to Tools >> Update Sequence Files is used to resave sequence files and it can be used to ensure that a group of files are updated so they load as quickly as possible.
Here is some information about the tool:
http://zone.ni.com/reference/en-XX/help/370052N-01/tsref/infotopics/sequence_file_converter/
Re: Bug Report: Random function RANDOM() in TS2016 delivers always the same number (after a long time)
For anybody interested, TestStand was reseeding the Random() function using the standard C clock() function. Per the documentation, https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/clock?view=vs-2015, once clock() rolls over its 32-bit counter, it always returns -1. It does not just rollover to zero and keep going. This means that if a process stays up long enough, TestStand will reseed using -1 any time you pass 0.0 for the seed, explaining the strange change in behavior after long tests.
We are changing the code to use GetTickCount64() instead of clock(). The fix did not make it into TestStand 2019. It should be included in the next service pack or major release, whichever comes first. There are a couple of examples that call srand(clock()) as well. We are changing the example built in Visual Studio to call GetTickCount64(). GetTickCount64() is not available in CVI, so we are change the example built with CVI to seed with time().
Re: Tools >> Update Sequence Files does not update Types
Thanks for your input. I found that the Diff and Merge Utility will update Type definitions if option "Automatically Merge Types" is enabled. I have experimented and this appears to upgrade the sequence files as desired.
Teststand 2014 runtime crashing on windows 10 version 1809 and 1803
Hello everyone!
I hope I can explain the situation clearly, so first some background:
1.-We developed a test framework back in 2015.
2.-This test framework has been working since then on 4 computers.
3.-We used the simple UI of labview and we modified it.
4.-The seq is loaded automatically based on the computer name instead of manually selecting using the "Load seq file" button.
5.-Teststand is configured to auto-login with windows credentials.
6.-UI retrieves from the engine the login user to show it on the front panel.
Now, the issue we see and the steps we have done so far:
1.-We installed the test framework on a 5th computer.
2.-When pressing the "Test UUTs" button after the user name is shown, nothing happens, it looks like the sequence file wasn't loaded.
3.-If I press the "Test UUTs" button after the teststand engine app start and before the user name is shown on the front panel the sequence starts.
4.-Trying it on my laptop (development computer) it shows the same behavior. Worth to mention that the framework was working on my PC months ago.
5.-Running the source code of the UI, if run slowly (highlight execution) it works.
6.-Looking at the differences on software installed we found that the 4 computers have the windows 10 version 2015 build 10240, on the 5th computer it had windows 10 2018 1809 and my laptop has windows 10 2018 1803.
7.-Installing windows 10 2015 build 10240 on the 5th computer works with the test framework. I'm having windows issues but that is another story.
8.-I know that my PC was updated due several months ago I started to have a problems that neither the photos and calculator apps worked, I was living like that due IT wasn't able to fix it... a week or so I noticed the calculator working, so something changed.
I have attached a picture for reference of the section where the seq is loaded on the code.
Basically we are stuck with 10240 build of windows 10 (we haven't install successive windows 10 versions to see if it breaks after X , too much work), at this point we are worry that the computers can be upgraded and start seeing issues, we are working with IT to avoid any updates for now, but, I know that we will be asked by IT to update computers for security reasons, so we need to get this resolved.
Best Regards.
Abel
Re: NI TestStand Log Results Run-Time Error
I have not tried it another way, only with the TestStand Simple UI run in Labview.
I attached two additional pictures of when the test prompts me where the Run-Time Error comes up.