Configure Sensor Scripts

Only a subset of the available sensor scripts loaded onto each X2 logger is enabled to run by default. Using CONNECT, it is possible to set which sensors are scanned during detection to reduce completion time or to enable less common sensors.

Show Enabled Sensors

  1. Connect the X2 logger to a PC and launch the CONNECT software.
  2. On the Configuration tab, click the Read Script List button.
    1. All of the sensor detection scripts loaded onto the SD card of the X2 will appear.
    2. Checkmarks will be placed next to those which are enabled to run by default.

Script list from the X2, indicating which are loaded on the SD card and which are set to run.


Modify Sensor Detection List

    1. As desired, enable or disable detection scripts using the check-boxes to the left of each listed sensor.
      1. Note that the 0001-NexSens X2 Internal Diagnostic sensor should always be checked. This supplies vital system diagnostic information.

Select/deselect sensor detection scripts as desired.


    1. Once the change(s) have been made, click the down arrow to the right of the Read Script List button and select Write script autodetect enable flags.

Save the enabled detection scripts to the X2.


    1. A prompt will appear indicating that the selected sensor scripts have been enabled to run.

Script enable confirmation.


  1. It is recommended that the script list is confirmed manually following the changes by clicking the Read Script List button again.


Add/Update Sensor Scripts

In certain situations, it may become necessary to add a new or updated sensor script to the X2. In this instance, NexSens will provide the script file, which is transferrable to the X2 through CONNECT.

    1. Copy the .lua script file provided by NexSens locally to the PC running the CONNECT software.
    2. Select the down arrow to the right of the Read Script List button and select the Transfer script file to X2 option.

Select the ‘Transfer script file to X2’ option.


    1. Select the script file to add using Windows explorer.

Select the new/updated script file to add to the X2.


    1. A confirmation prompt will appear identifying whether the selected script is an updated version of an existing file or a new file altogether. Click Yes to proceed with uploading the new script.

Confirm that the script should be sent to the X2.


    1. The script upload will take approximately 10 seconds (potentially longer depending on the script size) and a prompt will appear indicating a successful transfer.

Script transfer success.


    1. Select the Read Script List option.


    1. Check the box next to the newly added script and click the Write script autodetect enable flags option to enable it to run.
      1. Note that any 9000-series script will supercede all other standard script options and will be set to run automatically.

Enable the new script to run.


    1. Following the next sensor detection request or logger power cycle (if no sensors have been detected yet), the new script will run.