Decide Step

 
Decide Step
 
This Step lets you change the behavior of a Mission based upon items in the PIM's Log or Status Views.  The specified question is asked of the data currently in the PIM.  Different Steps may then be executed depending on whether the answer is "Yes" or "No".  In the image above, the question is "Is it true that any logged Product Name is equal to Milk?".
 
1

Which

This lets you select which Log or Status item to base the decision on.  To select a Status item, select "The status entry".  If you are selecting a Log item, you have four choices.  Since any given Log Item may appear multiple times in the Log, you can specify that the first, last, any, or every appearance must match.  The options are:
 
First logged
"Yes" if the first occurrence of the specified Log item matches.
Last logged
"Yes" if the last occurrence of the specified Log item matches.
Any logged
"Yes" if any of the specified Log items match.
Every logged
"Yes" if every specified Log item matches.
The status entry
"Yes" if the value of the specified Status entry matches.
 
2

Name

Click here to specify the name of the Log or Status Item that you want to check.  A menu will appear that lists your choices.  The Log Item list contains all known Log Item that are Integers, Reals, DateTimes, Strings, SecureStrings, or Yes/No; including fields of a user-defined Form type.  The Status Item list contains:
 
Model
Model number of the PIM
PimID
Unique ID of the PIM
PollRate
Command polling rate in msec
SampleRate
Sensor sampling rate in seconds
State
Current state of the PIM (Reset, Running, Stopped, ...)
TotalSamples
Total sample periods since the battery was installed
TotalTicks
Total seconds since the battery was installed
Use
Use number for this use of the PIM
Version
Version number of the PIM firmware
 
 
3

Relation

Select how you want to compare the Item to the specified value.  The options presented depend on the Type of the Item selected.
4

Value

Enter the value that you want to compare the Item to.
5

Yes button

Pressing this button shows the Steps that will be executed if a match occurs. 
6

No button

Pressing this button shows the Steps that will be executed if the match fails.