Skip to content
Michelle Sands edited this page Nov 6, 2025 · 14 revisions

For Users

You can see example DAQ channel parameters (the only thing you should need to touch) in config/component_params and an overview of how channel names map to protocol files in Config Files.

In additional to adding and removing channels, the config file can also be used to change which channels are displayed when the DAQ is previewing. Set the Preview column to 1 to have it show, or 0 to have it ignored. If the channel is activated, data will be saved regardless of this value.

The naming protocol for these config files is computer-serial-number_daq-device-ID.csv

Channel Config Files

DAQ Channel Param files take the following fields and possible values.

  • portNum (string or int) - the channel identifier. e.g. '1', pf0', 'port0/line7', 'port0/line20:21'
  • ioType (string: 'input' / 'output' / 'bidirectional') - the channel type.
  • signalType (string):
  • input: 'Voltage'/ 'Current'/ 'Thermocouple'/ 'Accelerometer'/ 'RTD'/ 'Bridge'/ 'Microphone'/ 'IEPE'/ 'Digital'/ 'EdgeCount'/ 'Frequency'/ 'PulseWidth'/ 'Position'/ 'Audio'
  • output: 'Voltage'/ 'Current'/ 'Digital'/ 'PulseGeneration'/ 'Audio'/ 'Sine'/ 'Square'/ 'Triangle'/ 'RampUp'/ 'RampDown'/ 'DC'/ 'Arbitrary'
  • bidirectional
  • TerminalConfig: (voltage channels only)
  • Range: (voltage channels only)
  • Device: Connected device, should map to device ProtocolID as explained in Config Files.
  • Label: Function of the specific channel. Used for saving & differentiating between channels connected to the same device.

You can find valid channel configurations through the device's documentation, or if you have the device's in-MATLAB ID you can run the following commands in the terminal:

daqs = daqlist;
info = daqs(strcmpi(daqs.DeviceID, deviceID),:).DeviceInfo;

Special Channel Names

The Whitmire lab scales the data output from their QST and Aurora devices, so channels with Aurora or QST as the associated device will have their data scaled. This can be changed in code by editing the DAQComponent.PlotData function, or can be circumvented by choosing different names for these devices.

For Developers

General Params

Information for DAQ parameters can be found here

  • Vendor (string: "ni" / "adi" / "mcc" / "directsound" / "digilent") - the device vendor
  • Rate

Channel Params

Information about DAQ channel configuration can be found here.

Calling DAQComponent.deviceInfo will give you access to additional information about the device, including valid channel parameters, which as far as I can tell aren't available directly through the session handle.

Suggested Improvements

  • Currently, DAQ-enforced PWM is not supported. I know it's possible using counter channels, but it's a lower priority than getting this thing working

Troubleshooting

Matlab is throwing an error that a command isn't valid

Try restarting your computer. I've only run into this issue once and couldn't recreate it, but that worked for me.

Clone this wiki locally