Aind.Ni.DigitalOutput.Configuration
1.10.0
dotnet add package Aind.Ni.DigitalOutput.Configuration --version 1.10.0
NuGet\Install-Package Aind.Ni.DigitalOutput.Configuration -Version 1.10.0
<PackageReference Include="Aind.Ni.DigitalOutput.Configuration" Version="1.10.0" />
<PackageVersion Include="Aind.Ni.DigitalOutput.Configuration" Version="1.10.0" />
<PackageReference Include="Aind.Ni.DigitalOutput.Configuration" />
paket add Aind.Ni.DigitalOutput.Configuration --version 1.10.0
#r "nuget: Aind.Ni.DigitalOutput.Configuration, 1.10.0"
#:package Aind.Ni.DigitalOutput.Configuration@1.10.0
#addin nuget:?package=Aind.Ni.DigitalOutput.Configuration&version=1.10.0
#tool nuget:?package=Aind.Ni.DigitalOutput.Configuration&version=1.10.0
aind-ni-digitaloutput-configuration
A Bonsai extension for configurable NI-DAQmx Digital Output, using runtime channel configuration.
Overview
This package provides Bonsai combinators and sinks for NI-DAQmx digital output, allowing channel configuration to be provided externally at runtime. It is a drop-in replacement for the standard Bonsai.DAQmx DigitalOutput node, but with more flexible configuration.
Features
- Runtime Channel Configuration: Configure digital output channels at runtime
- Type-Safe Configuration: Uses strongly-typed configuration objects
- Multiple Data Types: Supports boolean, array, and matrix inputs
- Bonsai 2.7+ Compatible
Installation
- Open Bonsai
- Go to "Tools" > "Manage Packages"
- Add the NuGet source for this package
- Search for
Aind.Ni.DigitalOutput.Configuration
and install
Prerequisites
- Windows
- NI-DAQmx Runtime (required for real hardware use)
- Bonsai.DAQmx (must be installed in Bonsai for this package to work)
- Bonsai 2.7.0+
Note: This package does not include the National Instruments DAQmx drivers or Bonsai.DAQmx. You must install them separately. For CI builds, DAQmx functionality is stubbed and not available.
Components
DigitalOutputConfigurationSource
Generates configuration objects for digital output channels.
ChannelName
: Name for the virtual channelLines
: Physical lines to use (e.g., "Dev1/port0/line0:7")Grouping
: How to group digital lines (OneChannelForEachLine/OneChannelForAllLines)
DigitalOutputWriter
Writes digital values to NI-DAQmx digital output lines using the specified configuration.
Channels
: Collection of DigitalOutputConfigSignalSource
,SampleRate
,ActiveEdge
,SampleMode
,BufferSize
: Standard DAQmx timing properties
ToDigitalOutputConfigCollection
Wraps a single DigitalOutputConfig into a collection for use with DigitalOutputWriter.
Usage Example
DigitalOutputConfigurationSource -> ToDigitalOutputConfigCollection -> DigitalOutputWriter
BooleanSource /
Supported Data Types
IObservable<bool>
IObservable<bool[]>
IObservable<bool[,]>
IObservable<byte[,]>
git add . git commit -m "refactor: replace all digital output configuration code with Daq_config.cs, update docs, bump version to 1.6.0, and clarify node usage" git push
Node Descriptions
- DigitalOutputConfigurationSource: Use this node to define the digital output channel parameters (name, lines, grouping) in your workflow. Outputs a configuration object.
- ToDigitalOutputConfigCollection: Use this node to convert a single configuration into a collection, which is required by the writer node.
- DigitalOutputWriter: Use this node to send digital data (bool, bool[], bool[,], or byte[,]) to the hardware, using the configuration(s) provided.
License
MIT License. See LICENSE.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net472 is compatible. net48 was computed. net481 was computed. |
-
.NETFramework 4.7.2
- Bonsai.Core (>= 2.7.0)
- Bonsai.DAQmx (>= 0.3.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last Updated |
---|---|---|
1.10.0 | 136 | 7/3/2025 |
1.9.0 | 138 | 7/3/2025 |
1.8.15 | 130 | 7/3/2025 |
1.8.14 | 134 | 7/3/2025 |
1.8.8 | 136 | 7/3/2025 |
1.8.7 | 135 | 7/2/2025 |
1.8.6 | 129 | 7/2/2025 |
1.8.5 | 130 | 7/2/2025 |
1.8.3 | 127 | 7/2/2025 |
1.8.2 | 132 | 7/2/2025 |
1.8.1 | 133 | 7/2/2025 |
1.8.0 | 129 | 7/2/2025 |
1.7.0 | 135 | 7/2/2025 |
1.6.0 | 133 | 6/30/2025 |
1.5.1 | 215 | 6/9/2025 |
1.2.0 | 117 | 6/7/2025 |
1.1.0 | 116 | 6/7/2025 |