11-03-2010 03:52 PM
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
Solved! Go to Solution.
11-03-2010 05:29 PM
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:
If you have any questions or run into issues don't hesitate to post back!
Best Regards,
11-03-2010 09:54 PM
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
03-05-2012 07:16 AM
Dear John Passiak
Can i get the number off channels of inserted module.
regards
03-05-2012 12:57 PM
Hi mazhar.ali,
Assuming you already know the name of the module, you can use the following:
The property is different for AI, AO, and digital modules.
Best Regards,
03-08-2012 04:19 AM
08-20-2012 03:50 PM
Can I get the sample of that in VB.net?
08-21-2012 04:27 PM
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.