Can I Programmatically Detect the Model of Terminal Block Attached with my NI DAQ device?

Updated Feb 3, 2020

Reported In

Hardware

  • TB-4310
  • PXIe-4310

Driver

  • NI-DAQmx

Programming Language

  • LabVIEW G

Issue Details

I am using NI PXIe-4310 with two terminal block variants, i.e., TB-4310 (600V) and TB-4310 (10V) in my application. Both these terminal blocks need different configurations when used with NI DAQmx APIs. Can I programmatically differentiate which terminal block is currently connected with my NI DAQmx device and deploy correct settings accordingly?

Solution

Following LabVIEW code can help in identifying the model of terminal block connected with NI DAQmx device:

Image_2019-11-13_16-22-35.png
1. Place a property node
2. "Right Click" on Property Node>>Select Class>>DAQmx>>DAQmx Device
3. Clicking on property node, Select "ActiveDev" property to provide the device name and "Accessory.ProductTypes" property to read terminal block name.

Additional Information

This property is not applicable for every NI DAQmx Device/Terminal Block.