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
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Aind.Ni.DigitalOutput.Configuration" Version="1.10.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Aind.Ni.DigitalOutput.Configuration" Version="1.10.0" />
                    
Directory.Packages.props
<PackageReference Include="Aind.Ni.DigitalOutput.Configuration" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Aind.Ni.DigitalOutput.Configuration --version 1.10.0
                    
#r "nuget: Aind.Ni.DigitalOutput.Configuration, 1.10.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Aind.Ni.DigitalOutput.Configuration@1.10.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Aind.Ni.DigitalOutput.Configuration&version=1.10.0
                    
Install as a Cake Addin
#tool nuget:?package=Aind.Ni.DigitalOutput.Configuration&version=1.10.0
                    
Install as a Cake Tool

aind-ni-digitaloutput-configuration

License .NET Framework Bonsai

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

  1. Open Bonsai
  2. Go to "Tools" > "Manage Packages"
  3. Add the NuGet source for this package
  4. 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 channel
  • Lines: 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 DigitalOutputConfig
  • SignalSource, 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 Compatible and additional computed target framework versions.
.NET Framework net472 is compatible.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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