Is there an API that returns the model number or any other identifier for a module installed, I can use to identify the characteristics of this module?

For example, I'll call you

DaqSystem.Local.GetPhysicalChannels (PhysicalChannelTypes.AI, PhysicalChannelAccess.External)

For a list of connected devices.  The data in the table back looks like this:

cDAQ1Mod4/ai0 (etc.)

It tells me that I have a CompactDAQ chassis, which is good, and an analog module in the slot Module4.  What I need to know is not just that there is an analog module in the slot to #4, but also of its ability (voltage, temperature, voltage, etc.) so that I can use the correct DAQmx task for this type of module.  All this has to be discovered during execution.

Otherwise, I'll have to provide a configuration utility when the user program needs to determine which module is plugged that slot - and will it change by moving it to another location, you must enter these details again.  I want to avoid this by making the material more discoverable as possible.

I can remember an API - and that is my hope.

* beep *.

Hello

I could understand the syntax for you. It's here.

Device blah = DaqSystem.Local.LoadDevice ("cDAQ1");
foreach (String dev in bla. ChassisModuleDeviceNames)
{
Label1. Text += "\n" + DaqSystem.Local.LoadDevice (dev). ProductType;
}

This displays the model number of all modules of the cDAQ in the chassi. I hope this helps.

Kind regards

Perry S.

Tags: NI Software

Similar Questions

Maybe you are looking for

  • What ipad to support ios 8.2

    I need to get an ipad app, and the plug on this topic indicates that it must support ios 8.2.  Ipads do this?

  • Final cut pro - add 1 photo 5GBs?

    I know this must sound crazy, as it does not make much sense to me. I'm finishing a project with about 5 GB of disk space on my computer.  I add a simple image to sit in the left corner of my video (which lasts 8 minutes).  Whenever I have add the ph

  • chain number by "scan value" format string "%.3f" doesn'work

    I had a little problem. "To convert a string to a number, I use the function"scan value"with '%.3f' for the ' format string"connector. I would get a 3 digit number. But this doesn't work with the parameter "%.3f. Thank you.

  • insufficient memory_SPSS

    I have Windows Vista with service pack 2. I analyzed the data of awarded with the SPSS statistical software. I got the error message 'insufficient memory '. I used computers different with 3, 4 or even 8 GB of RAM, but still had the same problem. I f

  • Change the text to MenuItem on the move

    Hello. I am trying to create toggeable MenuItem. My code is: MenuItem trackingMenu = new MenuItem("Stop tracking", 100, 10) { public void run() { boolean tracking = device.getTracking(); device.setTracking(!tracking); if(tracking){ this.setText("Stop