Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

cDAQ-9188 discovery method?

Solved!
Go to solution

I have a cDAQ-9188 that I am preparing for use by customers in the field.  These customers tend to forget IP addresses, and I would like to add something to my application to help them.  Something installed "NI Network Browser" on my development machine.  I suspect it was DAQmx 9.2.2.  That browser appears to be a shortcut to a Silverlight web page being served up out of port 59648.  The browser does a good job of enumerating the chassis on the network, and I would like to know if there is any way to make that work in LabVIEW.  Is it using UDP or something?

 

I know the standard method would be to instruct the customers to just use the Network Browser, but I'm trying to match the user experience of the SCXI-1600 where you just plug it in and it shows up.  I'm trying to avoid making them launch MAX or a browser or anything other than my application.  I know I can avoid the MAC step with the DAQmx Add Network Device VI, but it wants an IP address for an input.

 

Thanks,

Dan

0 Kudos
Message 1 of 8
(4,633 Views)
Solution
Accepted by Photon_Dan

Hi Dan,

 

The NI System Configuration API was released earlier this year and is intended to provide developers the option of integrating MAX functionality into their distributed LabVIEW applications.  The following code uses the API and should be a good starting point for what you need to do:

 

Networked Devices.png

 

 

If you have any questions or run into issues don't hesitate to post back!

 


Best Regards,

John Passiak
Message 2 of 8
(4,625 Views)

You can further limit the devices returned by also setting the system filter attribute Product ID to 29843 if you want to limit it to just the 9188 otherwise some LabVIEW RT targets may also be returned.  As an alternative you could also filter the results after the fact by throwing out models other than the 9188.

 

-Josh

Message 3 of 8
(4,609 Views)

Dear John Passiak

 

Can i get the number off channels of inserted module.

 

regards

0 Kudos
Message 4 of 8
(4,093 Views)

Hi mazhar.ali,

 

Assuming you already know the name of the module, you can use the following:

 

Number of Channels.png

 

The property is different for AI, AO, and digital modules.

 

 

Best Regards,

John Passiak
Message 5 of 8
(4,081 Views)

Thanx a lot John P this is what i am looking for.

 

regards

0 Kudos
Message 6 of 8
(4,060 Views)

Can I get the sample of that in VB.net?

0 Kudos
Message 7 of 8
(3,923 Views)

If you go under Start->Programs->National Instruments->NI-DAQ->Text based code support->NI-DAQmx C Reference Help, you can look at all the functions you have access to. DAQmxGetDevAIPhysicalChans, the one I believe you are looking for, is in there with documentation on how it is used. We also provide some fully functional examples to help you get started with text based.

0 Kudos
Message 8 of 8
(3,902 Views)