Building Bluetooth program on LabVIEW

Hi there,
I am doing a project where I am suppose to build a Bluetooth software using LabVIEW to replace the current Bluetooth software for a set of timing lights (uses Bluetooth as means of communicating with the computer). This is how the setup is suppose to work,
1. The timing lights are on. A set of 7 pairs. One emitter and one receiver each. Light from emitter is received by the receiver. All 7 pairs are linked to the computer via Bluetooth.
2. When the connection between the emitter and receiver is broken, a signal is sent to the computer.
That is basically how they work. I have tried the Bluetooth examples but they are somewhat different from what I need to do. I was wondering if it was possible to just create one Bluetooth VI which is able to just acquire, process and present the signals (either light received or not) from the timing lights just like a data acquisition VI.
p/s I am new to how Bluetooth works so I am not sure what signal(s) is sent from the timing lights. How can I check what signal is sent from the timing lights? Any help on this is really appreciated. Thx.

> I am doing a project where I am suppose to build a Bluetooth software using LabVIEW
> to replace the current Bluetooth software for a set of timing lights (uses Bluetooth as
>  means of communicating with the computer).
There are really two separate tasks here - first, getting registers (or variables) for the timing lights.
The second task is transmitting the data by Bluetooth radio/software.
> 1. The timing lights are on. A set of 7 pairs. One emitter and one receiver each.
So each receiver is a separate Bluetooth radio?  Then when you do a "Bluetooth Discover"
you should find (at least) 7 addresses (listed for example as 12:34:56:7a:bc:de").
Use each of these addresses as an input to a separate "Bluetooth Open" - which will give
you 7 separate connection ID's.  Most likely you will use Channel 1 for the Bluetooth Open too.
Then it's simply a matter of using "Bluetooth Read" to listen for any response.  I use a 1ms
timeout and ignore timeout errors ("the device just doesn't have anything to say").  You
may always expect a response from yours (light or no light), or you may want a longer timeout,
and/or use a timer so that you aren't polling every microsecond. 
> 2. When the connection between the emitter and receiver is broken, a signal is sent to the computer.
> I was wondering if it was possible to just create one Bluetooth VI which is able to just acquire,
> process and present the signals (either light received or not) from the timing lights just like a data acquisition VI.
Sure.  I would use a state machine.  The "initialize" would do a discover (if you don't have the addresses
hard coded).  You may need some method of selecting devices so that you don't get everybody's
cell-phone head set.
Then go to state "open" where you open all 7 bluetooths.  Pass the 7 connectID's to the "Read" state
where you read the current data from all 7 receivers.  (If you have to write a message to them before
you can read a response, be sure to do that too.)  This data is presented on the panel in any
format you desire.  Put in the desired time-delay/polling rate and continue in the "Read" state.
The Stop button on your panel takes you out of the Read state and goes to the Disconnect state
where you disconnect all 7 bluetooths.
That should do it.
~~Les Hammer

Similar Messages

  • Building Bluetooth Application

    Dear All,
    I'm new to J2ME programming. I'm interested in building J2ME Bluetooth Application using NetBeans 4.1 + Mobility pack.
    My questions is =
    1. Is there any components / packages / SDK should I downloaded in order to develop Bluetooth App?
    2. What java class / package that Bluetooth routine reside? ex: javax.microedition.* ...etc
    3. Could i build Bluetooth in Netbeans 4.1 + Mobility Pack?
    All answer will be a lot appreciated. Thanks.

    Hi All,
    I have got LabVIEW 8.0. I make a VI for discovering BT targets. It works fine on my computer and also fine when I make a application.
    I don't have any problem with this function and the discovering of BT
    target. I made the test of the PC of my collaegue and It works fine too.
    Two tests done : One with a own Vi and an own application on my PC  ==> everything OK
                                One with the Vi and application of Aquila1981 from the folder "rest.zip" (see first thread)==> everything OK
    My config : Win XP Pro ver 2002  SP2
                      Pentium IV (3,4 Ghz)
                      1 Go of RAM
    Targets : Pocket PC Asus A620 BT
                   Sony-Ericsson Mobile Phone K750i
    BT stuff : BT USB Stick
                    Manufacturer : Broadcom ==> Blutonium BCM2035 BT 2.4 Ghz Single Chip Transceiver
                    Driver version : 5.1.2600.2180
                    Firmware Revision 00.04
    Let me know if you have some problems.
    Julien Roland
    AE of NI Belgium
    www.ni.com/support
    Julien Roland - District Sales Manager
    NI Belgium - Technical Support
    Don't forget to rate a good answer

  • How To create a Buffer Application Program in LabVIEW?

    Dear all:
    Can someone advise me on how to implement a buffer application for LabVIEW.
    Basically I have 2 application programs than run continously in paralell.
    1) LabVIEW Data Logging & Plotting Program. It takes 90 ms to excute its code
    2) C++ Data Acquisition Program. It Samples the data from a Reflective Memory Card (on the PCI bus of my PC)
    at 1ms and creates a Buffer where it store one sample per channel every 1 ms.
    I know LabVIEW have the Code Interface Node to call a C program but since both (The LabVIEW and the C) are runing (one slower than the other) in Parallel I need to somehow interrupt the C program from LabVIEW and get from it the data that it as collected so far.
    Any suggestio
    n will be highly appreciated. I attach txt file with a little more description of the problem.
    Thank You very much.
    Felix Beltran
    ALSTOM Power Conversion.
    U.K
    Attachments:
    NI_SW_Buffer_Question1.txt ‏2 KB

    Hi Felix,
    The best architecture for this application would be to have the C++ program divided into two threads. One thread is continuously acquiring data and placing it in a queue. The other "handling" thread will read data from the queue and serve it up to your LabVIEW application.
    Much better than using the Code Interface Node, build the C++ application into a DLL. You can then call a function from your LabVIEW program to start the acquisition, and then calls to the handling thread function will return data to LabVIEW.
    I hope this helps.
    Regards,
    Phil R
    Applications Engineer
    National Instruments
    http://www.ni.com/support

  • Problem with building a dll in labview

    Hello,
    I want to be able to run a LabView vi from Java and found that the best way to do this is to create a DLL in LabView and then call it in Java using JNI. I did a dummy program in LabView to test, but the problem is that the instructions I found don't seem to exist! For example, one tutorial I was following said to: "Open a new VI and select Tools»Build Application or Shared Library (DLL).". But I don't have that under tools, just Build Application (EXE) from vi, which gives a project file. In another place it said to "Expand My Computer. Right-click Build Specifications and select New»Shared Library from the shortcut menu to display the Shared Library Properties dialog box" but I have no idea what that means.
    I have the LabView 2009 trial version, could that possibly be making a difference? If not, what am I doing wrong? Or is there a better way to run a LabView program from Java?
    Thanks a lot!
    Hugh

    Actually, the second one is from LabView help. I tried looking up Application Builder like you said but again it begins with the instructions "Expand My Computer. Right-click Build Specifications and select New»Application from the shortcut menu to display the Application Properties dialog box" and I have no idea what this means What do they mean by My Computer? And Build Specifications? I don't have any of that... I'm sorry but I'm new to all of this, I've never worked with DLLs before in any language, and all I want to do is run my LabView program when I press a button on my Java interface!! If there is a better way to do it, that would be great!
    Thanks at any rate,
    Hugh

  • Need help writing host program using LabView.

    Need help writing host program using LabView.
    Hello,
    I'm designing a HID device, and I want to write a host program using National Instrument's LabView. NI doesn't have any software support for USB, so I'm trying to write a few C dll files and link them to Call Library Functions. NI has some documentation on how to do this, but it's not exactly easy reading.
    I've written a few C console programs (running Win 2K) using the PC host software example for a HID device from John Hyde's book "USB by design", and they run ok. From Hyde's example program, I've written a few functions that use a few API functions each. This makes the main program more streamlined. The functions are; GetHIDPath, OpenHID, GetHIDInfo, Writ
    eHID, ReadHIC, and CloseHID. As I mentioned, my main program runs well with these functions.
    My strategy is to make dll files from these functions and load them into LabView Call Library Functions. However, I'm having a number of subtle problems in trying to do this. The big problem I'm having now are build errors when I try to build to a dll.
    I'm writing this post for a few reasons. First, I'm wondering if there are any LabView programmers who have already written USB HID host programs, and if they could give me some advice. Or, I would be grateful if a LabView or Visual C programmer could help me work out the programming problems that I'm having with my current program. If I get this LabView program working I would be happy to share it. I'm also wondering if there might already be any USB IHD LabView that I could download.
    Any help would be appreciated.
    Regards, George
    George Dorian
    Sutter Instruments
    51 Digital DR.
    Novato, CA 94949
    USA
    [email protected]
    m
    (415) 883-0128
    FAX (415) 883-0572

    George may not answer you.  He hasn't been online here for almost eight years.
    Jim
    You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice

  • Making DLL with C++ builder to use in Labview

      Anybody knows how to make DLL in C++ builder to use in Labview?? 
      Regards,

    smercurio_fc wrote:
    MCFSE wrote:
    This is a good question that does not appear to be addressed in that other thread.
    But is addressed via several NI KnowledgeBase articles and NI Community examples. For example: https://decibel.ni.com/content/docs/DOC-14564
    Well not verbatim, as that document refers to Visual Studio, not C Builder. But creating DLLs in C Builder for use in LabVIEW is no different than creating DLLs in C Builder for any other programming environment that can call unmanaged DLLs. How to configure C Builder to create a DLL, is really beyond the tasks anyone from NI should be required to explain. This requires someone who is familiar with C Builder and requesting a supplier to have specific experience with tool X goes a bit far. NI and most others are using Visual Studio so that is what gets explained. If some C Builder crack would come up with a tutorial targeted at integration with LabVIEW and post that here or someplace else, that would be of course great, but alas, nobody so far has felt the desire to step up to the challenge. There is no inherent difficulty with C Builder created DLLs to be used by LabVIEW, but apparently some difficulty of people to understand how to use C Builder to create working DLLs at all. Similar problems can appear for beginners with Visual Studio and since this is the tool mostly used here around, there are several tutorial style documents available that try to handhold the beginner to get a DLL at all.
    Personally I'm not sure that is ideal either, since those people usually know very little about C programming, or more precise if they know about C programming, they will be able to learn to use the tool in question, with some simple, non LabVIEW oriented examples from elsewhere and then easily apply that knowledge to LabVIEW with the help of the Visual Studio examples posted in quite big numbers, even if they use a different tool than Visual Studio.
    Other even more challenging topics would be to use CygWin, MingW, Bloodshed Dev C++ and similar compilers and write tutorials about them. However the challenges with all of these is to get them even installed well on your development system and to figure out various configuration hassles, also when trying to distribute the result later on.
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • Connecting Bluetooth accelerometer to labview

    Hello all, I am a graduate student developing a prosthetic leg for the VA and getting LabView to work with my device is the last thing I need to do to get my prosthetic leg to work.  I will freely admit that I am a complete beginner with LabView and I know the problem is my lack of knowledge and not LabView itself.  I was hoping that you all could enlighten me.
    So the basic problem is this: I am using a wireless accelerometer called a "WiTilt V3" developed by "SparkFun Electronics" and I cannot get LabView to connect with the device.  All I want LabView to do is graph the data transmitted by the accelerometer.  The accerometer typically uses a terminal program such as "HyperTerminal" or "Tera Term" and outputs the data in one line of code per data point.  An example of how the data look is this:
    Y=1.746
    Y=1.666
    Y=1.603
    Y=1.539
    Y=1.460
    Y=1.380
    Y=1.333
    Y=1.253
    Y=1.142
    Y=1.063
    Y=0.968
    So basically what I am trying to do is either have LabView take the place of the terminal program or have LabView call the data gathered by the terminal program in near real time (a delay of up to 0.5 seconds is acceptable.)  The accelerometer is connected to COM port 5 on my computer and the address is 00:06:66:01:99:aa.  Let me know if you need any other information.  Thanks.

    Hey Ian85,
    Check out this Developer Zone and Knowledgebase article on using bluetooth devices with LabVIEW.
    Hope this helps.
    -Ben
    WaterlooLabs

  • How can we call a C program in Labview

    Hi
    a) In one of our application we have to call a C progran in Labview. I am not able to call it. Can somebody help me.
    b) When we call a C program ,is  Labview makes block diagram for it.
    Please reply
    Thanking You

    hi there
    well, then we need more information what you mean with a "C program". are you talking about C source code, a command line executable, a high end executable with a GUI, a dll, ActiveX.... what are the parameters you have to pass? what parameters are returned from the "C program"? please post some code....
    as a startup you could search the examples shipped with LV. open the example finder from the runtime menu.
    Best regards
    chris
    CL(A)Dly bending G-Force with LabVIEW
    famous last words: "oh my god, it is full of stars!"

  • I want to write a program in LabView then pass the test results to teststand to check if it pass or fail without displaying the test stand program,

    I want to write a program in LabView and create an execute but I want to be able to pass test results to test stand to find it the unit pass ar fail the test then save the data to a database. How would i go about it.

    What's confusing is your statement that you want to do this "without display the test stand program". You can minimize the TestStand UI to the task bar but if you don't want TestStand to be running, how can TestStand evaluate the result. Explain a little more please.
    In the message body of your post, you just say you want to create a LabVIEW exe and pass the results to TestStand. What I would recomend is that instead of an exe, you create a dll and use TestStand's DLL adapter to call it and return the results. TestStand will evaluate it and do the logging.

  • I want to send 10 bit ADC from PIC via serial communicaton. i send it separetly 8 bit first then the other 2 bit. how to program in labview to capture those two packet then combine it togother

    i want to send 10 bit ADC from PIC mCu via serial communicaton.
     i send it separetly 8 bit first then the other 2 bit (2 bit --> with zero at 6 bit from LSB).
    how to program in labview to capture those two packet and then combine it together
    so i have 10 bit in lab view
    thank you

    Close, but now quite. You need to specify to the VISA Read how many bytes to read, not how many bits. Thus, the input would be 2, not 16. It's also not clear why you're trying to use the "String to Byte Array". The Type Cast will give you a number based on what data type you wired. You're basically telling it how to interpret the string. In this case we're telling it to interpret the string a 16-bit value, so we'll get a 16-bit integer. I know you said you wanted a 10-bit, but you can't have that. You'll get a 16-bit with 6 bits set to zero. Note: I did not completely understand what you said so we may need to change this slightly, but we want to get the communication and reading collection working first.
    Also, since you seem to be setting this in a loop you probably want to monitor this or to collect the data. For that you need a shift register. See attached for a modified version of your attempt. You need to set the datatype to I16 or U16 based on whether the value you get from the PIC is signed or unsigned.
    Message Edited by smercurio_fc on 05-01-2007 02:28 PM
    Attachments:
    Read PIC.vi ‏21 KB
    Read PIC.png ‏7 KB

  • Is it possible to build a project with Labview 2010 on a Windows XP system, that is useful for a system with windows 7 on it?

    Hi there,
    I am planning to use Labview 2010 in a short time.
    But before I'm going to use it I have some questions.
    I know it is possible to run Labview 2010 in an XP environment. But is it also possible to, when running Labview 2010 on a XP system, to build a project to a version that is useful in a Windows 7 environment?
    Or do I have to run Labview 2010, when I want to build a project that is useful on a Windows 7 system, on a system with Windows 7?
    Please give me some information.
    I hope to hear from one of you soon.
    Regards,
    Kenny
    Solved!
    Go to Solution.

    Is it possible to build a project with Labview 2009 on a Windows XP system, that is useful for a system with windows 7 on it?
    Thanks.
    Philippe B.
    Certified Associate Developer / Dépt Moyens d'essais
    www.ingenia-system.com

  • Adobe creating an app-building software program?

    Any guesses whether or not Adobe might ever create an app-building software program in the not too distand future?
    I've been tempted by some other 3rd party plug-ins like Kwiksher and Corona, which allow one to build a multi-page app with animations and sounds for the iPad and other devices.  Kwiksher is based on Photoshop, so it would simply many steps of the learning curve.
    http://www.kwiksher.com/
    http://www.anscamobile.com/corona/
    It seems logical that Adobe would build such a program, but I'd be curious if anyone on this forum knows if such a thing is in the works?
    Also, might anyone recommend any other new multi-media app development tools that are simple and based on photoshop?
    Thanks!
    jn

    I'd be looking to create children's book apps where each page might have simple sound effects, slight animations (like moving or twirling an image), and also include the option of having music and short mp3 voices... upon clicking.
    Since I'm not a programmer, I wonder if there is any program that does that?  Or whether Adobe might be planning one that's as simple to use as  Kwiksher?
    I can't do any coding... but I draw pictures and create digital images and am a published author.
    So I wonder if there is anything in the wind about whether Adobe might be creating something for this market?
    I know that Apple is anti-flash... so considering that a huge portion of the e-book and app market is through Apple's iTunes, that would be problematic.
    I know that Indesign CS5 can publish text documents to an epub format.... and they can include limited multi-media features like movies, but I'd be looking for a program that might do a bit more than that.
    Thanks!
    jn

  • IS APPLICATION BUILDER 6 COMBATIBILE WITH LABVIEW 7 ?

    IS APPLICATION BUILDER 6 COMBATIBILE WITH LABVIEW 7 ?

    No it's not but it is a free upgrade last time I checked. Go here and click on the Upgrade Advisor link. You will need the serial number of your current app builder.
    p.s. LabVIEW 7.1 was released today so you might want to skip 7 and go straight to the latest.

  • Can not open 7.1 program in labview 8.5.1 -- handler error

    I made a program in labview 7.1
    And I wanted to open it in labview 8.5.1, but it opens with errors, and I can not run it.
    In every sub vi, till the lowest level, I got the error "handler error".
    Can somebody help me? 

    Hi Sven,
    Due to data dependencies within the *.LLB your 8.5.1 version of your vi was still opening the 7.1-version of the 'General error handler.vi'. Because these two version are no longer identical, LabVIEW concluded that the wiring you made was no longer correct.
    Replacing the 'General error handler.vi' under the data dependencies with the one at: C:\Program Files\National Instruments\LabVIEW xxxx\vi.lib\Utility\error.llb
    should resolve the problem as we discussed on the phone.
    Kind Regards,
    Wouter
    NI Applications Engineering
    Northern Region

  • How to use a Matlab Program within Labview

    Hi
    I saw in this forum that many users are using some matlab program
    executed in Labview program. I have actually Labview 7.1 and would like
    to use some of my matlab program in Labview. Is there an easy way to do
    it ?
    Thanks
    Thomas

    The MATLAB Script function is kinda buried in the function palette, and
    can be found under Functions >> Analyze >> Mathematics
    >> Formula.  Unfortunately this feature is not available in
    the LabVIEW Base package.  Hope this helps!
    Andy F.
    National Instruments

Maybe you are looking for