PXI

cancel
Showing results for 
Search instead for 
Did you mean: 

DAQmx Linux and PXI-2570

I am having problems accessing my PXI-2570 card using the ansi c API for DAQmx on Linux.
Running the switch example that came with DAQmx I get:

$ ./ControlIndividualRelay


Opening relay /Dev1/k0
DAQmx Error: The specified device is not present or is not active in the system. The device may not be installed on this system, may have been unplugged, or may not be installed correctly.
Device:  Dev1

Status Code: -88705
End of program, press Enter key to quit

this led me to use the nilsdev utility which yeilds:

$ ./nilsdev
NI PXI-2570: "Dev1" [Not Present]
NI PXI-6528: "Dev2" [Not Present]

What would cause this to say "Not Present" when I know the board is plugged in?
also, exporting my DAQmx configuration gives:

# ./nidaqmxconfig --export current.ini
Operation successful.

# cat current.ini
 [DAQmx]
MajorVersion = 8
MinorVersion = 0


How could nilsdev detect my cards when my ini file does not have any cards defined?
Why are these cards coming up as not present?

Any help is appreciated.. thanks!
-pclary


0 Kudos
Message 1 of 4
(3,881 Views)

Hi pclary

The particular error you are seeing means that the device loader is not running.  Have a look at the following thread.  It has information about starting the loader.

http://forums.ni.com/ni/board/message?board.id=250&message.id=31650&requireLogin=False

Also note that not all distributions of Linux.  Please see the following link. 

If you are still having problems, let me know what Linux distribution you are using, and I may be able to provide more help.

Thanks

Chris_K

0 Kudos
Message 2 of 4
(3,868 Views)
Thanks for the help Chris.
Is there a way to check if the loader service is currently running or not?
I am using RedHawk Linux, 2.8.18
 
-Patrick


Message Edited by pclary on 02-18-2008 03:28 PM
0 Kudos
Message 3 of 4
(3,859 Views)

It looks like the devices are not being recognized by your system.

The nidevldu is a library, and not a service so we can't check if it is running, however there are a few other things we can try.

From the terminal run ps -a, you should see the following services:

nimxs

nipalps

nipalsm

nisvcloc

The nipalsm will be running some of the functions from nidevldu.

Also running nilsdev -v -diag will show us the verbose version of nilsdev which might also be helpful.

Hope this helps

Chris_K

0 Kudos
Message 4 of 4
(3,829 Views)