Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

detect whether cDAQ-9188 chassis online

Hello,

 

I am programming in C# directly against the driver libraries.  Things are working well.   I need to programmatically detect which cDAQ-9188 chassis are available and online (I can access several).   The NI-MAX tool does a good job of showing status information but I cannot find the API calls to get the same information.   For a chassis that is online it displays the status:  Connected - Running.   For a chassis that is offline it displays Disconnected

 

when I ask for the list of devices I see both online and offline chassis devices.  I only see components (NI 9205,  NI 9213) for a chassis that is online.   How do I determine whether a given chassis is actually available?

 

I am using version 15.1 of the driver. 

 

On a related note,  I have swapped the components in the chassis around a little and NI-MAX shows the status of the missing components as "Not Present"  but when I list devices I only see components that are present.

 

For example:   If I have a component in slot 7 and then move that component to slot 6 NI-MAX will show a component for slot 7 as "Not Present" and a status of "Present" for the component in 6.   However, when I get a list of devices it only lists the "Present" components - Seems to be automatically filtering out the "Not Present" components.    I guess this is not a real issue but I am confused why missing components are being filtered out but offline chassis are not?

 

Just trying to get a reliable way to determine what hardware is really out there. 

0 Kudos
Message 1 of 7
(5,012 Views)

may be https://decibel.ni.com/content/docs/DOC-15969  can point you in the right direction

0 Kudos
Message 2 of 7
(5,009 Views)

Thanks much for the reply!

 

Unfortunately I was not able to follow the provided link - indicates the document may have been deleted

0 Kudos
Message 3 of 7
(5,005 Views)

Ooops  -- spoke too soon.   I was not able to follow the link from the post but if I copy/paste the URL into another browser window I can follow it.

 

Thanks for the ref to the example project.   The code is similar to what I have.   When I run it the combo box lists all the chassis units known, both online and offline.  When I select an offline unit it does not list any subcomponents as expected. 

 

I am looking for something in the API that will tell me whether a chassis unit is actually online.

 

thanks for the help

0 Kudos
Message 4 of 7
(5,002 Views)

Where in the API have you looked?

 

https://decibel.ni.com/content/docs/DOC-13216

 

 

also the corrected link for anyone interested https://decibel.ni.com/content/docs/DOC-15969

0 Kudos
Message 5 of 7
(4,996 Views)

I have mainly looked at the NI-DAQmx API.   I am an experienced software developer but I am very new to NI software.   I have started at the site http://www.ni.com/  and looked for software that works for my development environment which is C#,  visual studio.    I am not using LabView or Measurement Studio or any other environment - just straight C#.  

 

when I navigate to the communitity page from http://www.ni.com/  it takes me to   http://www.ni.com/community/  which displays the title "Welcome to the NI Community"  but the link you provided

 

https://decibel.ni.com/content/community/zone   has the title "Welcome to the Developer communitiy"      Is https://decibel.ni.com  an old web site?    I have performed some google searches and it has taken me to some web sites that do not seem to be reachable from http://www.ni.com

 

Anyway,  I downloaded the Ni System Configuration API that you referenced but does not seem to be accessible from just C# - it seems to be a LabView API.  

 

I guess now my question is "Where is the best place to look for APIs for C# development that do not require Labview or any other environment?"

 

 

0 Kudos
Message 6 of 7
(4,985 Views)

Try installing NI System Configuration and look at its help files.

0 Kudos
Message 7 of 7
(4,978 Views)