Create dashboards that generate quick-response (QR) codes for various systems or assets.

These dashboards allow users to select a system or asset to display a QR code. This action also displays other available information about the chosen system or asset.

The following QR code generation methods are available.

  • Display QR codes that users can select from a drop-down menu.
  • Create interactive tables for users to select a scan code that update the QR code visualization.
  • Generate QR codes for multiple systems or assets simultaneously.
  1. In SystemLink, navigate to Overview » Dashboards.
  2. Click New to create a new dashboard.
  3. On the Dashboard page, click Dashboard Settings ().
  4. Create a QR query variable for your systems or assets.
    1. Navigate to the Variables tab and click Add variable.
    2. Set the Select variable type to Query.
    3. Name the variable.
    4. In the Data source drop-down, select SystemLink Systems or SystemLink Assets.
    5. Set the Return type to Scan code.
    6. Enable Multi-value to allow multiple selections.
    7. Click Apply to save the variable.
  5. Click Save dashboard.
  6. Add the QR query variable to the dashboard.
    1. On the Dashboard page, click Add » Visualization.
    2. Click Change visualization and select QR code visualization from the drop-down.
    3. In the right panel, select Repeat options.
    4. Select your QR query variable.
    5. In the Value field, enter $ and the name of your QR query variable.
      Note For example, if you named your variable systemsScanCode, enter the Value as $systemsScanCode.
    6. Click Apply.
  7. Optional: Create a table visualization for your systems or assets.
    Note If you only want drop-down selector for your QR code, you can skip this step.
    1. On the Dashboard page, click Add » Visualization.
    2. Click Change visualization and select Table visualization from the drop-down.
    3. In the Data source drop-down, select SystemLink Systems or SystemLink Assets for your query variable.
    4. Based on your data source, select the appropriate property.
      Data Source Property
      SystemLink Systems In the Query editor, set the Query Type to Properties.
      SystemLink Assets Click the Properties drop-down and select the Scan Code property.
    5. In the Data links section, click Add link.
    6. Enter a link Title to represent the name of the URL.
    7. Enter a link URL that uses the following format.
      d/<YOUR_DASHBOARD_UID>/<YOUR_DASHBOARD_NAME>?orgId=1&var-<selectedScanCode>=${__data.fields["scan code"]}
      • The <YOUR_DASHBOARD_UID> variable represents the dashboard UID. To locate the dashboard UID, refer to the dashboard URL. For example, if the dashboard URL is https://system-server/dashboards/d/bf43k48qlijgga/dashboard, then the dashboard UID is bf43k48qlijgga.
      • The <YOUR_DASHBOARD_NAME> variable represents the dashboard name. NI recommends that the dashboard name is URL friendly.
      • The <selectedScanCode> variable represents the query variable name.
    8. Disable Open in new tab to ensure that the dashboard updates in place.
    9. Click Save.
    10. Click Apply.
  8. Click Save dashboard.

Once dynamic QR code generation is set up, you can test the QR code generator on your dashboard.

QR Code Generation Method How to Test

QR codes with a drop-down selector for a single system or asset.

  1. On the Dashboard page, in the Variable drop-down, choose a system or asset.
  2. Observe that a unique QR code generates for the chosen system or asset.

QR codes with a drop-down selector for multiple systems or assets.

  1. On the Dashboard page, in the Variable drop-down, choose multiple systems or assets.
  2. Observe that a unique QR code generates for each chosen system or asset.

QR codes with a table selector.

  1. In the table, click a scan code value.
  2. Observe that a unique QR code generates for the chosen scan code value.