Skip to content

Commit 58cd70a

Browse files
kalidkeclaude
andcommitted
Fix remaining NIDAQmx references after rename
- Fix critical bug: getfield(NIDAQmx, ...) → getfield(DAQmx, ...) in properties.jl - Fix CI.yml doctest to use DAQmx module - Update all source file comments to use DAQmx.jl (package) or NI-DAQmx (driver) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 915a6b9 commit 58cd70a

File tree

15 files changed

+42
-42
lines changed

15 files changed

+42
-42
lines changed

.github/workflows/CI.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,6 @@ jobs:
6767
shell: julia --project=docs --color=yes {0}
6868
run: |
6969
using Documenter: DocMeta, doctest
70-
using NIDAQmx
71-
DocMeta.setdocmeta!(NIDAQmx, :DocTestSetup, :(using NIDAQmx); recursive=true)
72-
doctest(NIDAQmx)
70+
using DAQmx
71+
DocMeta.setdocmeta!(DAQmx, :DocTestSetup, :(using DAQmx); recursive=true)
72+
doctest(DAQmx)

src/channels/analog.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Analog channel functions for NIDAQmx.jl
1+
# Analog channel functions for DAQmx.jl
22

33
"""
44
add_ai_voltage!(task::AITask, channel::String;

src/channels/counter.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Counter channel functions for NIDAQmx.jl
1+
# Counter channel functions for DAQmx.jl
22

33
"""
44
add_ci_count_edges!(task::CITask, counter::String;

src/channels/digital.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Digital channel functions for NIDAQmx.jl
1+
# Digital channel functions for DAQmx.jl
22

33
"""
44
add_di_chan!(task::DITask, lines::String;

src/devices.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Device enumeration and information for NIDAQmx.jl
1+
# Device enumeration and information for DAQmx.jl
22

33
"""
44
Device
@@ -19,7 +19,7 @@ end
1919
"""
2020
devices() -> Vector{Device}
2121
22-
Get a list of all available NIDAQmx devices.
22+
Get a list of all available NI-DAQmx devices.
2323
2424
# Returns
2525
- A vector of `Device` objects representing available devices.

src/errors.jl

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
# Error handling for NIDAQmx
1+
# Error handling for DAQmx.jl
22

33
# Helper functions for pointer type conversions
4-
# NIDAQmx generated functions expect Ptr{Cchar} for strings
4+
# NI-DAQmx generated functions expect Ptr{Cchar} for strings
55
_cstr(s::String) = Ptr{Cchar}(pointer(s))
66
const NULLSTR = Ptr{Cchar}()
77

@@ -45,7 +45,7 @@ end
4545
"""
4646
get_error_message(code::Int32) -> String
4747
48-
Retrieve the error message string for a given NIDAQmx error or warning code.
48+
Retrieve the error message string for a given NI-DAQmx error or warning code.
4949
"""
5050
function get_error_message(code::Int32)
5151
# First call to get buffer size
@@ -82,14 +82,14 @@ end
8282
"""
8383
check_error(code::Int32)
8484
85-
Check a NIDAQmx return code and handle errors/warnings appropriately.
85+
Check an NI-DAQmx return code and handle errors/warnings appropriately.
8686
8787
- If `code == 0`: Success, returns `nothing`.
8888
- If `code > 0`: Warning, logs a warning message and returns `nothing`.
89-
- If `code < 0`: Error, throws a `NIDAQError` exception.
89+
- If `code < 0`: Error, throws a `DAQmxError` exception.
9090
9191
# Arguments
92-
- `code::Int32`: The return code from a NIDAQmx function.
92+
- `code::Int32`: The return code from an NI-DAQmx function.
9393
9494
# Throws
9595
- `DAQmxError`: If `code < 0`.
@@ -117,7 +117,7 @@ end
117117
"""
118118
@check expr
119119
120-
Macro to check the return code of a NIDAQmx function call.
120+
Macro to check the return code of an NI-DAQmx function call.
121121
122122
# Example
123123
```julia

src/generated/constants.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Auto-generated constants for NIDAQmx
1+
# Auto-generated constants for NI-DAQmx
22
# Do not edit manually - regenerate using gen/generator.jl
33

44
# Buffer properties

src/generated/functions.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Auto-generated function bindings for NIDAQmx
1+
# Auto-generated function bindings for NI-DAQmx
22
# Do not edit manually - regenerate using gen/generator.jl
33

44
# Task management

src/generated/types.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
# Auto-generated type definitions for NIDAQmx
1+
# Auto-generated type definitions for NI-DAQmx
22
# Do not edit manually - regenerate using gen/generator.jl
33

4-
# Basic numeric type aliases matching NIDAQmx C types
4+
# Basic numeric type aliases matching NI-DAQmx C types
55
const int8 = Int8
66
const uInt8 = Cuchar
77
const int16 = Cshort
@@ -13,7 +13,7 @@ const float64 = Cdouble
1313
const int64 = Clonglong
1414
const uInt64 = Culonglong
1515

16-
# String type for NIDAQmx (varies by platform)
16+
# String type for NI-DAQmx (varies by platform)
1717
const dType = Cchar
1818

1919
# Bool32 as a proper Julia type

src/io.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Read/Write operations for NIDAQmx.jl
1+
# Read/Write operations for DAQmx.jl
22

33
# ============================================================================
44
# Analog Input Read

0 commit comments

Comments
 (0)