Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Using NI USB-6008 DAQ with REALBasic

Is there a way to access the NI-USB-6008 DAQ from within REALBasic on the Mac OSX platform?  I am an inexperienced programmer, so examples or a tutorial would be extremely helpful to me.

 

Thanks,

 

Matt 

0 Kudos
Message 1 of 9
(5,620 Views)

You will need to use the NI DAQmx Base software and then use the DLL that installs with the software to talk to the card. So, you will have to learn how to call DLLs from the REALBasic platform and to understand how to call the relevant methods specified in the DLL. The following link might help:

Text-Based DAQ Programming on Mac OS  

 

Also, be sure to search the forums for 'REALBasic' to find other posts on the subject.

Message Edited by Adnan Z on 08-16-2009 10:28 PM
Adnan Zafar
Certified LabVIEW Architect
Coleman Technologies
Message 2 of 9
(5,606 Views)
DAQmx Base has complete support for ANSI C and LabVIEW programming. Using other languages is possible (I've spoken to folks who've used Python), but requires individual effort to implement.

DAQmx Base does not provide a loadable library (be it DLL/so/framework depending on your OS) for use in other programs. If you want to access a USB-6008 from REALBasic, you'll need to use DAQmx Base's C interface and create a wrapper framework that contains the DAQmx Base calls your application will need. From there, you can use REALBasic's Declare statement to pull in your wrapper and interact with the hardware.
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)
0 Kudos
Message 3 of 9
(5,578 Views)

Matt,

You posted this question some years ago, concerning the using of NI6008 board with RealBasic.

Yes, this is possible, I experimented successfully. This is not easy but it works. Here is the main steps to do:

1) Implement in your project RB the file NIDAQmxBase.h. You will find this file in the folder National Instrument->NI-DAQmx Base->includes.

2) Create a new module (Named for example NIDAQ_RB)

3) In this module, write all the functions you want using the statement "declare"

example:

declare function DAQmxBaseCreateTask lib "NIDAQmxBase" (Taskname as Cstring,Task as ptr) as Int32

return DaQmxBaseCreateTask(TaskName,Task)

4) In your program, simply call the functions declared in your module

Example:

Dim TacheA as new MemoryBlock(4)

Erreur=DAQmxBaseCreateTask("",TacheA)

I hope you can go ahead with this.

 

Best regards

Magdi

0 Kudos
Message 4 of 9
(5,010 Views)

Dimatech,

 

I'm not sure what you mean by impliment? Can you provide an example that is more specific? I'm trying to talk to a PCI-6229 card using XoJo (built on realbasic) and any help would be greatly appreciated.

 

Thanks,

 

Al H.

0 Kudos
Message 5 of 9
(4,862 Views)

Allan,

This is difficult to explain deeper in this forum how I did. But if you give me your email address, I will transfer you one of my projects that I made.

Magdi

0 Kudos
Message 6 of 9
(4,831 Views)

Dimatech,

 

Did you receive the email from me (sent privately) that includes my email address?

 

Thanks,

 

Al H.

0 Kudos
Message 7 of 9
(4,784 Views)

No I didn't.

Regards

0 Kudos
Message 8 of 9
(4,687 Views)

Dimatech,

 

You can contact me at allan.hanzlik@nanocopoeia.com, if the files are too large contact me and I'll provide another email address.

 

Thanks for the help (I don't know why the private message never got through),

 

Al H.

0 Kudos
Message 9 of 9
(4,666 Views)