10-20-2009 03:57 AM
Hello,
I'm trying to port one of my programs from DAQmx on Windows to DAQmxBase on Linux. However, I did not succeed in getting a list of connected devices using DAQmxBase.
On Windows, I would simply do DAQmxGetSysDevNames(), but this function is not available in DAQmxBase.
Next step was to use the daqmxbase_listdevices_so.so and the function daqmxbase_listdevices(). This function returns only 0 for me.
Any other hints?
10-20-2009 10:02 AM
Hello Mauritzius,
Thank you so much for your post on our webforum. There are some DAQmx driver versions for the different Linux builds. You can download these drivers through this link .
I came across this post, from which we can conclude it isn't possible to read those properties with the DAQmx base driver. So I'm hoping the DAQmx for Linux can help you further.
Please let me know if you have any further questions,
Best regards,
10-20-2009 01:20 PM
Thank you for your answer. Unfortunately, I'm using a USB-Device (NI 6211) that is only supported by the DAQmxBase driver.
I'm also not quite sure on how to proceed, maybe I'll drop Linux support entirely. Since my application is in fact written in Python, I ran into the same Null-Pointer/TaskHandle problems reported in the forum (just can't find the thread right now).
10-20-2009 03:13 PM
Joe Friedchicken
NI Configuration Based Software Get with your fellow OS users
[ Linux ] [ macOS ]Principal Software Engineer :: Configuration Based Software
Senior Software Engineer :: Multifunction Instruments Applications Group (until May 2018)
Software Engineer :: Measurements RLP Group (until Mar 2014)
Applications Engineer :: High Speed Product Group (until Sep 2008)
05-01-2012 11:23 AM
"VISA installs with DAQmx Base, so it is already on your system. The root folder for user programing is /usr/local/vxipnp/linux/NIvisa/, and there is a shipping example that shows how to use viFindRsrc() in Examples/C/General/FindRsrc.c."
I am running on an OpenSUSE 11.3 linux system using NIDAQmsBase v3.5
I can see the /usr/local/vxipnp/linux/NIvisa/Examples/C/FindRsrc.c file, but when I go to make it using your Makefile in Examples.C, I get an error saying that it is skipping /usr/local/lib/libvisa.so and then another error (obviously) that says it cannot find -lvisa
Any thoughts?
thanks
Gregg
05-01-2012 12:00 PM
GreggSAO wrote:
I am running on an OpenSUSE 11.3 linux system using NIDAQmsBase v3.5
I can see the /usr/local/vxipnp/linux/NIvisa/Examples/C/FindRsrc.c file, but when I go to make it using your Makefile in Examples.C, I get an error saying that it is skipping /usr/local/lib/libvisa.so and then another error (obviously) that says it cannot find -lvisa
Any thoughts?
I think I need more detail, since I cannot reproduce your problem:
rlpbuilder@rlplinbuild :: Tue, 01 May 2012 10:52:22 /usr/local/vxipnp/linux/NIvisa/Examples/C $ make gcc -ansi -O1 -D_REENTRANT -I ../../../include -c GPIB/AsyncIO.c -o GPIB/AsyncIO.o gcc GPIB/AsyncIO.o -lvisa -lc -lpthread -o GPIB/AsyncIO gcc -ansi -O1 -D_REENTRANT -I ../../../include -c GPIB/AsyncSRQ.c -o GPIB/AsyncSRQ.o gcc GPIB/AsyncSRQ.o -lvisa -lc -lpthread -o GPIB/AsyncSRQ gcc -ansi -O1 -D_REENTRANT -I ../../../include -c VXI-VME/AsyncIntr.c -o VXI-VME/AsyncIntr.o gcc VXI-VME/AsyncIntr.o -lvisa -lc -lpthread -o VXI-VME/AsyncIntr gcc -ansi -O1 -D_REENTRANT -I ../../../include -c General/FindRsrc.c -o General/FindRsrc.o gcc General/FindRsrc.o -lvisa -lc -lpthread -o General/FindRsrc gcc -ansi -O1 -D_REENTRANT -I ../../../include -c VXI-VME/HighReg.c -o VXI-VME/HighReg.o gcc