NOR-USB 6008 Matlab Mac OSX

Dear NOR-Experts,

I wasn't sure which Board to post my question, so if this isn't the right place please accept my apologies. Be a too-unskilled computer user, I tried in vain to approach a converter A/D of NI USB-6008 of in MATLAB R2012b on a Mac OS 10.8.3 for quite a while.

Searching through the internet (http://www.binghamsite.com/miscellaneous/matlab-mex-and-ni-usb), I learned that the General path to follow is to use the mex from MATLAB command to compile code written in C in the programs included by MATLAB. By following the instructions provided on this site, I ran mex - configure, edit the mexopts.sh file and was able to compile the file simple timestwo.c for test purposes.

I then tried to do the same for the data acquisition example .c files provided with the package OR-DAQmx Base (3.6 v). I have been informed that mex objects require the inclusion of the header of NOR-DAQmx Base (NIDAQmxBase.h), so I tried to run

MEX - I ' / Applications / National Instruments/NOR-DAQmx Base/includes ' acquire1scan.c

Compilation fails producing a lot of information, I do not understand (see attached file). However, the error messages

"Error: this platform is not supported, because long is not 4 bytes." or

"Error: this platform is unsupported because int is not the same size as long."

appear repeatedly. My Macbook uses an Intel Core i5 processor that is 64-bit, if this may have something to do with it.

Any suggestions on how to get this race would be very appreciated.

Thank you

Robert

Hey, Robert,.

I think that MATLAB 2012 for OS X is a 64-bit only application, which will not work with 32-bit data acquisition Base driver.  There may be older versions of MATLAB who have a 32-bit version on Mac OS X, it would probably work with the method described in your link.

MATLAB® is a registered trademark of The MathWorks, Inc. other product and company names are the trademarks and trade names of their respective companies.

Tags: NI Products

Similar Questions

  • Acquisition of data NOR usb 6008: a strange problem: mxwcgoutrunsilent.VI is not respected

    Expensive OR

    Today, I bought an acquisition of data NOR usb 6008

    and I'm using labview in 2011
    the problem is appear when after I end the process of configuration of the i/o data acquisition Wizard

    the following image shows the mxwcgoutrunsilent.VI is ignored and an error has occurred

    someone can help provide this VI for me

    What is the complete labview modules can also so I could do a real time data acquisition

    Best regards

    mangood,

    You received an error code? If so, what is it? What version of NOR-DAQmx driver you have installed? It seems your driver potentially incorrectly installed, and you may need to reinstall the driver.

    Here is the link to the latest version of the NOR-DAQmx driver: http://www.ni.com/download/ni-daqmx-9.8/4297/en/

  • fiber optical sensor su19 110 115 a 126 vs nor usb 6008

    Hi expert... I am looking for idea or help on my project. I try to get the measure of mention nor USB 6008 sensor output. In fact, I'm new with nor peripheral usb n still study n the search on internet or n. forums I found an idea to connect the sensor by aoi, but I can't seem to get a measurement any. Is the sensor can connect directly to the device usb or need some custom wire diagram between them. Thanks in advance

    First of all, it is useful if you name the manufacturer of the sensor. A single part number means nothing to most of us.  You use the sensor fiber-optic Pepperl + Fuchs? Even better is to display the technical/manual plug of the sensor or links to them.

    The data sheet that I found for the sensor to Pepperl + Fuchs is not very well written, in my opinion. It seems that the outputs are impulses with dependent amplitudes of the voltage and the frequency or the timetable set by the mode of operation.

    If it's the device you use, the only way you have any possibility to decode the outputs with the USB-6008 box is to measure with an analog input and then process the data in the software. According to the supply voltage, you will probably need a voltage divider to reduce the output voltage of the sensor to a level compatible with the DAQ hardware.  You also won't be able to use the high speed of the probe because the heart rate exceeds the Nyquist limit. In standard mode, you mighte be OK, but you can use a single channel of the USB-6008 to stay in the Nyquist limit.

    Lynn

  • NOR-USB 6008 and Red Lion Cub5

    I have a USB-6008 attached to an AXL32 chip for recording of analog voltage and want to add a Red Lion Cub5 counter to display the number of the sample.  I want my labview program to drive the coutner via digital output, so that I can see what sample of data occurs.  There is a setting TTL on the Cub5, but I can't seem to increment the meter through the test DAQmax Panel.

    Troy,

    I'm glad to hear you got everything and functional. I suggest you mark a message as accepted solution so that other people can find solutions to a problem easier. Thank you.

  • Simultaneous to the AO and HAVE with the acquisition of data NOR USB 6001/MATLAB Toolbox

    I am very new to data acquisition and bought a NI USB 6001 to start to learn. Because I can get free MATLAB through my University, I use Matlab data acquisition Toolkit as the data acquisition software.

    My problem is that I get the following error message when I try to generate an AO (an LED voltage) signal and measure a signal I (voltage of a battery of 9V) simultaneously.

    ATTENTION: This change is caused in the dump output data queue.  Use queueOutputData for the queue data before the start of the object.
    Hardware does not support the specified connection. Check the user manual of the device for the valid device routes and pinout.

    However to measure IA or by generating the AO each by themselves works perfectly well.

    My Matlab script looks like this:

    daq.getDevices;

    s = DAQ.createSession ('or');

    s.Rate = 1000;

    s.DurationInSeconds = 10;

    addAnalogInputChannel (s, 'Dev1', 'ai0', 'Voltage');

    addAnalogOutputChannel (s, 'Dev1', 'ao0', 'Voltage');

    aoVoltage = 1.8 + 0.1 * sin (linspace (0, 2 * pi, 10000))';

    queueOutputData (s, aoVoltage);

    s

    startBackground (s);

    Note that adding the channels HAVE and AO at the session also works, however I get the error mentioned at the start of the session. This is a limitation of my data acquisition hardware (I don't see something like that mentioned in the manual) or do I have to modify the script?

    The pins connected for the LED are AO0 (+) and AO GND (-).

    The pins connected to the battery are AI0 (+) and (-) AI4. (The problem is still there if I use the reference to the ground for AI)

    6001 cannot make simultaneous tasks.  Very standard limitation of the low-end hardware... just don't have on board computing resources to handle such things.  Even the 621 x boards have only limited multitasking abilities.

    Can intensify to a high range data acquisition ($$$) or buy a 2nd a low end and synchronize tasks in software (not as precise calendar).  I've done two approaches, one is "best" really depends on demand... If low-cost or high-performance is a priority.

  • My acquisition of data NOR usb-6008, does not appear in labview after installing drivers

    My DAQ does not appear in my labview program after installing the drivers. I can't add it to my program or anything like that. I installed 3 different drivers and updates, and it's still not appearing in labview. Is there something I'm missing or need to do yet?

    Thank you

    It seems that you have a damaged file somewhere in your installation.  You will need to go into the control panel and select the option to repair the installation.  You will need to run the repair twice due to a known problem.  After that, you need to reinstall the NI_Daqmx 9.4.

    Jacob K

  • MAX and Mac (to control on Labview, NI USB-6008)

    Hi, I would like to order my USB NI 6008 card in my Mac. I'm using Labview, but I'm a real beginner. I get my sensor on my USB card data and I can use them in Labview to control an electric trolley. This project is for my review: engenering school.

    So, on PC (Windows), it's ok, but on my mac, I do not find MAX. And if I understand, I need MAX to create the DAQ Assistant and a few other VI in Labview. However, I have yet install Base DASmx 3.4 for mac os.

    Could you help me please?

    I'm sorry for my English, it's so bad. I'm studying french and I'd rather post here because I found no answers in the french part of forums of NOR.

    See youi soon.

    Thank you

    Thomas L

    The USB-6008 camera is supported with DAQmx Base, Yes. You do not get MAX, but you can always control your USB-6008.

    Install LabVIEW 2010 and DAQmx Base 3.4and this should give you the DAQmx Base vis in LabVIEW palettes.

  • NOR-traditional DAQ will work with a USB-6008?

    Hi guys,.

    I have ordered a USB-6008 and I would use it with the NOR-DAQ traditional 7.4.4 instead of MX. Is this supported?

    Thank you

    Jim

    LV 8.6

    LV 8.01

    LV 7.1

    TS 4.1

    Jim,

    No, traditional DAQ isn't USB compatible, 6008.

    You can use DAQmx base instead, but I wouldn't recommend it.

    hope this helps,

    Norbert

  • NEITHER USB-6008 connect to thermocuples and pressure sensors, control valve

    I am endevoring to build a gasification plant biomass for bench scale test process control plans. NEITHER USB-6008/6009 will be adapted for use as a data acquisition. I'll take RTDS, thermocouples and pressure sensors. I don't want to use industrial automation controllers.  It is also possible to use the channel of analog output for sending signals to a control valve position (using sufficient current/voltage between the two drivers).

    (1) OK.  I just wanted to be sure that you were aware of the potential dangers.

    (2) an RTD is a resistance that has small changes in resistance per degree of temperature change. To measure that you have need of a current source and a sufficient resolution in order to detect small changes.  At 25 degrees C a typical RTD is 109,73 ohms and resistance ohms 0.38 per degree changes.  If you had 1 my crossing this RTD voltage through it would be 109,7 mV and the voltage change of 0.38 mV by degree.

    The resolution of the 6008 on the most sensitive range is 0.49 mV > 1 degree.  The accuracy of the 6008 is 1.5 mV typical.

    For a Type K thermocouple, voltage at 25 degrees is 1.407 mV and change by degree is 39 µV.  Millivolt solving half of the 6008 translates into about 12 degrees.

    If you need a source of excitement for RTD and a kind of amplification for thermocouples and RTD before she would make any sense to try to use USB-6008.

    (3) I have not used anything except LabVIEW with DAQ devices and drivers.  I think DAQmx can be used with MATLAB and other languages.

    (4) the 6008 is the low range made by NOR. You will need to go to a more expensive camera or add signals conditioning circuits.  Talk to your representative OR assistance in the choice of a suitable device.

    Lynn

  • Mac OSx Sierra Time Machine WD my cloud

    Since upgrading to Mac OSX Sierra my Macbook Pro and Macbook Air are not capable of doing Time Machine back Ups to a WD MyCloud drive that is connected to our router.

    We have updated the firmware on the WD My Cloud drive to the latest version and contacted WD on this problem, so far they have not come with a solution to the problem.

    If you open Time Machine preferences and then observe what happens, by hitting 'Back Up Now' systems do "Looking to save the disc" then "Preparing backup" then stop and then go back to the status of 'rest' without backup anything to the top at all. It is the same on both machines. You can see here: Time Machine Back Up My Cloud

    Notice how the drive icon changes to the point where it stops working and then goes to the other drive which is a USB.

    Now, to complicate the issue further... an iMac connected via Ethernet to the router can go back to the My Cloud drive perfectly as before. If Apple changed something with the wireless protocols I think but that?

    Hi stevefrompembury,

    Thanks for posting in the Community Support from Apple! I understand that your or your Mac back up Time machine since the update. Backups are certainly crucial to ensure that your data remains secure, so I'm happy to offer some suggestions.

    You have already tried a few milestones. I recommend you take a look through this article so that you have covered all the steps mentioned, including the section titled 'Control your readers': If you can not back up or restore your Mac with Time Machine

    See you soon!

  • USB-6008 how to move an executable file to another computer.

    Hello Forums NOR!  Please bear with me as I'm new to products OR as well as this forum.  Hope I have write in good advice.  I'm an electronics technician with over 30 years of experience in a variety of hardware and software that is trying to move an executable file from an old computer to Windows XP on a new computer Win 8.

    First of all, I just moved the file .exe itself.   When it is run, it produces an error dialog box: "Unable to locate the LabVIEW run-time engine" "this executable requires a 2011 version (or compatible) LabVIEW Run - Time Engine."

    Then I ran the installation disc driver supplied with the USB-6008 module.  Now, the executable will start but it does not seem to connect with the USB-6008, because it does not have the digital I/o.

    I can run NI MAX and see the USB module as well as test the analog and the digital I/o so I know the hardware works.

    I've been surfing on the knowledge base and found references to .dll & .vi type support files, but have no idea of which ones to get and where they might be.

    This is possible without having to recompile the exe file?  I have no access to the source files.

    Thank you!


  • Component USB 6008 in Multisim

    Hello

    I conceive my system in Multisim 12 and I wanted to include OR components of the database.

    I need a component for the NI USB-6008 case and the other for the NOR cDAQ-9174 with two NI9217.

    My question is: these elements already exist (in the database, on the Web site of OR or a third party) or what I have to design?

    Thank you

    csiquet,

    Here is an example of a database of these parts NOR (symbol only):

    To merge into your DB, to do this: tools-> database-> merge database

    There are 'rated' components blow up / stop working if too much voltage/current passes through them.

    Master DB-> base-> Rated_Virtual

    Kind regards

    Pat

  • USB-6008, USB-6501 and Embarcadero C++

    Hello NEITHER and NOR users,.

    I spent a considerable amount of money several years ago on a number of devices USB-6008 and USB-6501 for a class that I teach on interfacing the simulations with realworld sensors and actuators.  Write us code using Embarcadero C ++ Builder and we wrote the code to interface with the jury of EZIO AD / DA via RS - 232.  The EZIO is much too slow and limited.  Given advertising NOR, we bought these boards, but after several attempts to get some information OR on the way to talk to these devices directly via C++, we have yet no valid response.  No, I don't want to LabView or any additional expenses.  I just want to talk to them directly.

    OR: are you ready to help with this, or not?  If this is not the case, although wanting to refund these purchases.  Announce as being accessible from C++, but you are not willing to provide any help of substance to this day...

    Yes, I am self-taught, write code, and old-school enough to feel that I have a right to know how to talk to all the devices I buy.  I confess my ignorance, but I'm sick and tired of secret corporate and misleading advertising.

    Can someone please provide me with enough example of code to start.  That's what we wrote for the EZIO:

    http://www.Duke.edu/Web/ISIS/Gessler/Borland/RealWorld-Ezio.htm

    We would like to start writing similar code for these materials of NEITHER.  If possible, we can buy more.  If this is not the case, these cards are useless.

    Kind regards

    Nick

    Nicholas Gessler, PhD.

    Nick,

    When you have installed the DAQmx drivers to communicate with the 6008 and 6501, I assume you also installed programming examples? It is here that they are on my XP machine: C:\Documents and Settings\All Users\Documents\National Instruments\NI-DAQ\Examples\DAQmx ANSI C.  I don't think that Embarcadero C++ Builder is one of the languages supported, so you'll need to twist your compiler, but it should give you a good start.

    Tom

  • Rate analog output USB-6008

    Hello

    I just started using an NI USB-6008 box. At this point, I don't need to fill all the specific tasks other than learning to use the device. I used a fair bit of LabVIEW but never with this kind of material, and I would like to help to understand it please.

    In particular, I have attached a VI in which I try to get an analog signal through the USB-6008 and read again (also with the USB-6008 - I wired the pins together). However, I do not understand what is happening when I run this VI. I expect the output a sine signal of 10 Hz for 1 second, 0.1 seconds record and see 1 full cycle of the sine wave. In practice, I read about 10 cycles and constant tension then. Presummably, this means that either the reading continues for more than 0.1 second, otherwise the output signal is more than 10 Hz.

    I also tried to use the related calendar DAQmx screws with the output pin to try to adjust the output rate (samples/s) but everything that I've tried return errors. I also tried to open some examples NOR, but these errors returned as well and I still just try things on mine.

    Did I miss something obvious here, but any help would be appreciated!

    Edit: I had to update this post & attached VI I had made mistakes. The default values on the front panel show what I see after the execution of the VI.

    Orbital Hi,

    As far as I know, you will need to use the DAQmx Read and VIs write in loops and functions of synchronization to determine data rates you want.

    I also did a quick search and found a white paper which you may find useful: http://www.ni.com/white-paper/9541/en/

    Kind regards

  • USB-6008 and XP64bits?

    Hi all

    I just received a unit NI USB-6008.

    From the data collected on the site, I understand that the there is no support for Windows XP 64-bit operation.

    Is this fair?

    Is it possible to do?

    Any help is welcome.

    I thankt you very much

    Best regards

    Hello

    The DAQmx driver is not compatible with Windows XP 64. You can find more information here:

    What are the National Instruments products compatible with the operating system to 64-bit Windows XP x 64?

    NOR-DAQmx under Win XP - 64

    Kind regards

Maybe you are looking for