matlab/matlab-agentic-toolkit / skills-catalog/test-and-measurement/matlab-call-nidaqmx
matlab-call-nidaqmx
VerifiedTranslate 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.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 10.5 KB |
| manifest.yaml | config | 428 B |
| references/common-mistakes.md | markdown | 3.2 KB |
| references/enum-constants.md | markdown | 2.1 KB |
| references/hot-signatures.md | markdown | 3.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.
----
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| 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: 198k | Updated | Claude CodeCodex | Verified | Install |
| 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: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| 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: 194k | Updated | Claude CodeCodex | Verified | Install |