Skip to content

matlab/matlab-agentic-toolkit / skills-catalog/test-and-measurement/matlab-call-nidaqmx

matlab-call-nidaqmx

Verified

Translate NI-DAQmx C function signatures into correct calldaqlib MATLAB calls. Use when the user mentions calldaqlib, any DAQmx* C function name (DAQmxCfgSampClkTiming, DAQmxExportSignal, DAQmxSetStartTrigRetriggerable, DAQmxGetSampClkRate, etc.), or needs NI-DAQmx functionality not exposed by the daq object. Covers: projection rules (taskHandle implicit, output pointers become return values, buffer-size args, enum-as-string), multi-task semantics, start() clobber, device-level empty-daq workaround, dictionary returns, string getter placeholder, array getter placeholder. Trigger contexts: low-level DAQ, escape hatch, retriggerable acquisition, shared timebase, export signal, connect terminals, external sample clock, trigger configuration, NI driver, C function translation.

FileKindSize
SKILL.mdskill md10.5 KB
manifest.yamlconfig428 B
references/common-mistakes.mdmarkdown3.2 KB
references/enum-constants.mdmarkdown2.1 KB
references/hot-signatures.mdmarkdown3.2 KB

references/enum-constants.md

View on GitHub
# DAQmx_Val_* Enum Constants

The 15 most-used enum name strings for calldaqlib, organized by category.

## Trigger edges and slopes

| MATLAB string | Use in |
|---|---|
| `"DAQmx_Val_Rising"` | `DAQmxCfgDigEdgeStartTrig` edge, `DAQmxCfgDigEdgeRefTrig` edge |
| `"DAQmx_Val_Falling"` | Same — falling edge variant |
| `"DAQmx_Val_RisingSlope"` | `DAQmxCfgAnlgEdgeStartTrig` slope, `DAQmxCfgAnlgEdgeRefTrig` slope |
| `"DAQmx_Val_FallingSlope"` | Same — falling slope variant |

**Trap:** `"DAQmx_Val_Rising"` and `"DAQmx_Val_RisingSlope"` both map to
int32 10280 but are NOT interchangeable. Digital trigger functions accept
`Rising`/`Falling`; analog trigger functions accept `RisingSlope`/`FallingSlope`.
Using the wrong one produces "Value must be of type int32" — meaning the string
was not recognized for that slot.

## Sample modes

| MATLAB string | Use in |
|---|---|
| `"DAQmx_Val_ContSamps"` | `DAQmxCfgSampClkTiming` sampleMode — continuous acquisition |
| `"DAQmx_Val_FiniteSamps"` | Same — finite number of samples |
| `"DAQmx_Val_HWTimedSinglePoint"` | Same — hardware-timed single point (HWTSP) |

## Signal export IDs

| MATLAB string | Use in |
|---|---|
| `"DAQmx_Val_StartTrigger"` | `DAQmxExportSignal` signalID |
| `"DAQmx_Val_ReferenceTrigger"` | Same |
| `"DAQmx_Val_SampleClock"` | Same |

## Terminal routing

| MATLAB string | Use in |
|---|---|
| `"DAQmx_Val_DoNotInvertPolarity"` | `DAQmxConnectTerms` signalModifiers |
| `"DAQmx_Val_InvertPolarity"` | Same |

## Delay units

| MATLAB string | Use in |
|---|---|
| `"DAQmx_Val_Seconds"` | `DAQmxSetStartTrigDelayUnits` |
| `"DAQmx_Val_Ticks"` | Same |

## Trigger type (none)

| MATLAB string | Use in |
|---|---|
| `"DAQmx_Val_None"` | `DAQmxSetStartTrigType` — disable trigger |

## Usage rule

Always pass the **string form** to calldaqlib. Both strings and `int32(N)`
work at the driver level, but strings are self-documenting and prevent
wrong-enum-family bugs. If unsure which enum a slot accepts, check the NI
C Reference documentation for that function.

----

Copyright 2026 The MathWorks, Inc.

----
slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack."Stars: 198kUpdated Claude CodeCodexVerifiedInstall
ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt.Stars: 194kUpdated Claude CodeCodexVerifiedInstall