Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

MBS FileMaker Plugin Example Databases

Phidget Voltage Input

All examples are included with download of MBS FileMaker Plugin.

Phidget Voltage Input.fmp12

Overview
Tables1
Relationships0
Layouts1
Scripts15
Value Lists0
Custom Functions0
Custom Menus24
File Options
Default custom menu set[Standard FileMaker Menus]
When opening file
Minimum allowed version12.0
Login usingAccount Name; Account= Admin
Allow user to save passwordOff
Require iOS passcodeOff
Switch to layoutOff
Hide all toolbarsOff
Script triggers
OnFirstWindowOpenScript: Start Script
OnLastWindowCloseOff
OnWindowOpenOff
OnWindowCloseOff
OnFileAVPlayerChangeOff
Thumbnail Settings
Generate ThumbnailsOn; Temporary

 

Tables

Table Name
Statistics
Occurrences in Relationship Graph
Phidget Voltage
18 fields defined, 1 record
Phidget Voltage

Fields

Table Name: Phidget Voltage - 18 Fields
Field NameTypeOptionsCommentsOn LayoutsIn RelationshipsIn ScriptsIn Value Lists
PrimaryKeyNormal, TextAuto-Enter: Validation:
  • Only during data entry
  • Not empty
  • Unique
  • Strict validation
Storage:
  • Repetitions: 1
  • Indexing: Minimal
  • Automatically create indexes as needed
  • Index Language: Unicode Raw
Unique identifier of each record in this table
          CreationTimestampNormal, TimestampAuto-Enter:
          • Creation timestamp
          Validation:
          • Only during data entry
          • Strict data type: 4 digit year
          • Not empty
          • Strict validation
          Storage:
          • Repetitions: 1
          • Indexing: None
          • Automatically create indexes as needed
          • Index Language: German
          Date and time each record was created
                  CreatedByNormal, TextAuto-Enter:
                  • Creation account name
                  Validation:
                  • Only during data entry
                  • Not empty
                  • Strict validation
                  Storage:
                  • Repetitions: 1
                  • Indexing: None
                  • Automatically create indexes as needed
                  • Index Language: German
                  Account name of the user who created each record
                          ModificationTimestampNormal, TimestampAuto-Enter:
                          • Modification timestamp
                          Validation:
                          • Only during data entry
                          • Strict data type: 4 digit year
                          • Not empty
                          • Strict validation
                          Storage:
                          • Repetitions: 1
                          • Indexing: None
                          • Automatically create indexes as needed
                          • Index Language: German
                          Date and time each record was last modified
                                  ModifiedByNormal, TextAuto-Enter:
                                  • Modification account name
                                  Validation:
                                  • Only during data entry
                                  • Not empty
                                  • Strict validation
                                  Storage:
                                  • Repetitions: 1
                                  • Indexing: None
                                  • Automatically create indexes as needed
                                  • Index Language: German
                                  Account name of the user who last modified each record
                                          DeviceNameNormal, TextAuto-Enter:
                                          • Allow editing
                                          Validation:
                                          • Only during data entry
                                          Storage:
                                          • Repetitions: 1
                                          • Indexing: None
                                          • Automatically create indexes as needed
                                          • Index Language: German
                                              DeviceSerialNumberNormal, NumberAuto-Enter:
                                              • Allow editing
                                              Validation:
                                              • Only during data entry
                                              Storage:
                                              • Repetitions: 1
                                              • Indexing: None
                                              • Automatically create indexes as needed
                                              • Index Language: German
                                                  DeviceIDNormal, NumberAuto-Enter:
                                                  • Allow editing
                                                  Validation:
                                                  • Only during data entry
                                                  Storage:
                                                  • Repetitions: 1
                                                  • Indexing: None
                                                  • Automatically create indexes as needed
                                                  • Index Language: German
                                                      DeviceLabelNormal, TextAuto-Enter:
                                                      • Allow editing
                                                      Validation:
                                                      • Only during data entry
                                                      Storage:
                                                      • Repetitions: 1
                                                      • Indexing: None
                                                      • Automatically create indexes as needed
                                                      • Index Language: German
                                                          ChannelNormal, NumberAuto-Enter:
                                                          • Allow editing
                                                          Validation:
                                                          • Only during data entry
                                                          Storage:
                                                          • Repetitions: 1
                                                          • Indexing: None
                                                          • Automatically create indexes as needed
                                                          • Index Language: German
                                                              ChannelClassNormal, NumberAuto-Enter:
                                                              • Allow editing
                                                              Validation:
                                                              • Only during data entry
                                                              Storage:
                                                              • Repetitions: 1
                                                              • Indexing: None
                                                              • Automatically create indexes as needed
                                                              • Index Language: German
                                                                  ChannelClassNameNormal, TextAuto-Enter:
                                                                  • Allow editing
                                                                  Validation:
                                                                  • Only during data entry
                                                                  Storage:
                                                                  • Repetitions: 1
                                                                  • Indexing: None
                                                                  • Automatically create indexes as needed
                                                                  • Index Language: German
                                                                      ChannelSubclassNormal, TextAuto-Enter:
                                                                      • Allow editing
                                                                      Validation:
                                                                      • Only during data entry
                                                                      Storage:
                                                                      • Repetitions: 1
                                                                      • Indexing: None
                                                                      • Automatically create indexes as needed
                                                                      • Index Language: German
                                                                          MaxVoltageNormal, NumberAuto-Enter:
                                                                          • Allow editing
                                                                          Validation:
                                                                          • Only during data entry
                                                                          Storage:
                                                                          • Repetitions: 1
                                                                          • Indexing: None
                                                                          • Automatically create indexes as needed
                                                                          • Index Language: German
                                                                                MinVoltageNormal, NumberAuto-Enter:
                                                                                • Allow editing
                                                                                Validation:
                                                                                • Only during data entry
                                                                                Storage:
                                                                                • Repetitions: 1
                                                                                • Indexing: None
                                                                                • Automatically create indexes as needed
                                                                                • Index Language: German
                                                                                      LastEventNormal, TextAuto-Enter:
                                                                                      • Allow editing
                                                                                      Validation:
                                                                                      • Only during data entry
                                                                                      Storage:
                                                                                      • Repetitions: 1
                                                                                      • Indexing: None
                                                                                      • Automatically create indexes as needed
                                                                                      • Index Language: German
                                                                                          JSONNormal, TextAuto-Enter:
                                                                                          • Allow editing
                                                                                          Validation:
                                                                                          • Only during data entry
                                                                                          Storage:
                                                                                          • Repetitions: 1
                                                                                          • Indexing: None
                                                                                          • Automatically create indexes as needed
                                                                                          • Index Language: German
                                                                                              ValueNormal, NumberAuto-Enter:
                                                                                              • Allow editing
                                                                                              Validation:
                                                                                              • Only during data entry
                                                                                              Storage:
                                                                                              • Repetitions: 6
                                                                                              • Indexing: None
                                                                                              • Automatically create indexes as needed
                                                                                              • Index Language: German

                                                                                                  Layout Objects: Phidget Voltage

                                                                                                  Regular Fields

                                                                                                  Field Name: Phidget Voltage::DeviceName
                                                                                                  Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                                                                  • Top: 117 pt
                                                                                                  • Left: 210 pt
                                                                                                  • Bottom: 148 pt
                                                                                                  • Right: 463 pt
                                                                                                  • Anchoring: Left, Top
                                                                                                  Field Format:
                                                                                                  • Edit Box
                                                                                                  Field Behavior:
                                                                                                  • Allow field to be entered: In Find mode, In Browse mode
                                                                                                  • Touch keyboard type: Default for Data Type
                                                                                                  • Go to next field using: Tab key
                                                                                                  Yes

                                                                                                  Field Name: Phidget Voltage::DeviceSerialNumber
                                                                                                  Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                                                                  • Top: 152 pt
                                                                                                  • Left: 210 pt
                                                                                                  • Bottom: 183 pt
                                                                                                  • Right: 463 pt
                                                                                                  • Anchoring: Left, Top
                                                                                                  Field Format:
                                                                                                  • Edit Box
                                                                                                  Field Behavior:
                                                                                                  • Allow field to be entered: In Find mode, In Browse mode
                                                                                                  • Touch keyboard type: Default for Data Type
                                                                                                  • Go to next field using: Tab key
                                                                                                  Yes

                                                                                                  Field Name: Phidget Voltage::DeviceID
                                                                                                  Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                                                                  • Top: 187 pt
                                                                                                  • Left: 210 pt
                                                                                                  • Bottom: 218 pt
                                                                                                  • Right: 463 pt
                                                                                                  • Anchoring: Left, Top
                                                                                                  Field Format:
                                                                                                  • Edit Box
                                                                                                  Field Behavior:
                                                                                                  • Allow field to be entered: In Find mode, In Browse mode
                                                                                                  • Touch keyboard type: Default for Data Type
                                                                                                  • Go to next field using: Tab key
                                                                                                  Yes

                                                                                                  Field Name: Phidget Voltage::DeviceLabel
                                                                                                  Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                                                                  • Top: 222 pt
                                                                                                  • Left: 210 pt
                                                                                                  • Bottom: 253 pt
                                                                                                  • Right: 463 pt
                                                                                                  • Anchoring: Left, Top
                                                                                                  Field Format:
                                                                                                  • Edit Box
                                                                                                  Field Behavior:
                                                                                                  • Allow field to be entered: In Find mode, In Browse mode
                                                                                                  • Touch keyboard type: Default for Data Type
                                                                                                  • Go to next field using: Tab key
                                                                                                  Yes

                                                                                                  Field Name: Phidget Voltage::Channel
                                                                                                  Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                                                                  • Top: 257 pt
                                                                                                  • Left: 210 pt
                                                                                                  • Bottom: 288 pt
                                                                                                  • Right: 463 pt
                                                                                                  • Anchoring: Left, Top
                                                                                                  Field Format:
                                                                                                  • Edit Box
                                                                                                  Field Behavior:
                                                                                                  • Allow field to be entered: In Find mode, In Browse mode
                                                                                                  • Touch keyboard type: Default for Data Type
                                                                                                  • Go to next field using: Tab key
                                                                                                  Yes

                                                                                                  Field Name: Phidget Voltage::ChannelClass
                                                                                                  Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                                                                  • Top: 292 pt
                                                                                                  • Left: 210 pt
                                                                                                  • Bottom: 323 pt
                                                                                                  • Right: 463 pt
                                                                                                  • Anchoring: Left, Top
                                                                                                  Field Format:
                                                                                                  • Edit Box
                                                                                                  Field Behavior:
                                                                                                  • Allow field to be entered: In Find mode, In Browse mode
                                                                                                  • Touch keyboard type: Default for Data Type
                                                                                                  • Go to next field using: Tab key
                                                                                                  Yes

                                                                                                  Field Name: Phidget Voltage::ChannelClassName
                                                                                                  Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                                                                  • Top: 327 pt
                                                                                                  • Left: 210 pt
                                                                                                  • Bottom: 358 pt
                                                                                                  • Right: 463 pt
                                                                                                  • Anchoring: Left, Top
                                                                                                  Field Format:
                                                                                                  • Edit Box
                                                                                                  Field Behavior:
                                                                                                  • Allow field to be entered: In Find mode, In Browse mode
                                                                                                  • Touch keyboard type: Default for Data Type
                                                                                                  • Go to next field using: Tab key
                                                                                                  Yes

                                                                                                  Field Name: Phidget Voltage::ChannelSubclass
                                                                                                  Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                                                                  • Top: 362 pt
                                                                                                  • Left: 210 pt
                                                                                                  • Bottom: 393 pt
                                                                                                  • Right: 463 pt
                                                                                                  • Anchoring: Left, Top
                                                                                                  Field Format:
                                                                                                  • Edit Box
                                                                                                  Field Behavior:
                                                                                                  • Allow field to be entered: In Find mode, In Browse mode
                                                                                                  • Touch keyboard type: Default for Data Type
                                                                                                  • Go to next field using: Tab key
                                                                                                  Yes

                                                                                                  Field Name: Phidget Voltage::LastEvent
                                                                                                  Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                                                                  • Top: 677 pt
                                                                                                  • Left: 210 pt
                                                                                                  • Bottom: 708 pt
                                                                                                  • Right: 990 pt
                                                                                                  • Anchoring: Left, Top
                                                                                                  Field Format:
                                                                                                  • Edit Box
                                                                                                  Field Behavior:
                                                                                                  • Allow field to be entered: In Find mode, In Browse mode
                                                                                                  • Touch keyboard type: Default for Data Type
                                                                                                  • Go to next field using: Tab key
                                                                                                  Yes

                                                                                                  Field Name: Phidget Voltage::JSON
                                                                                                  Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                                                                    OnObjectModify
                                                                                                  • Script: <unknown>
                                                                                                  • Modes: Browse
                                                                                                  • Top: 485 pt
                                                                                                  • Left: 210 pt
                                                                                                  • Bottom: 655 pt
                                                                                                  • Right: 463 pt
                                                                                                  • Anchoring: Left, Top
                                                                                                  Field Format:
                                                                                                  • Edit Box
                                                                                                  Field Behavior:
                                                                                                  • Allow field to be entered: In Find mode, In Browse mode
                                                                                                  • Touch keyboard type: Default for Data Type
                                                                                                  • Go to next field using: Tab key
                                                                                                  Yes

                                                                                                  Field Name: Phidget Voltage::Value
                                                                                                  Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                                                                  • Top: 397 pt
                                                                                                  • Left: 208 pt
                                                                                                  • Bottom: 428 pt
                                                                                                  • Right: 677 pt
                                                                                                  • Anchoring: Left, Top
                                                                                                  Field Format:
                                                                                                  • Edit Box
                                                                                                  • Show repetition: 1 through 6
                                                                                                  • Orientation: horizontal
                                                                                                  Field Behavior:
                                                                                                  • Allow field to be entered: In Find mode, In Browse mode
                                                                                                  • Touch keyboard type: Default for Data Type
                                                                                                  • Go to next field using: Tab key
                                                                                                  Yes

                                                                                                  Buttons

                                                                                                  Button PropertiesCoordinatesScript/Script Step
                                                                                                    Type:
                                                                                                  • Text: Close All
                                                                                                  • Top: 234 pt
                                                                                                  • Left: 920 pt
                                                                                                  • Bottom: 280 pt
                                                                                                  • Right: 1015 pt
                                                                                                  • Anchoring: Left, Top
                                                                                                  Perform Script [ “Close” ]

                                                                                                  Scripts:


                                                                                                  Button Bars

                                                                                                  Button Bar PropertiesCoordinates
                                                                                                    Orientation:
                                                                                                  • horizontal
                                                                                                  • Top: 124 pt
                                                                                                  • Left: 594 pt
                                                                                                  • Bottom: 170 pt
                                                                                                  • Right: 1015 pt
                                                                                                  • Anchoring: Left, Top
                                                                                                  Button Segments
                                                                                                  Button PropertiesCoordinatesScript/Script Step
                                                                                                    Type:
                                                                                                  • Text:
                                                                                                    Label Calculations:
                                                                                                  • "V 0"
                                                                                                  • Top: 125 pt
                                                                                                  • Left: 595 pt
                                                                                                  • Bottom: 169 pt
                                                                                                  • Right: 665 pt
                                                                                                  Perform Script [ “Open Voltage Phidget”; Parameter: 1 ]

                                                                                                  Scripts:

                                                                                                  Button PropertiesCoordinatesScript/Script Step
                                                                                                    Type:
                                                                                                  • Text:
                                                                                                    Label Calculations:
                                                                                                  • "V 1"
                                                                                                  • Top: 125 pt
                                                                                                  • Left: 665 pt
                                                                                                  • Bottom: 169 pt
                                                                                                  • Right: 735 pt
                                                                                                  Perform Script [ “Open Voltage Phidget”; Parameter: 2 ]

                                                                                                  Scripts:

                                                                                                  Button PropertiesCoordinatesScript/Script Step
                                                                                                    Type:
                                                                                                  • Text:
                                                                                                    Label Calculations:
                                                                                                  • "V 2"
                                                                                                  • Top: 125 pt
                                                                                                  • Left: 735 pt
                                                                                                  • Bottom: 169 pt
                                                                                                  • Right: 805 pt
                                                                                                  Perform Script [ “Open Voltage Phidget”; Parameter: 3 ]

                                                                                                  Scripts:

                                                                                                  Button PropertiesCoordinatesScript/Script Step
                                                                                                    Type:
                                                                                                  • Text:
                                                                                                    Label Calculations:
                                                                                                  • "V 3"
                                                                                                  • Top: 125 pt
                                                                                                  • Left: 805 pt
                                                                                                  • Bottom: 169 pt
                                                                                                  • Right: 875 pt
                                                                                                  Perform Script [ “Open Voltage Phidget”; Parameter: 4 ]

                                                                                                  Scripts:

                                                                                                  Button PropertiesCoordinatesScript/Script Step
                                                                                                    Type:
                                                                                                  • Text:
                                                                                                    Label Calculations:
                                                                                                  • "V 4"
                                                                                                  • Top: 125 pt
                                                                                                  • Left: 875 pt
                                                                                                  • Bottom: 169 pt
                                                                                                  • Right: 944 pt
                                                                                                  Perform Script [ “Open Voltage Phidget”; Parameter: 5 ]

                                                                                                  Scripts:

                                                                                                  Button PropertiesCoordinatesScript/Script Step
                                                                                                    Type:
                                                                                                  • Text:
                                                                                                    Label Calculations:
                                                                                                  • "V 5"
                                                                                                  • Top: 125 pt
                                                                                                  • Left: 944 pt
                                                                                                  • Bottom: 169 pt
                                                                                                  • Right: 1014 pt
                                                                                                  Perform Script [ “Open Voltage Phidget”; Parameter: 6 ]

                                                                                                  Scripts:


                                                                                                  Button Bar PropertiesCoordinates
                                                                                                    Orientation:
                                                                                                  • horizontal
                                                                                                  • Top: 179 pt
                                                                                                  • Left: 594 pt
                                                                                                  • Bottom: 225 pt
                                                                                                  • Right: 1015 pt
                                                                                                  • Anchoring: Left, Top
                                                                                                  Button Segments
                                                                                                  Button PropertiesCoordinatesScript/Script Step
                                                                                                    Type:
                                                                                                  • Text:
                                                                                                    Label Calculations:
                                                                                                  • "D 0"
                                                                                                  • Top: 180 pt
                                                                                                  • Left: 595 pt
                                                                                                  • Bottom: 224 pt
                                                                                                  • Right: 665 pt
                                                                                                  Perform Script [ “Open Digital Input”; Parameter: 1 ]

                                                                                                  Scripts:

                                                                                                  Button PropertiesCoordinatesScript/Script Step
                                                                                                    Type:
                                                                                                  • Text:
                                                                                                    Label Calculations:
                                                                                                  • "D 1"
                                                                                                  • Top: 180 pt
                                                                                                  • Left: 665 pt
                                                                                                  • Bottom: 224 pt
                                                                                                  • Right: 735 pt
                                                                                                  Perform Script [ “Open Digital Input”; Parameter: 2 ]

                                                                                                  Scripts:

                                                                                                  Button PropertiesCoordinatesScript/Script Step
                                                                                                    Type:
                                                                                                  • Text:
                                                                                                    Label Calculations:
                                                                                                  • "D 2"
                                                                                                  • Top: 180 pt
                                                                                                  • Left: 735 pt
                                                                                                  • Bottom: 224 pt
                                                                                                  • Right: 805 pt
                                                                                                  Perform Script [ “Open Digital Input”; Parameter: 3 ]

                                                                                                  Scripts:

                                                                                                  Button PropertiesCoordinatesScript/Script Step
                                                                                                    Type:
                                                                                                  • Text:
                                                                                                    Label Calculations:
                                                                                                  • "D 3"
                                                                                                  • Top: 180 pt
                                                                                                  • Left: 805 pt
                                                                                                  • Bottom: 224 pt
                                                                                                  • Right: 875 pt
                                                                                                  Perform Script [ “Open Digital Input”; Parameter: 4 ]

                                                                                                  Scripts:

                                                                                                  Button PropertiesCoordinatesScript/Script Step
                                                                                                    Type:
                                                                                                  • Text:
                                                                                                    Label Calculations:
                                                                                                  • "D 4"
                                                                                                  • Top: 180 pt
                                                                                                  • Left: 875 pt
                                                                                                  • Bottom: 224 pt
                                                                                                  • Right: 944 pt
                                                                                                  Perform Script [ “Open Digital Input”; Parameter: 5 ]

                                                                                                  Scripts:

                                                                                                  Button PropertiesCoordinatesScript/Script Step
                                                                                                    Type:
                                                                                                  • Text:
                                                                                                    Label Calculations:
                                                                                                  • "D 5"
                                                                                                  • Top: 180 pt
                                                                                                  • Left: 944 pt
                                                                                                  • Bottom: 224 pt
                                                                                                  • Right: 1014 pt
                                                                                                  Perform Script [ “Open Digital Input”; Parameter: 6 ]

                                                                                                  Scripts:


                                                                                                  Script Hierarchy

                                                                                                  Load Library
                                                                                                  Start Script
                                                                                                  Open Voltage Phidget
                                                                                                  Open Digital Input
                                                                                                  Close
                                                                                                  Close All
                                                                                                  Clear Fields
                                                                                                  -
                                                                                                  VoltageAttached
                                                                                                  VoltageChange
                                                                                                  VoltageDetached
                                                                                                  -
                                                                                                  DigitalAttached
                                                                                                  DigitalChange
                                                                                                  DigitalDetached

                                                                                                  Next Script: [Start Script]
                                                                                                  Script NameLoad Library
                                                                                                  Run script with full access privilegesOff
                                                                                                  Siri Shortcut VisibleOff
                                                                                                  Include In MenuYes
                                                                                                  Layouts that use this script
                                                                                                    Scripts that use this script
                                                                                                    Script Definition
                                                                                                    Script Steps
                                                                                                    • If [ MBS("IsWindows") ]
                                                                                                    • Set Variable [ $r; Value:MBS( "Phidget.Load"; "C:\Program Files\Phidgets\Phidget22\phidget22.dll") ]
                                                                                                    • Else If [ MBS("IsMacOS") ]
                                                                                                    • Set Variable [ $r; Value:MBS( "Phidget.Load"; "/Library/Frameworks/Phidget22.framework") ]
                                                                                                    • Else If [ MBS("IsLinux") ]
                                                                                                    • Set Variable [ $r; Value:MBS( "Phidget.Load"; "libphidget22.so") ]
                                                                                                    • End If
                                                                                                    • If [ $r ≠ "OK" ]
                                                                                                    • Show Custom Dialog [ Title: "Failed to load library"; Message: $r; Default Button: “OK”, Commit: “Yes” ]
                                                                                                    • Halt Script
                                                                                                    • End If
                                                                                                    Fields used in this script
                                                                                                      Scripts used in this script
                                                                                                        Layouts used in this script
                                                                                                          Tables used in this script
                                                                                                            Table occurrences used by this script
                                                                                                              Custom Functions used by this script
                                                                                                                Custom menu set used by this script

                                                                                                                  Previous Script: [Load Library]Next Script: [Open Voltage Phidget]
                                                                                                                  Script NameStart Script
                                                                                                                  Run script with full access privilegesOff
                                                                                                                  Siri Shortcut VisibleOff
                                                                                                                  Include In MenuYes
                                                                                                                  Layouts that use this script
                                                                                                                    Scripts that use this script
                                                                                                                      Script Definition
                                                                                                                      Script Steps
                                                                                                                      Fields used in this script
                                                                                                                        Scripts used in this script
                                                                                                                        Layouts used in this script
                                                                                                                          Tables used in this script
                                                                                                                            Table occurrences used by this script
                                                                                                                              Custom Functions used by this script
                                                                                                                                Custom menu set used by this script

                                                                                                                                  Previous Script: [Start Script]Next Script: [Open Digital Input]
                                                                                                                                  Script NameOpen Voltage Phidget
                                                                                                                                  Run script with full access privilegesOff
                                                                                                                                  Siri Shortcut VisibleOff
                                                                                                                                  Include In MenuYes
                                                                                                                                  Layouts that use this script
                                                                                                                                  Scripts that use this script
                                                                                                                                    Script Definition
                                                                                                                                    Script Steps
                                                                                                                                    • Set Field [ Phidget Voltage::LastEvent; "Create at " & Get(CurrentTimestamp) ]
                                                                                                                                    • Set Variable [ $index; Value:Get(ScriptParameter) ]
                                                                                                                                    • If [ IsEmpty ( $index ) ]
                                                                                                                                    • Show Custom Dialog [ Title: "no index given?"; Default Button: “OK”, Commit: “Yes” ]
                                                                                                                                    • Exit Script [ ]
                                                                                                                                    • End If
                                                                                                                                    • Set Variable [ $phidget; Value:$$phidget[$index] ]
                                                                                                                                    • If [ $phidget ≠ "" ]
                                                                                                                                    • Set Variable [ $r; Value:MBS("Phidget.Close"; $phidget) ]
                                                                                                                                    • Set Variable [ $r; Value:MBS("Phidget.Release"; $phidget) ]
                                                                                                                                    • Set Variable [ $$phidget[$index]; Value:"" ]
                                                                                                                                    • End If
                                                                                                                                    • Set Variable [ $phidget; Value:MBS( "Phidget.Create"; "VoltageInput" ) ]
                                                                                                                                    • If [ MBS("IsError") = 0 ]
                                                                                                                                    • Set Variable [ $$phidget[$index]; Value:$phidget ]
                                                                                                                                    • #set where to find the voltage input, in our case on first port of a hub
                                                                                                                                    • Set Variable [ $r; Value:MBS( "Phidget.SetProperty"; $phidget; "Channel"; 0 ) ]
                                                                                                                                    • Set Variable [ $r; Value:MBS( "Phidget.SetProperty"; $phidget; "HubPort"; $index-1 ) ]
                                                                                                                                    • Set Variable [ $r; Value:MBS( "Phidget.SetProperty"; $phidget; "IsHubPortDevice"; 1 ) ]
                                                                                                                                    • Set Variable [ $r; Value:MBS( "Phidget.SetTag"; $phidget; $index) ]
                                                                                                                                    • Set Variable [ $r; Value:MBS( "Phidget.SetScriptTrigger"; $phidget; "Attach"; Get(FileName); "VoltageAttached" ) ]
                                                                                                                                    • Set Variable [ $r; Value:MBS( "Phidget.SetScriptTrigger"; $phidget; "Detach"; Get(FileName); "VoltageDetached" ) ]
                                                                                                                                    • #open asynchronously
                                                                                                                                    • Set Variable [ $r; Value:MBS( "Phidget.Open"; $phidget ) ]
                                                                                                                                    • If [ $r ≠ "OK" ]
                                                                                                                                    • Set Field [ Phidget Voltage::LastEvent; "Failed to open at " & Get(CurrentTimestamp) ]
                                                                                                                                    • Commit Records/Requests [ No dialog ]
                                                                                                                                    • Else
                                                                                                                                    • Set Field [ Phidget Voltage::LastEvent; "Opened at " & Get(CurrentTimestamp) ]
                                                                                                                                    • Commit Records/Requests [ No dialog ]
                                                                                                                                    • End If
                                                                                                                                    • End If
                                                                                                                                    Fields used in this script
                                                                                                                                    Scripts used in this script
                                                                                                                                      Layouts used in this script
                                                                                                                                        Tables used in this script
                                                                                                                                        Table occurrences used by this script
                                                                                                                                        Custom Functions used by this script
                                                                                                                                          Custom menu set used by this script

                                                                                                                                            Previous Script: [Open Voltage Phidget]Next Script: [Close]
                                                                                                                                            Script NameOpen Digital Input
                                                                                                                                            Run script with full access privilegesOff
                                                                                                                                            Siri Shortcut VisibleOff
                                                                                                                                            Include In MenuYes
                                                                                                                                            Layouts that use this script
                                                                                                                                            Scripts that use this script
                                                                                                                                              Script Definition
                                                                                                                                              Script Steps
                                                                                                                                              • Set Field [ Phidget Voltage::LastEvent; "Create at " & Get(CurrentTimestamp) ]
                                                                                                                                              • Set Variable [ $index; Value:Get(ScriptParameter) ]
                                                                                                                                              • If [ IsEmpty ( $index ) ]
                                                                                                                                              • Show Custom Dialog [ Title: "no index given?"; Default Button: “OK”, Commit: “Yes” ]
                                                                                                                                              • Exit Script [ ]
                                                                                                                                              • End If
                                                                                                                                              • Set Variable [ $phidget; Value:$$phidget[$index] ]
                                                                                                                                              • If [ $phidget ≠ "" ]
                                                                                                                                              • Set Variable [ $r; Value:MBS("Phidget.Close"; $phidget) ]
                                                                                                                                              • Set Variable [ $r; Value:MBS("Phidget.Release"; $phidget) ]
                                                                                                                                              • Set Variable [ $$phidget[$index]; Value:"" ]
                                                                                                                                              • End If
                                                                                                                                              • Set Variable [ $phidget; Value:MBS( "Phidget.Create"; "DigitalInput" ) ]
                                                                                                                                              • If [ MBS("IsError") = 0 ]
                                                                                                                                              • Set Variable [ $$phidget[$index]; Value:$phidget ]
                                                                                                                                              • #set where to find the voltage input, in our case on first port of a hub
                                                                                                                                              • Set Variable [ $r; Value:MBS( "Phidget.SetProperty"; $phidget; "Channel"; 0 ) ]
                                                                                                                                              • Set Variable [ $r; Value:MBS( "Phidget.SetProperty"; $phidget; "HubPort"; $index-1 ) ]
                                                                                                                                              • Set Variable [ $r; Value:MBS( "Phidget.SetProperty"; $phidget; "IsHubPortDevice"; 1 ) ]
                                                                                                                                              • Set Variable [ $r; Value:MBS( "Phidget.SetTag"; $phidget; $index) ]
                                                                                                                                              • Set Variable [ $r; Value:MBS( "Phidget.SetScriptTrigger"; $phidget; "Attach"; Get(FileName); "DigitalAttached" ) ]
                                                                                                                                              • Set Variable [ $r; Value:MBS( "Phidget.SetScriptTrigger"; $phidget; "Detach"; Get(FileName); "DigitalDetached" ) ]
                                                                                                                                              • #open asynchronously
                                                                                                                                              • Set Variable [ $r; Value:MBS( "Phidget.Open"; $phidget ) ]
                                                                                                                                              • If [ $r ≠ "OK" ]
                                                                                                                                              • Set Field [ Phidget Voltage::LastEvent; "Failed to open at " & Get(CurrentTimestamp) ]
                                                                                                                                              • Commit Records/Requests [ No dialog ]
                                                                                                                                              • Else
                                                                                                                                              • Set Field [ Phidget Voltage::LastEvent; "Opened at " & Get(CurrentTimestamp) ]
                                                                                                                                              • Commit Records/Requests [ No dialog ]
                                                                                                                                              • End If
                                                                                                                                              • End If
                                                                                                                                              Fields used in this script
                                                                                                                                              Scripts used in this script
                                                                                                                                                Layouts used in this script
                                                                                                                                                  Tables used in this script
                                                                                                                                                  Table occurrences used by this script
                                                                                                                                                  Custom Functions used by this script
                                                                                                                                                    Custom menu set used by this script

                                                                                                                                                      Previous Script: [Open Digital Input]Next Script: [Close All]
                                                                                                                                                      Script NameClose
                                                                                                                                                      Run script with full access privilegesOff
                                                                                                                                                      Siri Shortcut VisibleOff
                                                                                                                                                      Include In MenuYes
                                                                                                                                                      Layouts that use this script
                                                                                                                                                      Scripts that use this script
                                                                                                                                                        Script Definition
                                                                                                                                                        Script Steps
                                                                                                                                                        • If [ Length ( $$phidget[1] ) > 0 ]
                                                                                                                                                        • Set Variable [ $count; Value:12 ]
                                                                                                                                                        • Set Variable [ $index; Value:1 ]
                                                                                                                                                        • If [ $index ≤ $count ]
                                                                                                                                                        • Loop [ Flush: Defer ]
                                                                                                                                                        • Set Variable [ $phidget; Value:$$phidget[$index] ]
                                                                                                                                                        • If [ $phidget ≠ "" ]
                                                                                                                                                        • Set Variable [ $r; Value:MBS("Phidget.Close"; $phidget) ]
                                                                                                                                                        • Set Variable [ $r; Value:MBS("Phidget.Release"; $phidget) ]
                                                                                                                                                        • Set Variable [ $$phidget[$index]; Value:"" ]
                                                                                                                                                        • End If
                                                                                                                                                        • #next
                                                                                                                                                        • Set Variable [ $index; Value:$index + 1 ]
                                                                                                                                                        • Exit Loop If [ $index > $count ]
                                                                                                                                                        • End Loop
                                                                                                                                                        • End If
                                                                                                                                                        • End If
                                                                                                                                                        • Perform Script [ “Clear Fields” ]
                                                                                                                                                        • Set Field [ Phidget Voltage::LastEvent; "" ]
                                                                                                                                                        Fields used in this script
                                                                                                                                                        Scripts used in this script
                                                                                                                                                        Layouts used in this script
                                                                                                                                                          Tables used in this script
                                                                                                                                                          Table occurrences used by this script
                                                                                                                                                          Custom Functions used by this script
                                                                                                                                                            Custom menu set used by this script

                                                                                                                                                              Previous Script: [Close]Next Script: [Clear Fields]
                                                                                                                                                              Script NameClose All
                                                                                                                                                              Run script with full access privilegesOff
                                                                                                                                                              Siri Shortcut VisibleOff
                                                                                                                                                              Include In MenuYes
                                                                                                                                                              Layouts that use this script
                                                                                                                                                                Scripts that use this script
                                                                                                                                                                  Script Definition
                                                                                                                                                                  Script Steps
                                                                                                                                                                  • Set Variable [ $r; Value:MBS("Phidget.ReleaseAll") ]
                                                                                                                                                                  • Set Variable [ $$phidget; Value:"" ]
                                                                                                                                                                  • Set Field [ Phidget Voltage::LastEvent; "" ]
                                                                                                                                                                  • Perform Script [ “Clear Fields” ]
                                                                                                                                                                  Fields used in this script
                                                                                                                                                                  Scripts used in this script
                                                                                                                                                                  Layouts used in this script
                                                                                                                                                                    Tables used in this script
                                                                                                                                                                    Table occurrences used by this script
                                                                                                                                                                    Custom Functions used by this script
                                                                                                                                                                      Custom menu set used by this script

                                                                                                                                                                        Previous Script: [Close All]Next Script: [-]
                                                                                                                                                                        Script NameClear Fields
                                                                                                                                                                        Run script with full access privilegesOff
                                                                                                                                                                        Siri Shortcut VisibleOff
                                                                                                                                                                        Include In MenuNo
                                                                                                                                                                        Layouts that use this script
                                                                                                                                                                          Scripts that use this script
                                                                                                                                                                          Script Definition
                                                                                                                                                                          Script Steps
                                                                                                                                                                          • Set Field [ Phidget Voltage::DeviceName; "" ]
                                                                                                                                                                          • Set Field [ Phidget Voltage::DeviceSerialNumber; "" ]
                                                                                                                                                                          • Set Field [ Phidget Voltage::DeviceID; "" ]
                                                                                                                                                                          • Set Field [ Phidget Voltage::DeviceLabel; "" ]
                                                                                                                                                                          • Set Field [ Phidget Voltage::Channel; "" ]
                                                                                                                                                                          • Set Field [ Phidget Voltage::ChannelClass; "" ]
                                                                                                                                                                          • Set Field [ Phidget Voltage::ChannelClassName; "" ]
                                                                                                                                                                          • Set Field [ Phidget Voltage::ChannelSubclass; "" ]
                                                                                                                                                                          • Set Field [ Phidget Voltage::MaxVoltage; "" ]
                                                                                                                                                                          • Set Field [ Phidget Voltage::MinVoltage; "" ]
                                                                                                                                                                          • Set Field [ Phidget Voltage::JSON; "" ]
                                                                                                                                                                          • Set Variable [ $count; Value:6 ]
                                                                                                                                                                          • Set Variable [ $index; Value:1 ]
                                                                                                                                                                          • If [ $index ≤ $count ]
                                                                                                                                                                          • Loop [ Flush: Defer ]
                                                                                                                                                                          • Set Field [ Phidget Voltage::Value[$index]; "" ]
                                                                                                                                                                          • #next
                                                                                                                                                                          • Set Variable [ $index; Value:$index + 1 ]
                                                                                                                                                                          • Exit Loop If [ $index > $count ]
                                                                                                                                                                          • End Loop
                                                                                                                                                                          • End If
                                                                                                                                                                          • Commit Records/Requests [ No dialog ]
                                                                                                                                                                          Fields used in this script
                                                                                                                                                                          Scripts used in this script
                                                                                                                                                                            Layouts used in this script
                                                                                                                                                                              Tables used in this script
                                                                                                                                                                              Table occurrences used by this script
                                                                                                                                                                              Custom Functions used by this script
                                                                                                                                                                                Custom menu set used by this script

                                                                                                                                                                                  Previous Script: [Clear Fields]Next Script: [VoltageAttached]
                                                                                                                                                                                  Script Name-
                                                                                                                                                                                  Run script with full access privilegesOff
                                                                                                                                                                                  Siri Shortcut VisibleOff
                                                                                                                                                                                  Include In MenuNo
                                                                                                                                                                                  Layouts that use this script
                                                                                                                                                                                    Scripts that use this script
                                                                                                                                                                                      Script Definition
                                                                                                                                                                                      Script Steps
                                                                                                                                                                                        Fields used in this script
                                                                                                                                                                                          Scripts used in this script
                                                                                                                                                                                            Layouts used in this script
                                                                                                                                                                                              Tables used in this script
                                                                                                                                                                                                Table occurrences used by this script
                                                                                                                                                                                                  Custom Functions used by this script
                                                                                                                                                                                                    Custom menu set used by this script

                                                                                                                                                                                                      Previous Script: [-]Next Script: [VoltageChange]
                                                                                                                                                                                                      Script NameVoltageAttached
                                                                                                                                                                                                      Run script with full access privilegesOff
                                                                                                                                                                                                      Siri Shortcut VisibleOff
                                                                                                                                                                                                      Include In MenuNo
                                                                                                                                                                                                      Layouts that use this script
                                                                                                                                                                                                        Scripts that use this script
                                                                                                                                                                                                          Script Definition
                                                                                                                                                                                                          Script Steps
                                                                                                                                                                                                          • Set Field [ Phidget Voltage::LastEvent; "Attached at " & Get(CurrentTimestamp) ]
                                                                                                                                                                                                          • Set Variable [ $r; Value:MBS("Log"; "Attached at " & Get(CurrentTimestamp)) ]
                                                                                                                                                                                                          • Set Variable [ $parameter; Value:Get(ScriptParameter) ]
                                                                                                                                                                                                          • Set Variable [ $phidget; Value:JSONGetElement ( $parameter ; "ID" ) ]
                                                                                                                                                                                                          • Set Variable [ $index; Value:MBS( "Phidget.GetTag"; $phidget) ]
                                                                                                                                                                                                          • #set change trigger to fire at 0.1 change at maximum once a second
                                                                                                                                                                                                          • Set Variable [ $r; Value:MBS( "Phidget.SetProperty"; $phidget; "DataInterval"; 1000 ) ]
                                                                                                                                                                                                          • Set Variable [ $r; Value:MBS( "Phidget.SetProperty"; $phidget; "VoltageChangeTrigger"; ,1 ) ]
                                                                                                                                                                                                          • Set Variable [ $r; Value:MBS( "Phidget.SetScriptTrigger"; $phidget; "VoltageChange"; Get(FileName); "VoltageChange" ) ]
                                                                                                                                                                                                          • Set Field [ Phidget Voltage::DeviceName; MBS("Phidget.GetProperty"; $phidget; "DeviceName") ]
                                                                                                                                                                                                          • Set Field [ Phidget Voltage::DeviceSerialNumber; MBS("Phidget.GetProperty"; $phidget; "DeviceSerialNumber") ]
                                                                                                                                                                                                          • Set Field [ Phidget Voltage::DeviceID; MBS("Phidget.GetProperty"; $phidget; "DeviceID") ]
                                                                                                                                                                                                          • Set Field [ Phidget Voltage::DeviceLabel; MBS("Phidget.GetProperty"; $phidget; "DeviceLabel") ]
                                                                                                                                                                                                          • Set Field [ Phidget Voltage::Channel; MBS("Phidget.GetProperty"; $phidget; "Channel") ]
                                                                                                                                                                                                          • Set Field [ Phidget Voltage::ChannelClass; MBS("Phidget.GetProperty"; $phidget; "ChannelClass") ]
                                                                                                                                                                                                          • Set Field [ Phidget Voltage::ChannelClassName; MBS("Phidget.GetProperty"; $phidget; "ChannelClassName") ]
                                                                                                                                                                                                          • Set Field [ Phidget Voltage::ChannelSubclass; MBS("Phidget.GetProperty"; $phidget; "ChannelSubclass") ]
                                                                                                                                                                                                          • Set Field [ Phidget Voltage::MaxVoltage; MBS("Phidget.GetProperty"; $phidget; "MaxVoltage") ]
                                                                                                                                                                                                          • Set Field [ Phidget Voltage::MinVoltage; MBS("Phidget.GetProperty"; $phidget; "MinVoltage") ]
                                                                                                                                                                                                          • Set Field [ Phidget Voltage::Value[$index]; MBS("Phidget.GetProperty"; $phidget; "Voltage") ]
                                                                                                                                                                                                          • Commit Records/Requests [ No dialog ]
                                                                                                                                                                                                          Fields used in this script
                                                                                                                                                                                                          Scripts used in this script
                                                                                                                                                                                                            Layouts used in this script
                                                                                                                                                                                                              Tables used in this script
                                                                                                                                                                                                              Table occurrences used by this script
                                                                                                                                                                                                              Custom Functions used by this script
                                                                                                                                                                                                                Custom menu set used by this script

                                                                                                                                                                                                                  Previous Script: [VoltageAttached]Next Script: [VoltageDetached]
                                                                                                                                                                                                                  Script NameVoltageChange
                                                                                                                                                                                                                  Run script with full access privilegesOff
                                                                                                                                                                                                                  Siri Shortcut VisibleOff
                                                                                                                                                                                                                  Include In MenuNo
                                                                                                                                                                                                                  Layouts that use this script
                                                                                                                                                                                                                    Scripts that use this script
                                                                                                                                                                                                                      Script Definition
                                                                                                                                                                                                                      Script Steps
                                                                                                                                                                                                                      • Set Variable [ $json; Value:Get(ScriptParameter) ]
                                                                                                                                                                                                                      • Set Variable [ $phidget; Value:JSONGetElement ( $json ; "ID" ) ]
                                                                                                                                                                                                                      • Set Variable [ $index; Value:MBS( "Phidget.GetTag"; $phidget) ]
                                                                                                                                                                                                                      • Set Field [ Phidget Voltage::LastEvent; "Voltage changed at " & Get(CurrentTimestamp) ]
                                                                                                                                                                                                                      • Set Field [ Phidget Voltage::Value[$index]; JSONGetElement ( $json ; "voltage" ) ]
                                                                                                                                                                                                                      • Set Field [ Phidget Voltage::JSON; $json ]
                                                                                                                                                                                                                      Fields used in this script
                                                                                                                                                                                                                      Scripts used in this script
                                                                                                                                                                                                                        Layouts used in this script
                                                                                                                                                                                                                          Tables used in this script
                                                                                                                                                                                                                          Table occurrences used by this script
                                                                                                                                                                                                                          Custom Functions used by this script
                                                                                                                                                                                                                            Custom menu set used by this script

                                                                                                                                                                                                                              Previous Script: [VoltageChange]Next Script: [-]
                                                                                                                                                                                                                              Script NameVoltageDetached
                                                                                                                                                                                                                              Run script with full access privilegesOff
                                                                                                                                                                                                                              Siri Shortcut VisibleOff
                                                                                                                                                                                                                              Include In MenuNo
                                                                                                                                                                                                                              Layouts that use this script
                                                                                                                                                                                                                                Scripts that use this script
                                                                                                                                                                                                                                  Script Definition
                                                                                                                                                                                                                                  Script Steps
                                                                                                                                                                                                                                  • Set Field [ Phidget Voltage::LastEvent; "Detached at " & Get(CurrentTimestamp) ]
                                                                                                                                                                                                                                  • Set Variable [ $r; Value:MBS("Log"; "Detached at " & Get(CurrentTimestamp)) ]
                                                                                                                                                                                                                                  • Set Variable [ $parameter; Value:Get(ScriptParameter) ]
                                                                                                                                                                                                                                  • Perform Script [ “Clear Fields” ]
                                                                                                                                                                                                                                  Fields used in this script
                                                                                                                                                                                                                                  Scripts used in this script
                                                                                                                                                                                                                                  Layouts used in this script
                                                                                                                                                                                                                                    Tables used in this script
                                                                                                                                                                                                                                    Table occurrences used by this script
                                                                                                                                                                                                                                    Custom Functions used by this script
                                                                                                                                                                                                                                      Custom menu set used by this script

                                                                                                                                                                                                                                        Previous Script: [VoltageDetached]Next Script: [DigitalAttached]
                                                                                                                                                                                                                                        Script Name-
                                                                                                                                                                                                                                        Run script with full access privilegesOff
                                                                                                                                                                                                                                        Siri Shortcut VisibleOff
                                                                                                                                                                                                                                        Include In MenuNo
                                                                                                                                                                                                                                        Layouts that use this script
                                                                                                                                                                                                                                          Scripts that use this script
                                                                                                                                                                                                                                            Script Definition
                                                                                                                                                                                                                                            Script Steps
                                                                                                                                                                                                                                              Fields used in this script
                                                                                                                                                                                                                                                Scripts used in this script
                                                                                                                                                                                                                                                  Layouts used in this script
                                                                                                                                                                                                                                                    Tables used in this script
                                                                                                                                                                                                                                                      Table occurrences used by this script
                                                                                                                                                                                                                                                        Custom Functions used by this script
                                                                                                                                                                                                                                                          Custom menu set used by this script

                                                                                                                                                                                                                                                            Previous Script: [-]Next Script: [DigitalChange]
                                                                                                                                                                                                                                                            Script NameDigitalAttached
                                                                                                                                                                                                                                                            Run script with full access privilegesOff
                                                                                                                                                                                                                                                            Siri Shortcut VisibleOff
                                                                                                                                                                                                                                                            Include In MenuNo
                                                                                                                                                                                                                                                            Layouts that use this script
                                                                                                                                                                                                                                                              Scripts that use this script
                                                                                                                                                                                                                                                                Script Definition
                                                                                                                                                                                                                                                                Script Steps
                                                                                                                                                                                                                                                                • Set Field [ Phidget Voltage::LastEvent; "Attached at " & Get(CurrentTimestamp) ]
                                                                                                                                                                                                                                                                • Set Variable [ $r; Value:MBS("Log"; "Attached at " & Get(CurrentTimestamp)) ]
                                                                                                                                                                                                                                                                • Set Variable [ $parameter; Value:Get(ScriptParameter) ]
                                                                                                                                                                                                                                                                • Set Variable [ $phidget; Value:JSONGetElement ( $parameter ; "ID" ) ]
                                                                                                                                                                                                                                                                • Set Variable [ $index; Value:MBS( "Phidget.GetTag"; $phidget) ]
                                                                                                                                                                                                                                                                • #set state change trigger at maximum once a second
                                                                                                                                                                                                                                                                • // Set Variable [ $r; Value:MBS( "Phidget.SetProperty"; $phidget; "DataInterval"; 1000 ) ]
                                                                                                                                                                                                                                                                • Set Variable [ $r; Value:MBS( "Phidget.SetScriptTrigger"; $phidget; "StateChange"; Get(FileName); "DigitalChange" ) ]
                                                                                                                                                                                                                                                                • Set Field [ Phidget Voltage::DeviceName; MBS("Phidget.GetProperty"; $phidget; "DeviceName") ]
                                                                                                                                                                                                                                                                • Set Field [ Phidget Voltage::DeviceSerialNumber; MBS("Phidget.GetProperty"; $phidget; "DeviceSerialNumber") ]
                                                                                                                                                                                                                                                                • Set Field [ Phidget Voltage::DeviceID; MBS("Phidget.GetProperty"; $phidget; "DeviceID") ]
                                                                                                                                                                                                                                                                • Set Field [ Phidget Voltage::DeviceLabel; MBS("Phidget.GetProperty"; $phidget; "DeviceLabel") ]
                                                                                                                                                                                                                                                                • Set Field [ Phidget Voltage::Channel; MBS("Phidget.GetProperty"; $phidget; "Channel") ]
                                                                                                                                                                                                                                                                • Set Field [ Phidget Voltage::ChannelClass; MBS("Phidget.GetProperty"; $phidget; "ChannelClass") ]
                                                                                                                                                                                                                                                                • Set Field [ Phidget Voltage::ChannelClassName; MBS("Phidget.GetProperty"; $phidget; "ChannelClassName") ]
                                                                                                                                                                                                                                                                • Set Field [ Phidget Voltage::ChannelSubclass; MBS("Phidget.GetProperty"; $phidget; "ChannelSubclass") ]
                                                                                                                                                                                                                                                                • Set Field [ Phidget Voltage::Value[$index]; MBS("Phidget.GetProperty"; $phidget; "State") ]
                                                                                                                                                                                                                                                                • Commit Records/Requests [ No dialog ]
                                                                                                                                                                                                                                                                Fields used in this script
                                                                                                                                                                                                                                                                Scripts used in this script
                                                                                                                                                                                                                                                                  Layouts used in this script
                                                                                                                                                                                                                                                                    Tables used in this script
                                                                                                                                                                                                                                                                    Table occurrences used by this script
                                                                                                                                                                                                                                                                    Custom Functions used by this script
                                                                                                                                                                                                                                                                      Custom menu set used by this script

                                                                                                                                                                                                                                                                        Previous Script: [DigitalAttached]Next Script: [DigitalDetached]
                                                                                                                                                                                                                                                                        Script NameDigitalChange
                                                                                                                                                                                                                                                                        Run script with full access privilegesOff
                                                                                                                                                                                                                                                                        Siri Shortcut VisibleOff
                                                                                                                                                                                                                                                                        Include In MenuNo
                                                                                                                                                                                                                                                                        Layouts that use this script
                                                                                                                                                                                                                                                                          Scripts that use this script
                                                                                                                                                                                                                                                                            Script Definition
                                                                                                                                                                                                                                                                            Script Steps
                                                                                                                                                                                                                                                                            • Set Variable [ $json; Value:Get(ScriptParameter) ]
                                                                                                                                                                                                                                                                            • Set Variable [ $phidget; Value:JSONGetElement ( $json ; "ID" ) ]
                                                                                                                                                                                                                                                                            • Set Variable [ $index; Value:MBS( "Phidget.GetTag"; $phidget) ]
                                                                                                                                                                                                                                                                            • Set Field [ Phidget Voltage::LastEvent; "Digital changed at " & Get(CurrentTimestamp) ]
                                                                                                                                                                                                                                                                            • Set Field [ Phidget Voltage::Value[$index]; JSONGetElement ( $json ; "state" ) ]
                                                                                                                                                                                                                                                                            • Set Field [ Phidget Voltage::JSON; $json ]
                                                                                                                                                                                                                                                                            Fields used in this script
                                                                                                                                                                                                                                                                            Scripts used in this script
                                                                                                                                                                                                                                                                              Layouts used in this script
                                                                                                                                                                                                                                                                                Tables used in this script
                                                                                                                                                                                                                                                                                Table occurrences used by this script
                                                                                                                                                                                                                                                                                Custom Functions used by this script
                                                                                                                                                                                                                                                                                  Custom menu set used by this script

                                                                                                                                                                                                                                                                                    Previous Script: [DigitalChange]
                                                                                                                                                                                                                                                                                    Script NameDigitalDetached
                                                                                                                                                                                                                                                                                    Run script with full access privilegesOff
                                                                                                                                                                                                                                                                                    Siri Shortcut VisibleOff
                                                                                                                                                                                                                                                                                    Include In MenuNo
                                                                                                                                                                                                                                                                                    Layouts that use this script
                                                                                                                                                                                                                                                                                      Scripts that use this script
                                                                                                                                                                                                                                                                                        Script Definition
                                                                                                                                                                                                                                                                                        Script Steps
                                                                                                                                                                                                                                                                                        • Set Field [ Phidget Voltage::LastEvent; "Detached at " & Get(CurrentTimestamp) ]
                                                                                                                                                                                                                                                                                        • Set Variable [ $r; Value:MBS("Log"; "Detached at " & Get(CurrentTimestamp)) ]
                                                                                                                                                                                                                                                                                        • Set Variable [ $parameter; Value:Get(ScriptParameter) ]
                                                                                                                                                                                                                                                                                        • Perform Script [ “Clear Fields” ]
                                                                                                                                                                                                                                                                                        Fields used in this script
                                                                                                                                                                                                                                                                                        Scripts used in this script
                                                                                                                                                                                                                                                                                        Layouts used in this script
                                                                                                                                                                                                                                                                                          Tables used in this script
                                                                                                                                                                                                                                                                                          Table occurrences used by this script
                                                                                                                                                                                                                                                                                          Custom Functions used by this script
                                                                                                                                                                                                                                                                                            Custom menu set used by this script

                                                                                                                                                                                                                                                                                              Download example: Phidget Voltage Input

                                                                                                                                                                                                                                                                                              Used functions: