Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

NI4350 (PCMCIA) and NI DAQ (traditional)

Solved!
Go to solution

I'm trying to get an NI4350 to work with VC++. I downloaded and installed NI435X252, which is supposed to be specific for this device. When I use the bundled MAX, the device shows up and the test panel shows that temperatures are indeed being read, so the hardware is operational. There are no other NI products installed on this machine.

 

The problem is that when I use the functions in nidaq32.lib, I always get the status response -10403 (if the device number points to the device), or -10401 (if the device number is incorrect), so NIDAQ is working. -10403 means that the specified device does not support the requested action. I get this for ALL of the functions that I have tried to call, including AI_Read(), AI_VRead(), AI_Check(), DAQ_Rate(), SCAN_Setup(), Timeout_Config(), DAQ_DB_Config(), DAQ_Start(), when running the provided examples.

 

Is there a specific start-up sequence that is needed? I haven't found anything like this documented.

 

Can anyone help?

0 Kudos
Message 1 of 4
(6,221 Views)

Hi aditus2,

 

The NI-4350 has different set of drivers than the regular NIDAQ drivers. You can find examples that use this driver in Start>> All Programs>> National Instruments>> NI-453x>> Examples. These examples will show the required startup and closing sequence to read from your NI-4350.

 

 

Steven K.
National Instruments
Software Engineer
0 Kudos
Message 2 of 4
(6,188 Views)

Hi, Steven K

 

I am trying to obtain temperature measurements from the NI-4350 without LabVIEW being installed on my system (I don't have it). Is it possible to do this?

 

After installation, I see Start >> All Programs >> National Instruments, but it does not contain a folder for NI-435x (it contains MultiSim Analog Devices, NI-DAQ, VISA, etc.). When I install the NI-435x drivers, I get an error message "You have selected an installation directory which does not contain a valid version of NI LabVIEW". I have selected "Proceed anyway", but perhaps this is why I don't have the link to the examples you refer to? Is LabVIEW required to install and use this software?

 

Thanks

aditus2

0 Kudos
Message 3 of 4
(6,147 Views)
Solution
Accepted by topic author aditus2

Hi aditus2,

 

The installation failing without is a known issue with NI-435x 2.5.2, however the 2.5.1 version does not have this issue. It is linked below:

 

NI-435x 2.5.1 - Windows XP/2000

 

When you are installing, select the Visual Basic and LabWindows/CVI support. This will install some examples that you can model your application around. You will also be able to see a function list under Start»Programs»National Instruments»NI-435x»Documentation. Also to more throughly answer your first question, NI-DAQ driver only supports the 435x devices with LabVIEW per the knowledgebase linked below:

 

Can I Program NI 435x with NI-DAQ Function Calls?

Steven K.
National Instruments
Software Engineer
0 Kudos
Message 4 of 4
(6,133 Views)