NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

adding data from a subsequence to a report

I have a sequence which calls a LabVIEW code module which runs a calibration prior to testing. Within LabVIEW I use a property object node to SetValNumber to the calibrated set point and write it to Locals.ResultList[0].setpoint; and I use the ModifyReportEntry callback to get the value to display in the report, and this is working.
My joy was short lived, when I run the top level sequence (which calls the calibration sequence) the data reporting is not propagated up. All I get is "Passed" for the step that is this sequence. If I add the ModifyReportEntry callback, how do I get the data into the ResultList at the top level. Is there some built in mechanism for propogating this data up? Would I need to write it to a FileGlobal in the subsequence, and then at this level copy it into the ResultList? (a second thing which is probably a lot easier: how do I turn off reporting for individual steps that the client does NOT want in the report - like which button was pressed for some dialog boxes?)
-   thanks

lmd2

Lawrence M. David Jr.
Certified LabVIEW Architect
cell: 516.819.9711
http://www.aleconsultants.com
larry@aleconsultants.com
0 Kudos
Message 1 of 13
(4,857 Views)
Hi Lawrence,
what kind of step type do you use to call the LabVIEW code module? I would prefer to use a Numeric Limit Step.
A Numeric Limit Step by default expects a numeric result in Step.Result.Numeric and that value by default appears in the report.
Can you do this, too? (That would also make understanding your code much easier and you don't need to modify that much.)
 
Switching off result reporting for steps can be done by unchecking the step property "Record Results".
Guenter
0 Kudos
Message 2 of 13
(4,842 Views)
Hi,
The LabVIEW VI is being called with an action step. I thought a numeric limit step would expect some comparison internally and return a Boolean (in limit?) also I think the report in this case would include values for the upper limit/lower limit. Then I would need some way of selectively editing the info that a numeric limit step reports. Seems like much more to clean up in the report since the step is in fact only determining a calibration constant.

Since I have this working in the sequence, I had thought it should be straight forward to have it reported in the calling sequence as well.
(also, I failed to mention previously; I am running LabVIEW 8.2.1, and TestStand 4)
Lawrence M. David Jr.
Certified LabVIEW Architect
cell: 516.819.9711
http://www.aleconsultants.com
larry@aleconsultants.com
0 Kudos
Message 3 of 13
(4,840 Views)
isn't there (there should be) a config check box somewhere to include subsequence results in report?
Lawrence M. David Jr.
Certified LabVIEW Architect
cell: 516.819.9711
http://www.aleconsultants.com
larry@aleconsultants.com
0 Kudos
Message 4 of 13
(4,828 Views)
Hi,
 
two things,
1) have you set the property for the sequence call step to record result.
2) In the sub-sequence properties ensure the disable all steps to record is not checked.
 
Regards
Ray Farmer
Regards
Ray Farmer
0 Kudos
Message 5 of 13
(4,826 Views)
in response to #1, yes the step is set to record results. As far as #2, "ensure the disable all steps to record is not checked." not sure where to find this.
Let me be clear about this. If I run the subsequence by itself (standalone) the report includes my extra data, it works fine. But when I run it from the top level, the full program, then the reprt shows this subsequence as a step, and the result of this step is simlpy "Done" without my extra data

thanks for your help, doesn't seem like it should be this hard. I have been drawing test executives in LabVIEW for twelve years, I am having a hard time seeing how TestStand is making my life easier.

thanks again,
lmd2
Lawrence M. David Jr.
Certified LabVIEW Architect
cell: 516.819.9711
http://www.aleconsultants.com
larry@aleconsultants.com
0 Kudos
Message 6 of 13
(4,824 Views)
Hi,
 
Have the sub sequence as the active sequence displayed. From the Edit menu select Sequence Properties which will display the Sequence Properties Dialog. There you will find a checkbox, that if checked will stop all steps results within the sequence from being recorded. You will find more information the TestStand Help.
 
Regards
Ray Farmer
Regards
Ray Farmer
0 Kudos
Message 7 of 13
(4,822 Views)
OK, am at the MainSequence Properties dialog box, and "Disable Result Recording for All Steps" is not checked (of the three check boxes the only one checked is Optomize Non-Reentrant Calls to ...)
Just noticed under "Advanced" are the property flags, and one is PropFlags_IncludeInReport; going to enable this, what have I got to loose? If this works I will post it, if not then I am still lost
Lawrence M. David Jr.
Certified LabVIEW Architect
cell: 516.819.9711
http://www.aleconsultants.com
larry@aleconsultants.com
0 Kudos
Message 8 of 13
(4,818 Views)
there was a second flag called Propogate; I enabled them both and ran this from the top level, I still get in the report Status: Done and no extra data
Lawrence M. David Jr.
Certified LabVIEW Architect
cell: 516.819.9711
http://www.aleconsultants.com
larry@aleconsultants.com
0 Kudos
Message 9 of 13
(4,817 Views)
Hey Lawrence,

This should be fairly easy to do.  One thing I would recommend is rather than modifying ModifyReportEntry callback, I would just set the flag IncludeInReport.  If you are creating an item underneath the ResultList, it should be included in the report so long as IncludeInReport is checked.  I have attached a very simple sequence that uses TestStand API calls to insert a numeric property and set the flags to include it in the report.  If this doesn't work for you, then we might need to check your Report Options.  In particular I know this example sequence will not work with OnTheFly reporting enabled.

Another reason this might not work is if you are making the sequence call as a new execution or new thread.  We will have to do some additional things to get the results included if you are running it with either of these options.
Pat P.
Software Engineer
National Instruments
Message 10 of 13
(4,798 Views)