12-05-2025 09:09 AM
I am learning the NI-DAQmx C API and want to explore TEDS (Transducer Electronic Data Sheet) capabilities for educational purposes. Since I do not have a physical TEDS sensor available right now, I want to use Virtual TEDS to understand how the TEDS workflow works in C code before integrating a real sensor later.
My Setup:
Hardware: NI USB-9219 (or similar TEDS-capable DAQ device)
Software: NI-DAQmx latest version, Visual Studio 2019/2022
Goal: Write C code using DAQmxConfigureTEDS() and DAQmxCreateTEDSAIVoltageChan() to read from a Virtual TEDS sensor
What I've Tried So Far:
I read the NI-DAQmx documentation on DAQmxConfigureTEDS and DAQmxCreateTEDSAIVoltageChan.
I understand that I can use a .ted file (Virtual TEDS datasheet) instead of a physical sensor.
I'm not sure where to find/download a sample .ted file or how to create one.
My Questions:
Virtual TEDS File: Where can I download a sample .ted file for a common sensor type (e.g., voltage, temperature, pressure)? Or how do I create one? the documneatition says you need teds sensor serial number but i do not have one, it will be of great help if you can attach a .ted file
Configuration Steps in Visual Studio:
After I have a .ted file, what are the exact steps to configure it for use with my USB-9219 in Visual Studio?
Do I need to configure it in NI MAX first, or can I do it purely in C code using DAQmxConfigureTEDS?
C Code Example: Could someone share a minimal working example of C code that uses Virtual TEDS with DAQmxConfigureTEDS("Dev1/ai0", "C:\\path\\to\\file.ted")?
Troubleshooting: What are the common errors when setting up Virtual TEDS, and how do I debug them?