08-16-2009 12:52 AM
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
08-16-2009
09:27 PM
- last edited on
04-22-2025
06:08 PM
by
Content Cleaner
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.
08-18-2009 03:38 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)
03-24-2013 12:53 PM
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
11-26-2013 01:12 PM
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.
11-27-2013 03:23 PM
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
12-02-2013 09:01 AM
Dimatech,
Did you receive the email from me (sent privately) that includes my email address?
Thanks,
Al H.
12-12-2013 12:28 AM
No I didn't.
Regards
12-12-2013 12:37 PM
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.