Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Java JDAQmx for Windows Linux and Mac

I have developed a set of Java and C++ classes that use JNI to enable usage of DAQmx in Java.  This library is structured as closely as possible to the equivalent .Net libraries.  Currently the library allows creation of tasks and AI/AO channels and the associated capture and generation of signals.

 

Right now, the library targets DAQmx.  But I am considering to change the API to "Base".  I need USB devices on Linux, and only Base supports that.  Curiously, targeting "Base" would allow easy porting to the Mac.  I don't know if that opens up more interest in the project or not.

 

Suggestions?  Interest?  Any disadvantages of going with "Base"?  Why does NI have two C API's anyway?

 

I am considering an alpha/beta release around December.

 

bbaker

 

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

Hi bbaker,

 

Each C library references the individual driver. DAQmx (for Windows) and DAQmx Base (for Linux, Mac) are two different drivers, thus having their own API. You are correct in using the DAQmx Base driver for linux distributions. Keep in mind that the DAQmx Base does not have as complete fuctionality as DAQmx.


Regards,
Glenn
0 Kudos
Message 2 of 4
(3,431 Views)

I have continued to develop this Java library, and it now implements functionality over both DAQmx and DAQmxBase. 

  

As I slowly learn the NI way of doing things, I am starting to think that the implementation over Base is misguided.  Perhaps I should have focused on VISA instead of Base.  It seems that Base is only re-organizing VISA calls and providing a nicer call syntax.  But Base also hides functionality of VISA that I would really like to use.

  

The code will not be posted to the internet any time soon.  Sorry, no control over that right now, and that status could change.  But if individuals are interested, please drop me a personal note and I can make it available on an individual basis. 

 

I only test it with Windows and Linux.  Think of it as alpha level.  "It works for me", and provides a solid foundation for development.  The user API will not change much over time, as it is modeled after the .Net equivalent.  It is not feature complete, as there are many calls in the .NET library that have yet to be implemented in jDAQmx.  But low level details might change drastically if, for instance, I drop Base and go with VISA as an implementation that supports USB on Linux.

 

I am interested in knowing if there is a community of users that are interested in this project.

 

bbaker

contact via jdaqmx at softhorizons dot com.

 

 

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

Hi,

 

I am looking for a Java library to interface with DAQmx C library on Windows.

Could you provide me yours, as is ?

 

Best Regards,

JFJ

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