LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to detech devices from a vi without using MAX

Hi all,

I search for finding devices and reserve them from a vi automatically but I could not find enough explanotary explanations. I also asked this question before here but I did not get useful answers. I attempted to utilize some functions located under Daqmx Advanced->System Setup like "Daqmx Reserve Network Devices" etc. and System Configuration palettes  but was not able to obtain succesful results. Also search examples in labview (2009 SP1) deeply but again it was not useful. I just saw an example named "Network DAQ - Basic Configuration.vi" under (C:\Program Files (x86)\National Instruments\LabVIEW 2009\examples\DAQmx\Configuration\Configuration.llb\Network DAQ - Basic Configuration.vi), but I could not understand it exactly. How could I find daq devices and its modules on it automatically without using MAX. I use Labview 2009 SP1 and CDAQ-9188 with 9214-9203-9263 modules on it.

Egemen
0 Kudos
Message 1 of 9
(3,207 Views)

Hey Newbie,

 

Try this link and let me know how you get on!

Regards

Andy
_______________________________________

"To 'G' and not to 'C', this is not a question!"
0 Kudos
Message 2 of 9
(3,184 Views)

What devices are you going to use?

What version of DAQ/MAX are you using?

 

I'm asking, because the System Configuration API is indeed the way to go for more up-to-date applications.

It might be useful for you to update drivers (maybe LV as well) to get complete access to current functionality of the System Configuration API.

 

Norbert

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 3 of 9
(3,179 Views)

@Norbert_B wrote:

What devices are you going to use?

What version of DAQ/MAX are you using?

 

I'm asking, because the System Configuration API is indeed the way to go for more up-to-date applications.

It might be useful for you to update drivers (maybe LV as well) to get complete access to current functionality of the System Configuration API.

 

Norbert


As I have written in the first thread I use NI 9188 CDAQ and 9214-9203-9263 modules on it. Labview 2009 SP1, MAX version is 5.0, and DAQmx version is 9.4.

Egemen
0 Kudos
Message 4 of 9
(3,177 Views)

Egemen,

 

sorry for not reading your initial post properly.

I am not sure about the System Config API features within the versions you have installed. On my machine, the following code works well with simulated devices like the ones you have (cDAQ+modules):

SystemConfigAPI.PNG

 

Of course, the list might still include unwanted devices, so you might have to add additional filter options and/or manually selecting devices from the list (array).

This does not reserve the devices! Depending on what you understand by "reserve", you can e.g. create and commit DAQmx tasks on those devices.

 

Norbert

 

 

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
Message 5 of 9
(3,169 Views)

Hi Norbert,

 

Thank you for your suggestion. I will try it and inform you about whether it works or not.

 

While the cDAQ is connected to the PC, and after restarting PC the device needs to be reserved. As it is said about connection of DAQ devices in the web site of NI, the device losts connection configuration since the PC restarts and it causes confliction between the device and the PC. It is possible to use device if and only if when you reserve it again by use of MAX or other advanced options in DAQmx palette.

Egemen
0 Kudos
Message 6 of 9
(3,163 Views)

Hi

 

The attached example will help you to detact the device.

You can use DAQMx pallet for information

 

Prabhakant

Regards
Prabhakant Patil
0 Kudos
Message 7 of 9
(3,158 Views)

Egemen,

 

if your issue is not FINDING the device (which i was thinking of), but reserve/unreserve a DAQmx network device, then this community entry should help you out.

 

Norbert

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 8 of 9
(3,153 Views)

@Norbert_B wrote:

Egemen,

 

if your issue is not FINDING the device (which i was thinking of), but reserve/unreserve a DAQmx network device, then this community entry should help you out.

 

Norbert



Hi Prabhakant and Norbert,

 

Thank you for your answers.

 

Yes you are right Norbert. I tried your previous suggestion and the VI finds devices accurately but the matter is reservation as you said. Even the device is detected, the program could not trigger it. I will look the community solution you sent.

 

Egemen
0 Kudos
Message 9 of 9
(3,147 Views)