Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

How to search DAQ card programmatically using Visual Studio 2008

I try to use Visual Studio 2008 to discover NI DAQ card connected in a system programmatically using NI VISA. I do so by running the example program provided in NI VISA installation (C:\Documents and Settings\All Users\Documents\National Instruments\NI-VISA\Examples\DotNET3.5\FindResources\cs). I am surprised the result doesn't show the connecetd NI-9233. In addition, I do not see relevant IO transaction in NI Spy also.

 

May I know how to discover DAQ card connected to a system programmatically using Visual Studio 2008, without using LV and Measurement Studio?

Message Edited by mkc on 03-23-2009 01:07 AM
0 Kudos
Message 1 of 3
(3,179 Views)
Hi mkc,



Whatever you try to do with DAQmx device, you must use DAQmx function, not VISA.

You may refer to http://digital.ni.com/public.nsf/websearch/AE521D8AEFD27E1E86256F9F007DF570?OpenDocument.

It shows property to determine DAQ devices in the system.



Regards, Kate
0 Kudos
Message 2 of 3
(3,166 Views)

Hi Kate,

 

Thanks. I just found out an alternative too. Use NationalInstruments.DAQmx.DaqSystem.Local.Devices to retrieve a list of DAQ device name, then use DaqSystem.Local.LoadDevice(deviceName) to retrieve device information e.g. serial number and bus type.

 

Regards,

MKC

 

 

Message Edited by mkc on 03-23-2009 08:16 PM
0 Kudos
Message 3 of 3
(3,163 Views)