NI USB LABVIEW to c++

Hi,
I am a rookie in labview but I have a project, to get data (sound) from NI USB, then find the peak of the signal in which frequency.
after that I have to send the value of the amplitude to the bluetooth.
I want to use labview until find the peak of the signal (because easier using labview), after that I will use C++ to send the value to the bluetooth.
Is it possible?
Thank you
Solved!
Go to Solution.

limavolt wrote:
Hi,
I am a rookie in labview but I have a project, to get data (sound) from NI USB, then find the peak of the signal in which frequency.
after that I have to send the value of the amplitude to the bluetooth.
I want to use labview until find the peak of the signal (because easier using labview), after that I will use C++ to send the value to the bluetooth.
Is it possible?
Thank you
Yes this is definitely possible.
I would ask (aside from being new to LabVIEW), why not just do the bluetooth communication in LabVIEW as well?  Unless there are some kind of C++ libraries that you cannot live without, it should be easy enough to do this all in LabVIEW (in most cases).
But yes, you have a few ways to call C++ code from within a LabVIEW application or vice versa.  To call it from within LabVIEW, I would make a DLL out of your C++ code.  If you want the main code to be C++ based, you will likely use ActiveX or a LabVIEW built DLL. 
References to help get your started:
For LabVIEW calls within C++:  http://www.ni.com/white-paper/5719/en/
For C++ calls within LabVIEW: http://www.ni.com/white-paper/4877/en/
EDIT:
Heck, if you really wanted to be crude you could just write two applications and communicate via TCP.  You have many options
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
If someone helped you out, please select their post as the solution and/or give them Kudos!

Similar Messages

  • USB Labview

    Hello,
    I would like to communicate with a USB device via Labview. Please, can you give me a exemple of communication (between USB Device and Labview) and how I can install USB devices in MAX(Measurement & Automation eXplorer)
    Thanks very
    Johan

    Check out the following tutorials:
    http://zone.ni.com/devzone/conceptd.nsf/webmain/6792BAB18242082786256DD7006B6416?opendocument&node=200065_US
    http://zone.ni.com/devzone/conceptd.nsf/webmain/67E175B2AF9AA10286256A9D0078E2E7?opendocument&node=200065_US
    Normally it's best to use drivers accompanying the USB equipment but you can also use VISA to communicate directly, that requires that you know the protocol of the unit though.
    MTO

  • Cant install NI-IMAQ for USB Cameras

    i tried to install NI-IMAQ for USB Cameras.but it cant get it to install its giving the error need higher version than 7.0 but i am using 8.0 .also it is saying that it needs vision 7.0 ........??wat are these error ..how can i get it install ????????help
    thx
    Regards

    nolsqn,
    Can you clarify what you have installed? You must have all of the following installed to get NI IMAQ for USB Cameras to install:
    System Requirements:
    - Windows 2000/XP (English,
    Italian, Japanese, French, Italian, Norwegian, Dutch,
    Spanish/Portuguese, Russian, and simple Chinese)
    - LabVIEW 7.0 or higher with NI Vision 7.1 or higher for the USB LabVIEW support
    - Vision Assistant 7.1 or higher for the USB Vision Assistant plugin module
    - Vision Assistant 8.0 or higher for the USB Express VI
    It sounds like you are missing Vision Development Module (this is what is referred to as NI Vision)? Is this true?
    --Michelle
    Instrument Control R&D
    National Instruments
    Instrument Control
    Machine Vision

  • IMAQ USB Close leaves the camera open

    Hi,
    I hope somebody can help me with that one. I have a DirectShow compliant USB camera, that I got to work with the IMAQ USB VIs. I can acquire images, enumerate the devices and get the options dialog. However calling the IMAQ USB Close VI does seem to have any effect. As the next time I try to call IMAQ USB Open afterwards I got error -1074396024 until I terminate the host process and restart LabVIEW again.
    I am using LabVIEW 8.0, on W2k German
    I also tried the samples (e.g. Grab.vi) provided with the same effect.
    Running a tool that collects system debug messages (send via OutputDebugString) I got 'Export: Break Connect' coming from the IMAQ USB Close VI, but I also see, that the underlying DirectShow Interface doesn't receive any close call. Is there an Interface missing in the DirectShow interface (which?) or is this a bug in the IMAQ USB Interface (not very likely as a lot of guys seem to be happy with it)?
    Can anybody help please?
    Greetings,
    Stefan

    Stefan,
    below is an excerpt about the system requirements for IMAQ USB:
    - Windows 2000/XP (English, Italian,
    Japanese, French, Italian, Norwegian, Dutch, Spanish/Portuguese,
    Russian, and simple Chinese)
    - LabVIEW 7.0 or higher with NI Vision 7.1 or higher for the USB LabVIEW support.
    - Vision Assistant 7.1 or higher for the USB Vision Assistant plugin module.
    In general IMAQ USB is not supported but I will forward the information to R&D.
    The following link povides other possibilities:
    http://digital.ni.com/public.nsf/allkb/274a74a901399d0486256f32007295f9
    Regards,
    ThSa
    http://www.newgistics.com

  • 不能使用 IMAQ for USB Camera

    我安裝 labview 8.5 + Vision development 8.2 + Imaq for USB
    但安裝完了以後並沒有在 labview 裡面看到 usb 的相關元件
    請問是版本上的問題嗎??
    謝謝

    謝謝二樓, 我的確使用這個網站抓的軟體
    - LabVIEW 7.0 or later.    ---> 我的是 8.5
    - Vision Development Module 7.1 or later -->  我的是 8.2
    - NI Vision Acquisition Software 7.1 or later, for USB LabVIEW support. --> 我的是 8.5.1
    - Vision Assistant 7.1 or later, for  USB Vision Assistant plug-in module support. --> 有
    - Vision Assistant 8.0 or later, for USB Express VI support. --> 有
    請問還有哪方面有問題呢
    謝謝

  • Webcam labview

    Hi!
    I wanna do a live streaming of a webcam with LabView. I've been told to use NI-IMAQ but...the only one I found requires a Vision Assistant 7.1... so my qestions are:
    1. Can I find a FREE (not a trial) IVISION with the minimum requirements to help me?
    2. Can I find a LabView with the IVision included? (I have a LabView 8.0)
    3. If I can't afford a IVision...can I still fisnish the project with the webcam?
    4. Who can Send me an exemple of a project like that???
    Thank you! 
    Solved!
    Go to Solution.

    Hi snuk,
    To use a webcam with LabVIEW, you will need the IMAQ for USB Cameras driver, which  has the following requirements:
    - Windows Microsoft Windows Vista/Vista x64/XP/2000  (English, Italian,
    Japanese, French, Italian, Norwegian, Dutch, Spanish/Portuguese,
    Russian, or simple Chinese).
    - LabVIEW 7.0 or later.  
    - Vision Development Module 7.1 or later
    - NI Vision Acquisition Software 7.1 or later, for USB LabVIEW support.
    - Vision Assistant 7.1 or later, for  USB Vision Assistant plug-in module support.
    - Vision Assistant 8.0 or later, for USB Express VI support.
     There are examples on the NI DeveloperZone Community, but you will need the above requirements to run the examples.  Here is a link to one of the examples:
     NI-IMAQ for USB: Grab and Save Image with USB Camera
    I hope this helps!
    Kristen H.

  • USB Joystick のホットプラグについて

    USB Joystick をホットプラグしたいのですが、USB Joystickを接続しない状態でQuery Input Deviceを実行するVIを起動・実行し、そのあとで
    USB JoystickをUSBポートに接続してデバイスをOSに認識させた後、再度同じVIを実行しても、接続したJoystickを認識しません。
    いったんVIを閉じてから、再度同じVIを開いて実行すると、接続したJoystickの情報が返ってきます。
    LabView2011を使用していますが、Query Input Devices, やInitialize Joystickなどは、VIをロードしたときのUSBデバイスの情報しか使えないのでしょうか?
    Windows7 SP1やWindow8のRemoteDesktopで、USBリダイレクトができるようになったので、ローカルのJoystickでリモートコンピュータのVIをコントロールできる
    ようになったのは良いのですが、VIを再ロードしないとリダイレクトしたUSBデバイスを認識してくれないようで、困っています。
    これがLabViewの仕様なのでしょうか?
    どなたかご存じありませんでしょうか?
    添付:
    joystick-test.vi ‏10 KB

    NI技術部 稲毛です。
    こちらでも状況を確認しました。
    KatsuTaka 様のご確認の通り、 Query Input Devices, やInitialize Joystickなどは、VIをロードしたときのUSBデバイスの情報しか使えないようです。
    USBデジタルマルチメータなどは、(別の関数を使用しますが)問題なく認識されましたので、
    Query Input Devices, やInitialize Joystick関数 の問題かと思われます。
    解決方法になるか分かりませんが、 KatsuTaka 様作成の「joystick-test.vi」をサブVIとし、
    プログラム実行中に動的に「サブVIを開く」→「サブVIを実行」→「サブVIを閉じる」を行うことにより、
    メインVIを開いたまま、ホットプラグさせたJoystickを認識させることができました。
    VIを添付しますので、参考に見ていただけますでしょうか。
    不明点がありましたらご連絡ください。
    添付:
    main_test.vi ‏13 KB
    joystick-test.vi ‏10 KB

  • Omega NI-DAQ in Labview

    Dear all,
    I'm trying to connect my Omega OMB-DAQ-2416 (with expansion module EXP32) to Labview software. But somehow I'm missing a step along the way I think....
    I've installed Labview 2012, and the software from Omega Engineering (InstaCal for calibration, tracerdaq as another software for read out, and the Universal Library, which I think I need to connect with Labview.)
    When starting the NI instrument driver finder, I don't see the hardware in the connected instruments list. How should I make the connection (by using the InstaCal software I checked there is proper communication between the Data Acquisition module and my PC (windows-7, 32 bit).
    Any help is greatly appreciated!
    Best Regards,
    Evert

    MAX (Measurement and Automation Explorer) is a program made by NI that installs with just about any NI hardware.  It is like the device manager for hardware.
    Lucky for you your device does have drivers written by Omega.
    ftp://ftp.omega.com/public/DASGroup/products/OMB-DAQ-2416_OM-USB/LabVIEW%20Drivers/
    You'll want to download and install them, then use the code on the palette that the installer added.  As for general LabVIEW help try some of these.
    NI Learning Center
    NI Getting Started
    -Hardware Basics
    -LabVEW Basics
    -DAQ Application Tutorials
    3 Hour LabVIEW Introduction
    6 Hour LabVIEW Introduction
    Self Paced training for students
    Self Paced training beginner to advanced, SSP Required
    LabVIEW Wiki on Training
    LabVIEW has some concepts that are hard to wrap your head around at first so good luck, and feel free to post any questions you have on these forums.
    Unofficial Forum Rules and Guidelines - Hooovahh - LabVIEW Overlord
    If 10 out of 10 experts in any field say something is bad, you should probably take their opinion seriously.

  • Wireless webcam interface

    Dear All,
    I need some advice using wireless webcam. I have program for interfacing usb webcam with labview display. It successfully done!  Now, I want to buy wireless webcam to interface with my usb labview program. So I want to know it's possible using the imaq usb grabbing with the wireless webcam. I have tried to interface the wireless infrared camera with usb wireless to grab the image program that camera using the usb webcam programming but it can't. So I attach my usb webcam camera programming for all to give some advice to me.  Hope all of you can advice me to buy any wireless webcam that interface with usb wireless device. Thank you very much.
    Attachments:
    Straingth Line.vi ‏258 KB

    Hey,
    The LV USB driver is just for cameras which are DirectShow compatible.
    With the Vision 2009 software the USB part had been integrated into IMAQdx which is also able to acquire from some certain IP cameras.
    So either your "Wireless Cam" is direct show compatible or is using a standart IP Protocoll where you can give it a try and see if you can connect to the camera in LabVIEW.
    Christian

  • USB-6009 labview 7.1

    Hi can anybody tell me if they have had any problems running USB-6009 with Labview version 7.0? I can't get it to recongnise my device and it's behaving as if there is nothing there. Do I need version 7.1 or is there a more sinister problem afoot?
    Kyle

    What version of DAQmx Base are you using? The latest version, 1.4, is supported on all versions of LabView 7.0 and higher. It can be obtained using the following link:
    http://digital.ni.com/softlib.nsf/websearch/941677622E793A2686256F8C0083641A?opendocument&node=132050_US

  • USB-6009 with Labview 2014 on Windows 8.1

    Hi,
    I have trouble connecting USB-6009 OEM with my new laptop with windows 8.1. My USB-6009 OEM device is not shown up in NI Max. So when I check Device Manager, there is a question mark on "NI USB-6009 OEM FW". I tried to install Labview 2011 but still the same. When I tried to choose the driver in Device Manager manually, I can only find NI-VISA driver as the closest one. It is still not working when I open DAQmx to check my card. It is still not detected in NI Max and anywhere within labview. When I used NI-VISA driver, and try to connect the device in NI Max, I get timeout error. I think I need to see NI-USB driver instead of NI-VISA driver. Any help would be appreciated.
    Cheers,

    Hi Thoo,
    You may also want to try reinstalling the DAQmx 14.5 driver first. DAQmx 14.5 is supported on Windows 8.1. Some of the driver files may have been corrupted and reinstalling the driver may solve the issue. If not, using the DAQmx Base driver could be a good option as Dennis suggested.
    Thanks,
    Frank
    Application Engineer
    National Instruments

  • How do I create Labview VISA ports for *individual* GPIB instruments using Prologix USB GPIB controller?

    Hello,
    I'm trying to use a Prologix USB GPIB controller to control GPIB
    instruments, and I would like to have a virtual serial (VISA) port for
    *each instrument*, as is the case with a normal GPIB controller with a
    standard NI driver. However this is not what the Prologix driver
    provides -- it provides a single VISA virtual serial port for the
    entire controller. To address the instrument with GPIB address 11,
    you first send "++addr 11" to the serial port, and then you're talking
    to instrument 11. However, this means I have to change all old
    Labview programs.
    Is it possible to create a "wrapper" function of some kind that will
    define a virtual serial (VISA) port for each *instrument* on the
    controller? For example, to talk to GPIB instrument 11, call it
    ASRL3::11::INSTR, each time it is written to it would have to write to
    the virtual serial port of the controller, say ASRL3::INSTR, first "+
    +addr 11" and then the command that is sent to it.
    A clearer explanation of the difference (i.e. incompatibility), and of
    my objective:
    1) A normal GPIB controller with NI driver: I go to the NI
    Measurement & Instrumentation Panel, under GPIB, and Scan for
    Instruments; all the live instruments show up; subsequently when I
    want to use Labview programs that use VISA ports, the VISA drop boxes
    allow me to choose a different port for each instrument, e.g.
    "GPIB0::11::INSTR", "GPIB0::12::INSTR" would be instruments at
    addresses GPIB 11 and GPIB 12.
    2) The Prologix GPIB controller that plugs into a USB port: In
    Labview you get a *single* VISA virtual serial port, ASRL3::INSTR, for
    the entire GPIB0 controller. Therefore to address GPIB instrument 11,
    you write "++addr 11" to the virtual serial port ASRL3::INSTR, and
    then you are communicating with device 11, so you can write and read
    ASRL3::INSTR to talk to that device. Then to talk to device GPIB 12,
    you write "++addr 12" to the same VISA port, and then you are talking
    to that device. The problem is that this requires recoding all
    Labview code, whereas I would like to be able to use the same program
    either with a normal or with a Prologix GPIB controller. Therefore, I
    would like to create code that scans the controller for all GPIB
    attached devices and creates VISA ports for all. Such ports, when
    written to, would have to first write "++addr DEVICENUM" to
    ASRL3::INSTR (i.e. the port of the GPIB-USB controller) where
    DEVICENUM is the GPIB address of the instrument corresponding to that
    port, and then would have to do a write or read or whatever function
    is being done on that instrument VISA port.
    I haven't figured out if it is possible to do this easily. Help and
    pointers on where to look for hints would be much appreciated. Many
    thanks!
    Milos

    My first impression is that if you don't want to make any changes at all to existing programs is that the wrapper you need is one around VISA. You would need to intercept all of the calls into the NI VISA driver. If you create your own visa32.dll and in there, change the addressing and then call the real VISA driver, you might (repeat, might) get something to work. If this would even work, you still might find that you have to make significant changes anyway. The serial connection is going to be considerably slower, and interface specific functions such as service request handling, bus triggering of multiple instruments, etc., would be difficult to impossible. This would be a lot of work, imho, to just save a couple of hundred dollars over a real GPIB controller. I've seen this Prologix device before and have even used NI's RS-232->GPIB controller. The Prologix intended use to me seems to me more for a hobbyist or very casual user. Of course, I'm used to having multiple GPIB instruments worth 10s/100s of thousands of dollars and the cost of an fully compliant GPIB controller is just lost in the noise.

  • How can i use labview for communicating with pic18 microcontroller through usb port?

    Hi all,
    I want to make a DAQ card using pic 18 microcontroller which has a built-in usb protocol. I have the firmware of this
    controller which will  make it as a usb device. How can i receive the analog voltages from this DAQ card in Labview? or i mean to say that how i can communicate labview with the Pic 18 microcontroller through usb port? I have also the
    mpusbapi.dll file which is for Visual C++. Can i make changes in this dll file to make it compatible with labview?

    Which labview version do you have. Up to labview 7.1 it was no USB raw communication options. I have heard it did not work well in 7.1, but from 8.x most of the errors were fixed.
    Here is a link it should be useful http://forums.ni.com/ni/board/message?board.id=170&message.id=340676&query.id=365864#M340676
    Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
    (Sorry no Labview "brag list" so far)

  • How do I browse & play .mp3 files from a USB flash drive using Labview 8.0?

    I'm a tester & want to test USB flash drives connected to PC.
    I want to browse the file system & playback the audio files, .jpeg files etc in the USB drive. I've Labview 8.0. When I searched for some examples or VIs which can detect the USB flash drive, couldn't find any. So if you could point me in the right direction, I can find a solution to my problem.
    Thanks.
    Solved!
    Go to Solution.

    You probably won't find specific examples for this.  A USB flash drive is mounted by the OS and appears as a new memory storage device to all software on the PC, including LabVIEW.  You can certainly write a LabVIEW program to open files on the stick and play/run them but I would create a VI that wrote files to the stick and then read them back and checked them for bit-level errors.  Keep in mind that your OS might be doing parity checking under the hood which would make your test rather meaningless.
    BTW, testing memory by looking at pics or listening to MP3s would be useless of course.  A human can't see or hear bit-level errors in a high bandwidth data stream.
    Using LabVIEW: 7.1.1, 8.5.1 & 2013

  • How can I make a labview application for a usb-device?

    I've built an application using the FT8U245AM from FTDI. This is a chip that converts signals into usb signals. Now I want to set parameters using labview. There is a driver provided with the chip, that makes it possible to turn the usb port into a virtual com-port. But how do I continue from here? Do I write my application as if it were a classic serial port device, using VISA, or is it more complicated than this?

    We had an RS-232 design that communicated with LabVIEW via the plain old serial commands here that needs to be converted to USB and CAN.
    A serial-USB chip was inserted to account for the hip USB transition. As i've been told by the electronics designer, it worked without a flaw (I don't remember the type used however).

Maybe you are looking for

  • Can't get ANYTHING to work!!  Help NEW to iPod

    I bought an ipod nano off of ebay. nice deal, but of course battery life couldn't be guranteed. when unit arrived i didn't know how to turn on ,but i must have hit the correct button because it came on. i then had children issues and when i came back

  • Display of Particular Purchase order not to be shown

    Dear Experts How to stop the display of for some particular  purchase order on the same user id. i want to restrict some user not to be display some specific Purchase order , condition is that we cant change doc type or also cant change purchasing gr

  • CSS rollover Problem

    I am new to CSS navigation rollover. Below is a link to a site that I am working on. My navigation is working ok exept once you view a page then the rollover is no loger working. It then uses the "visited" css attributes. Is there a way to make the "

  • MJPEG source color/balance/contrast etc all no good. Someone please help ;(

    Hi all, I'm having an issue and worst of all I don't know if it's Adobe with their 6.0.2 update or my own itchy fingers. But something got screwed up and I can't get it back to where it was. In a nutshell the MJPEG footage in PPro is all out of whack

  • Automatic process in sales cycle

    Hi everyone I want to know that, What setting is required for automatic process from Delivery to Billing after creation of sales order? And order type is OR(standard order) Regards prabudh