Related Topics: | ||
Description: Returns the specified simulation result (Result ID) for the specified spare part pool (Pool Index).
Syntax: SIM_POOL_RESULTS(Data_Src, Result ID, Pool Index, [Phase])
Data_Src is the source diagram from which the data are taken.
Result ID is the specific piece of data you are retrieving. The Result ID can be one of the following values:
# | Result ID | # | Result ID | |
0 | Name | 9 | Number of Stock Updates | |
1 | Average Time to Dispense | 10 | Parts Restocked | |
2 | Parts Dispensed | 11 | Indirect Costs | |
3 | Total Time To Dispense | 12 | Indirect Cost per Part | |
4 | Emergency Requests | 13 | Direct Cost | |
5 | Rejected Requests | 14 | Direct Cost per Part | |
6 | Initial Stock Level | 15 | Total Cost | |
7 | Average Stock Level | 16 | Total Cost per Part | |
8 | Current Stock Level |
Pool Index is the index number of the spare part pool you want the data for. BlockSim assigns the number based on the order the spare part pool was added to the project. Note that if you are using the Function Wizard, you can click the Select button to choose the spare part pool. BlockSim will assign the number based on your selection.
Phase is the index number of the phase the results occurred in. BlockSim assigns the number based on the order the phase was added to the diagram. Note that if you are using the Function Wizard, you can click the Select button to choose the phase. BlockSim will assign the number based on your selection.
Remarks:
The Data_Src can be one of the following values:
If using a default data source, it must be either 1, 2, 3 or 4, as selected from the Data Source Index drop-down list.
It can take a diagram name (e.g., "RBD!RBD1").
It can take a variable name defined via the Defined Names window (e.g., datasource).
Phase is an optional value and returns a result only if the source diagram is a phase diagram.
Example:
SIM_POOL_RESULTS("RBD!RBD1", 2, 1) = 9.015 [This is the total number of parts the pool dispensed.]
Note that this value will vary depending on the source diagram.
© 1992-2013. ReliaSoft Corporation. ALL RIGHTS RESERVED.