Main Content

ni845xlist

List available NI USB-845x controllers

Since R2023a

Description

example

list = ni845xlist returns a table containing information about all the NI™ USB-8451 and USB-8452 I2C/SPI Interface Device controller boards that are plugged in to your computer.

The table has the following columns.

  • Model — Controller board model, specified as NI USB-8451 or NI USB-8452.

  • SerialNumber — Unique alphanumeric identifier of the NI USB-8451 or USB-8452 I2C/SPI Interface Device controller, specified as a string scalar.

You can connect to your controller board by using the SerialNumber as an input for ni845x.

Examples

collapse all

Use ni845xlist to list all available NI USB-8451 and USB-8452 I2C/SPI Interface Device controller boards physically connected to your machine.

list = ni845xlist
list = 

  1×2 table

             Model        SerialNumber
         _____________    ____________

    1    "NI USB-8452"     "01F26E0A" 

Model is specified as NI USB-8451 or NI USB-8452, depending on which board you have connected. In this example, only one USB-8452 controller is physically connected. Create a connection to your NI USB-845x controller in MATLAB® by using the ni845x function with the value of SerialNumber.

Tips

  • ni845xlist returns all the NI USB-8451 and USB-8452 I2C/SPI Interface Device controller boards on the system, whether or not connections are open to them. To get a list of existing ni845x connections, use ni845xfind instead.

Version History

Introduced in R2023a