How to add process model results to the sequence file results?
After my sequence file runs, I would like to add some additional results using the process model. I need to log my equipment list which is obtained by the process model. Alternatively, I could add a sub-sequence to the end of each of my sequence files for doing this, but that would create maintenance problems if I ever needed to change the way equipment is logged. Does anyone know a way to (1) append process model results to the sequence file results or (2) force each client sequence file to call a sub-sequence before returning to the process model.
Mark -
The report and database process model routines expect a single subsequence step result that invoked MainSequence. This result contains the results from the sequence call.
In TestStand after the process model root sequence call to MainSequence is performed, the property Locals.ResultList[0] is the MainSequence result. The subproperty Locals.ResultList[0].TS.SequenceCall.ResultList contains the results from the steps in MainSequence.
One option is to create a subsequence call in the process model that logs the equipment info in the results for its steps. The call to the subsequence should not be checked to record results.
This subsequence would have a parameter called ResultList. The Result type does not exist in the Insert menu, so you can only create the parameter by copying the empty Locals.ResultList and pasting it in the parameters. Then change its type from By Value to By Reference.
In the setup of the subsequence, add the following steps which do not record results. These steps rename the Locals.ResultList parameter to ResultListOrig, and then create a new Locals.ResultList alias property that really references Parameters.ResultList. This way any additions to the Locals.ResultList really append to the Parameter.ResultList.
Setup
Step: "Rename Locals.ResultList"
StepType, Adapter: Action, Active-X
Description:
Action, Set PropertyObject.Name = "ResultListORIG"
Record Results: False
Step: "Create Alias in Locals"
StepType, Adapter: Actioin, Active-X
Description:
Action, Call PropertyObject.SetPropertyObject ("ResultList",
0x201 ' Not Owning and Create, Parameters.ResultList)
Record Results: False
In the Main steps, you add your equipment info steps which record results.
In the Cleanup steps you undo the steps performed in Setup.
Cleanup
Step: "Delete Alias in Locals"
StepType, Adapter: Action, Active-X
Description:
Action, Call PropertyObject.DeleteSubProperty ("ResultList",
0x400 ' Refer to Alias)
Record Results: False
Step: "Rename Locals.ResultListORIG"
StepType, Adapter: Action, Active-X
Description:
Action, Set PropertyObject.Name = "ResultList"
Record Results: False
I have attached a TS 2.0 version of SequentialModel.Seq that has a AppendResults subsequence in it and this is invoked after MainSequence in Single Pass entry point.
Hope this helps...
Scott Richardson (NI)
Scott Richardson
National Instruments
Attachments:
SequentialModel.Seq 174 KB
Similar Messages
-
Hi,
I have a custom Step Type that contains Measurements property under Results. Its type is Array of NI_LimitMeasurement.
I would like to see the values in the sequence file documentation like NI_MultipleNumericLimitTest type.
Is there any trick to do that?
Thanks,
AndrasHi Andras,
I have made a slight change to the sequencefile 'docgen_txt.seq'.
In the Sequence 'Step Doc' is a section which handles MultipleNumericLimit step type. There is a precondition check on the step 'Add Multiple Numeric Limits' if the step is of type 'NI_MultipleNumericLimit'. As your step type is based on the MultipleNumeric Limit type, I have just removed this precondition and just relied on the existence of Parameters.Step.Result.Measurement. Equally you could add a new section in this sequence to handle your Custom Step Type which is only called when the precodition match your type name.
Now when you run the DocGen tool it handles your custom step type.
Find attached my modified sequencefile 'docgen_txt.seq'.
Just copy the contents of '..\National Instruments\TestStand 3.5\Components\NI\Tools\DocGen' to the User folder. Then place the attached file in the User\Tools\DocGen overwritting the version that is in that folder.
Then launch TestStand and try it out on your sequence file.
If you are using the html version, then you will have to make the same change into Step Doc sequence of the docgen_html sequence file.
Hope this helps
Regards
Ray Farmer
Message Edited by Ray Farmer on 05-19-2007 05:28 PM
Regards
Ray Farmer
Attachments:
docgen_txt.seq 184 KB -
How to add a date suffix to the log file name
In Windows, I want to run certain commands and save the output to a logfile every day. How to add a suffix to the log file name so I can distinguish which log file for which day?
e.g. cmd >> logfile.dateAZ wrote:
In Windows, I want to run certain commands and save the output to a logfile every day. How to add a suffix to the log file name so I can distinguish which log file for which day?
e.g. cmd >> logfile.datemy best friend name is "google", refer to this [url | http://stackoverflow.com/questions/203090/how-to-get-current-datetime-on-windows-command-line-in-a-suitable-format-for-usi]
This is what i did
1) created a dummy file in c drive
2) copy pasted below lines, you can play around more with the format
set _my_datetime=%date%_%time%
set _my_datetime=%_my_datetime: =_%
set _my_datetime=%_my_datetime::=%
set _my_datetime=%_my_datetime:/=_%
set _my_datetime=%_my_datetime:.=_%3) Rename the file from dos
ren some.txt dummy_file_%_my_datetime%.txt4) Here goes the output
C:\dir
dummy_file_Mon_09_20_2010_161347_21.txt
Most of the code i copied from above url, you can tweak a little bit based on ur requirement and format.
Regards
Learner -
How to load the sequence file from the process model?
Does anyone have an example process model that loads a sequence file? The out-of-the-box process models assume the sequence file is already loaded. I want the process model to identify the UUT type and load the appropriate sequence file based on that.
Mark,
A better solution to your question can be accomplised if you have TestStand 2.0.
Within the entry point of a process modle you can set the client sequence using Execution.ClientFile(). This is a new method of TestStand 2.0. It was specifically designed so that you could dynamically set the client sequence within the process model.
Currently the entry points in the default process models (i.e. Test UUTs and Single Pass) are configured to Show Entry Point When Client File Window is Active. This means that you must open and have active a client sequence file before you can execute one of the entry point. You probably do not want this implementation if you are going to set the client file during the entry point execution. To change this you will need to go the sequence properties of your entry point (while the sequence is open select Edit>>Sequence Properties), switch to the Model tab of the entry point's property dialog box, and enable Show Entry Point For All Windows. The entry point will then appear whether or not you have an open sequence file active.
You will need to add at least 3 steps to your entry point sequence that all use the ActiveX Automation Adapter. Remember that MUST disable Record Results for any step you add to the process model. The 3 steps will perform the following tasks:
1) Obtains a sequence file reference of the file that you want to be the client sequence file. You will need to use the Engine.GetSequenceFileEx method. You will need a local variable (ActiveX data type) in which to store the sequence file reference.
2) Set the client sequence file using the Execution.ClientFile property.
3) Close the reference to the client sequence file in the Cleanup step group of your entry point sequence using Engine.ReleaseSequenceFileEx
I am attaching a SequenceModel.seq file (the default process model in TestStand 2.0) in which we have modified the TestUUTs entry point as described above.
Note that you'll be prompted to enter the path to your client sequence file. This is a message popup that you can delete and it was added for your review only.
Good luck in your project,
Azucena Perez
National Instruments
Attachments:
sequentialmodel.seq 164 KB -
How to add page numbers (centred) at the foot of a page?
Even this is confusing!
I typed my question hit return and was told I couldn't post a blank message.
How do I post my message?
I simply want to know how to add a page number at the foot (centred) of a page.
Oh! Great! Now I see, I should have known to scroll way down to find "post message".
AnneWhat kind of document: word processing? Spreadsheet? something else?
What program are you using to create the document? -
How to release process model sequence file object?
Calling engine's method GetStationModelSequenceFile we get the reference to the process model sequence file object. According to TestStand Help, you should "Release this reference when you are done using it." The question is: how do you release it? Call engine's method ReleaseSequenceFileEx passing the reference to the model sequence file gotten from GetStationModelSequenceFile won't work, it returns FALSE which means the sequence file can't be released. Similar problems exist with methods SequenceFile.GetModelSequenceFile, Execution.GetModelSequenceFile. My aplication is written in VB. Using the statement like
Set modelSequenceFile = Nothing also does not solve the problem. I want to get some information of process model, such as version number, so I call those API functions in my code, which was developed under TestStand 3.1. I post this question because when I ran my application with TestStand 3.5 or 4.0 beta, I got the warning dialog when loading a sequence file and then closing the application. The dialog listed all the unreleased objects which I figured out is due to that the process model file was not released. Because message in the dialog is as following:
The following top-level objects were not released:
Sequences [1 object(s) not released]
Sequence #1:
Name: Test UUTs
Type Definitions [43 object(s) not released]
Type Definition #1:
Name: TimeDetails
Type Definition #2:
Name: ReportOptions
Of course there are more in the list, but the sequence file loaded into the application is released correctly by calling engine's method ReleaseSequenceFileEx, so it does not appear in the list.
Any help will be greatly appreciated.Here are what I did after launch the operator interface:
1) Call Engine.GetSequenceFileEx to get a reference to a sequence file.
2) Display steps of MainSequence of the sequence file in GUI.
3) Call Engine.GetStationModelSequenceFile to get a reference to the station process model sequence file. The variable used to save the reference of process model sequence file is modelSequenceFile.
4) Loop through all the sequences in process model sequence file, get the references of entrypoint sequences in the process model and put them in a container (VB Collection).
At this point,
Calling modelSequenceFile.CanUnload returns TRUE
Calling modelSequenceFile.IsExecuting returns FALSE
Calling Engine.ReleaseSequenceFileEx(modelSequenceFile, ReleaseSeqFile_UnloadFile) returns FALSE
There is no other loaded process model sequence file reference at this point. -
How to add A single row at the middle of the table in a Webi report
Hi,
I created a Webi report using Universe(Created universe using bex query).Now i have a requirement to display a row at the middle of a report. Can you please tell me ,how to add a sigle row at the middle of a Webi report.
Thanks in advance
Regards
MonikaHi Monika,
It is not really possible to add a row (I assume you mean of unrelated data) to the middle of a table in a report. You can add a new table with a single row between two tables. For instance you could add a new one row table, or even single cells which are positioned relatively between two tables. Possibly a block on top of another. But this gets tricky.
Can you explain in more detail what you are trying to do?
Thanks -
How to add a radio station to the library
just loaded itunes 6 (windows box) and can't find out how to add a radio station to the library
If your current stations in WMP are .pls or .m3u URL's, they may work in iTunes also. Use the "Open Stream" command from the Advanced menu and put in the URL that includes .pls/.m3u. If the URL is a .mwv variety, those are Windows proprietary format and not supported by iTunes. Same with .ra streams (Real Audio).
.pls & .m3u usually indicate MP3 based streams supported in iTunes. It's up to the original radio station/streaming site to select the format and make it available. Shoutcast.com & Live365.com are great resources for mp3 based streams. -
How to add a new tab for the project?
Dear All Experts,
Could you tell me how to add a new tab for the project?
Pls refer to the screenshot as below:
Thanks!
Xinling ZhangHi,
The new tab in cj20n , and the new tab can only be displayed in the highed level.Pls refer to below
And in cj02, there is no this tab also in the wbs detailed screen,
Thanks!
Xinling -
Does anyone know how to add a preface page at the beginning of the book in ibooks author once the book is written? No matter how I try to add a Preface page, it goes to the end of the book.
Thanks. I've tried this and apparently the template I'm using is one of those where it doesn't work. I've tried dragging it as well as cutting a pasting but it always travels back to the end of the book. Maybe I can try changing the template temporarily, move the preface page, and then convert back to the original template. I'll experiment a little.
-
How to add a text box in the layout (View)
How to add a text box in the layout (View)
Hi.
Right Click in the RootUIElement container.
Click Insert Element.
Give Name: Input
Type : Input Field.
Press Enter.
Regards
Bala. -
How to add a excel driver in the Adminstrator tools
how to add a excel driver in the adminstrator tools > odbc Datasource,
I have to add the name and excel sheet location in the SystemDsn but whiling finishing the stups i will get the error like
error found could not found the registery.
,So is there any other setting is required while i am adding in the excel driver
please help me out for this ,this is 1st time am using the excel source in the report data source..I'd ask them over here.
Windows forums on Microsoft Answers
Office Excel forums on Micrsoft Answers
Regards, Dave Patrick ....
Microsoft Certified Professional
Microsoft MVP [Windows]
Disclaimer: This posting is provided "AS IS" with no warranties or guarantees , and confers no rights. -
How to add an extra page to the index.html page on dreamweaver CS6?
How to add an extra page to the index.html page on dreamweaver CS6?
Index.html = your domain's home page. There is only one home page per site.
To create a new page from your index, go to File > SaveAs > filename.html. Repeat for other site pages. Add links on your index page that lead to other site pages.
See Creating your first web site in DW CC (5-part tutorial)
https://helpx.adobe.com/dreamweaver/learn/tutorials/how-to/first-website-part1.html
Nancy O. -
How to add 'Confidential' watermark to all the pages in portal
Hi
How to add 'Confidential' watermark to all the pages in portal.We have ESS/MSS business packages installed 60.1, 60.2.
ECC5, EP SP16 is the environment.
Help will be appreciated
Thanks
SharathHi Sharath,
What about using the theme editor to add a background to either the page or the iView tray?
Daniel -
[SOLVED] How to add modules to build with the kernel?
Hello i´m trying to learn how to build my own custom kernel and doing it the arch way https://wiki.archlinux.org/index.php/Ke … raditional. But unfortunately dm-crypt was not included in the kernel so it all failed.
svart_alg% sudo mkinitcpio -k 3.15.6 -c /etc/mkinitcpio.conf -g /boot/initramfs-test.img
==> Starting build: 3.15.6
-> Running build hook: [base]
-> Running build hook: [udev]
-> Running build hook: [autodetect]
-> Running build hook: [modconf]
-> Running build hook: [lvm2]
==> ERROR: module not found: ‘dm-snapshot’
-> Running build hook: [encrypt]
==> ERROR: module not found: ‘dm-crypt’
-> Running build hook: [block]
-> Running build hook: [filesystems]
-> Running build hook: [keyboard]
-> Running build hook: [fsck]
==> WARNING: No modules were added to the image. This is probably not what you want.
==> Creating gzip initcpio image: /boot/initramfs-test.img
==> WARNING: errors were encountered during the build. The image may not be complete.
I have never don any of this before and have no idea of how to add a missing module to the kernel i´m building. So i search on internet and had a very hard time finding a good guide for this but i fond one possible solution. https://www.kernel.org/doc/Documentatio … odules.txt
svart_alg% make -C /home/nigro_alko/Kernel/linux-3.15.6 M=/home/nigro_alko/Kernel/cryptsetup-1.6.5/Makefile.in
make: Entering directory ‘/home/nigro_alko/Kernel/linux-3.15.6‘
mkdir: cannot create directory ‘/home/nigro_alko/Kernel/cryptsetup-1.6.5/Makefile.in’: Not a directory
scripts/Makefile.build:44: /home/nigro_alko/Kernel/cryptsetup-1.6.5/Makefile.in/Makefile: Not a directory
make[1]: *** No rule to make target ‘/home/nigro_alko/Kernel/cryptsetup-1.6.5/Makefile.in/Makefile’. Stop.
Makefile:1310: recipe for target ‘_module_/home/nigro_alko/Kernel/cryptsetup-1.6.5/Makefile.in’ failed
make: *** [_module_/home/nigro_alko/Kernel/cryptsetup-1.6.5/Makefile.in] Error 2
make: Leaving directory ‘/home/nigro_alko/Kernel/linux-3.15.6‘
So is there any one that have time to help a lost little newbie i would bee very happy :-)
Last edited by Moosey_Linux (2014-07-29 15:00:40)karol wrote:Why do you want a custom kernel in the first place?
Moosey_Linux wrote:i´m trying to learn how to build my own custom kernel
Reason enough IMO. But anyway... you refer to the Traditional build method in the wiki, but is it possible you didn't really read it? Or maybe you only skimmed it? Did you run make menuconfig? Did you try to build everything in instead of using modules? That mkinitcpio output suggests that you did.
As suggested there for first-timers, it's a good idea to start with a kernel configuration that is known to work - the Arch config is the obvious choice, but there are other sources e.g. http://kernel-seeds.org/ .
Maybe you are looking for
-
Play dvd or quicktime video spread over multiple monitors
Okay, I have a Mac Pro with a 512mb ati radeon with 2x 20" monitors hooked up to it via DVI. What I want to do is watch a DVD or quicktime video spread over both monitors. Not just full screen on one of them, but spread all the way over both so that
-
Hi, it is very simple q, i think we have labview 7 and 2 DAQ cards from NI. we are developing an labview application that communicate over DAQmx drivers with our daq cards. what's the best way to export our labview application so that it can runs on
-
Table which houses the status in delivery related billing
hi guys, In which sales table can we see the status(i.e order status,billing status,delivery status) of a delivery related billing and order related billing Thanks, Shamik
-
Excel tables for database usage in external programs such as game engines?
Hello! Where can I find more information about using Excel tables for database usage in external programs such as game engines? Do I have to use SQL, CSV or XML? Thank you!
-
HT5699 I forgot my security questions what can I do
I'm trying to buy a movie and it ask for security question I don't know the answer