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

Similar Messages

  • Need help writing small program!

    Hi. I'm learning Java programming, and I need help writing a small program. Please someone help me.
    Directions:
    Create a program called CerealCompare using an if-then-else structure that obtains the price and number of ounces in a box for two boxes of cereal. The program should then output which box costs less per ounce.

    class CerealCompare {
        public static void main(String[] args) {
            // your code goes here
    }Hope that helps.
    P.S. Java does not have an if-then-else statement.

  • Need help writing Java program

    I am a student conducting research as to the tolerance of users to a user interface. My idea is to take the existing tetris game but implement errors into it, so that on occasion the piece will not move in the direction you want it to. Also In the program there will need to be an introduction screen, 3 levels which end when you recieve a certain amount of points, a data table, for my use which collects information about time between moves, total time, par time( how long it would take if no errors occured), and levels completed. Also if a user fails to pass the level, at what point did they fail. The data will need to be organized in a logical order and finally there will need to be a way for me to retrieve the data. I already have the existing tetris code and I need to add to it, so if anyone could help me as I have no programming knowledge and I need this done as soon as possible, please contact me at [email protected] and I will be willing to pay for your time.
    Thanks,
    Ross

    I am a student conducting research as to the
    tolerance of users to a user interface. We call that Human Factors :-)
    My idea is to
    take the existing tetris game but implement errors
    into it, so that on occasion the piece will not move
    in the direction you want it to. So the idea is to piss the user off?!
    Also In the program
    there will need to be an introduction screen, 3
    levels which end when you recieve a certain amount of
    points, a data table, for my use which collects
    information about time between moves, total time, par
    time( how long it would take if no errors occured),
    and levels completed. okay...
    Also if a user fails to pass
    the level, at what point did they fail. The data will
    need to be organized in a logical order and finally
    there will need to be a way for me to retrieve the
    data. I already have the existing tetris code and I
    need to add to it, so if anyone could help me as I
    have no programming knowledge and I need this done as
    soon as possible, please contact me at
    [email protected] and I will be willing to
    pay for your time.
    Thanks,
    RossFirst of all, it's probably not a good idea to post your email address, not that anyone will email you anyway. Second, I'm not sure how you're going to accomplish this programming task if you don't know how to program. See the problem?

  • I need help writing my VI in Labview.

    I am running a timer in my VI that runs for 60 seconds. I need the timer to start when a boolean value becomes true, not when I start running the VI. Ideas?

    Create a software trigger in the While loop to start your timer. This could be as simple
    as a shift register with a history of two elements on the left side of the While loop.
    Feed your boolean to the shift register, and look for the trigger condition based on the
    history of boolean elements. If you want to start your timer on low-to-high condition, then
    initialize the shift register to 00 and feed a 1 on your starting interation.
    Then, look for a 01 in your shift register elements. Similarly, to stop the timer on a high-to-low
    condition, feed a 0 to the shift register on your stopping iteration and look for a 10 in your
    shift register elements.
    To keep the timer running, continuously feed a 1 and check for 11 in the shift register elements.
    This is basically a software control signal for your timer.

  • Need Help Writing Server side to submit form via API

    Hey
    I need help writing a serverside application to submit
    information via API to a separate server.
    I have a client that uses constant contact for email
    campaigns. We want to add to her website a form taht submits the
    information needed to subscribe to her email list, to constant
    contact via API.
    FORM.asp :: (i got this one under control)
    name
    email
    and submits to serverside.asp
    SERVERSIDE.ASP
    In serverside.asp i need to have
    the API URL
    (https://api.constantcontact.com/0.1/API_AddSiteVisitor.jsp)
    username (of the constant contact account)
    password (of the constant contact account)
    name (submited from form.asp)
    email (submitted from form.asp)
    redirect URL (confirm.asp)
    Can anyone help get me going in the right direction?
    i have tried several things i found on the net and just cant
    get anyone to work correctly.
    One main issue i keep having is that if i get it to submit to
    the API url correctly - i get a success code, it doesnt redirect to
    the page i am trying to redirect to.
    ASP or ASP.NET code would be find.
    THANKS
    sam

    > This does require server side programming.
    > if you dont know what that is, then you dont know the
    answer to my question. I
    > know what i need to do - i just dont know HOW to do it.
    If you are submitting a form to a script on a remote server,
    and letting
    that script load content to the browser, YOU have no control
    over what it
    loads UNLESS there is some command you can send it that it
    will understand.
    No amount of ASP on your server is going to change what the
    remote script
    does.
    http://www.constantcontact.com/services/api/index.jsp
    they only allow their customers to see the instructions for
    the API so i
    can't search to see IF there is a redirect you can send with
    the form info.
    But posts on their support board say that there is.
    Alan
    Adobe Community Expert, dreamweaver
    http://www.adobe.com/communities/experts/

  • I need help I tried to use cloud backup on my iPhone 5.0.1 and after all my camera roll pictures are blurry and videos canot be played messege says URL not on this server ! Please help!! iPhone 4S, iOS 5.0.1

    I need help I tried to use cloud backup on my iPhone 5.0.1 and after all my camera roll pictures are blurry and videos canot be played messege says URL not on this server ! Please help!!
    iPhone 4S, iOS 5.0.1

    Try updating to iOS 6.1.3.

  • I need help from chile and use a language translator to write and not turn my iphone4

    I need help from chile and use a language translator to write and not turn my iphone4

    http://support.apple.com/kb/TS3281       
    Not turn on

  • I need help writing a script that finds the first instance of a paragraph style and then changes it

    I need help writing a script that finds the first instance of a paragraph style and then changes it to another paragraph style.  I don't necessarily need someone to write the whole thing, by biggest problem is figuring how to find just the first instance of the paragraph style.  Any help would be greatly appreciated, thanks!

    Hi,
    Do you mean first instance of the paragraph style
    - in a chosen story;
    - on some chosen page in every text frames, looking from its top to the bottom;
    - in a entire document, looking from its beginning to the end, including hidden layers, master pages, footnotes etc...?
    If story...
    You could set app.findTextPreferences.appliedParagraphStyle to your "Style".
    Story.findText() gives an array of matches. 1st array's element is a 1st occurence.
    so:
    Story.findText()[0].appliedParagraphStyle = Style_1;
    //==> this will change a paraStyle of 1st occurence of story to "Style_1".
    If other cases...
    You would need to be more accurate.
    rgds

  • Launching an application in a networked host PC using labview 8.0

    HI all,
            I was wondering if it was possible to launch an application in a networked, host PC using Labview 8.0???? I d appreciate it if any one could reply to this question.
    Thanks.

    You could use VI server to launch an application on another PC. Have a look at the following and go through examples in the Example Finder:
    How Do I Use Remote VI Server Over the Network?
    vi server launch application
    Adnan Zafar
    Certified LabVIEW Architect
    Coleman Technologies

  • Can I program using Labview without HW from NI?

    I am a newbie about LV. So I ask the simple question:
    Can I program using Labview without HW from NI?

    You can not only program in LabVIEW without hardware from NI, but you can program without hardware period. You can also write programs for other brands of hardware. You can even program for NI hardware with other programming languages.
    Get some training, and a copy of "LabVIEW for Everyone" before you get too far. These are great resources for learning LabVIEW.

  • Need Help in Writing a program using a two-dimensional Array

    I need to write a program that takes 16 integers as inputs and determine whether the square is a magic square(sum of each row, column, and diagonal is the same constant) and display the result in a message Box. Please Help!!!!!

    stick the 16 ints in an int[4][4] and then just write the methods. i guess thats the hard part though. the most cumbersome and longest possible way to do it is just write everything out. ie if(int[1][1] + int[2][1] + int[3][1] etc...). a better way would be to use a bunch or for loops, but you'll have to figure that out yourself.

  • Need help writing Labview Program!!!!!

    I have a labview project that needs to be finished. I was not the original creator of the program and the guy who created no longer is involved with the project and I am left to finish it. Could you make the final adjustment so I can turn this into my professor and get the final grade. Thanks! Willing to pay! Negeotiable price!!!!!!!!

    Need help completing assignment! Could anyone assist me in this project!
    Attachments:
    dial tone detection.zip ‏1253 KB

  • Need help writing non-gui JMF program

    I need to write a program that will convert a WAV file from a ULAW format to a GSM WAV file format. I first tried this with the Java Sound API and the WAV file format of GSM was not supported so I stumbled across JMF.
    I can use the JMStudio and Export GUI programs that come with JMF to convert the wav file as needed. But now I'm trying to write a batch program (non-gui) to convert the file on the fly.
    First, is this possible. Second, does anyone have any code samples of a batch java program using JMF in batch.
    Thanks,
    Scott

    Not exactly what I was looking for. After 2 days of beating my head against the wall this is what I got to work. Include the jmf.jar in my project. Here is my code.
    import java.io.IOException;
    import javax.media.DataSink;
    import javax.media.Manager;
    import javax.media.MediaLocator;
    import javax.media.NoDataSourceException;
    import javax.media.Processor;
    import javax.media.control.TrackControl;
    import javax.media.format.AudioFormat;
    import javax.media.protocol.DataSource;
    import javax.media.protocol.FileTypeDescriptor;
    import jmapps.util.StateHelper;
    public class TestAudio5 {
         public static void main(String[] args) {
              try {
                   Processor p = null;
                   StateHelper sh = null;
                   DataSource inSource = Manager.createDataSource(
                             new MediaLocator("file:c:\\ASSURANCE_THREE_MINUTE.wav"));
                   p = Manager.createProcessor(inSource);
                   sh = new StateHelper(p);
    //               Configure the processor
                   if (!sh.configure(10000)) {
                             System.out.println("can't configure");
                        System.exit(-1);
                   p.setContentDescriptor(new
                                       FileTypeDescriptor(FileTypeDescriptor.WAVE));
                   //AudioFormat(java.lang.String encoding, double sampleRate, int sampleSizeInBits, int channels)
                   //AudioFormat(
                   //          java.lang.String encoding,
                   //          double sampleRate,
                   //          int sampleSizeInBits,
                   //          int channels,
                   //          int endian,
                   //          int signed,
                   //          int frameSizeInBits,
                   //          double frameRate,
                   //          java.lang.Class dataType)
                   AudioFormat outputFormat = new javax.media.format.AudioFormat(
                                            AudioFormat.GSM_MS,
                                            8000.0,
                                            0,
                                            1,
                                            0,
                                            1,
                                            520,
                                            1625.0,
                                            null);
                   System.out.println("outputFormat: " + outputFormat.toString());
                   TrackControl tc[] = p.getTrackControls();
                   for ( int i = 0; i < tc.length; i++ ) {
                        tc.setEnabled(true);
                        System.out.println("before format: " + tc[i].getFormat().toString());
                        tc[i].setFormat(outputFormat);
                        System.out.println("after format: " + tc[i].getFormat().toString());
                   if (!sh.realize(10000)) {
                                       System.out.println("can't realize");
                                       System.exit(-1);
                   // get the output of the processor
                   DataSource source = p.getDataOutput();
                   // create a File protocol MediaLocator with the location
                   // of the file to which bits are to be written
                   MediaLocator dest = new MediaLocator("file://c:\\test.wav");
                   // create a datasink to do the file writing & open the
                   // sink to make sure we can write to it.
                   DataSink filewriter = null;
                   filewriter = Manager.createDataSink(source, dest);
                   filewriter.open();
                   // now start the filewriter and processor
                   filewriter.start();
                   sh.playToEndOfMedia(5000);
                   sh.close();
                   filewriter.close();
              } catch (NoDataSourceException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
              } catch (IOException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
              catch (Exception e) {
                             // TODO Auto-generated catch block
                   e.printStackTrace();
              System.out.println("done!");
              System.exit(-1);

  • Need Help writing program

    very new to java, i conceptually know what i want to do, but it is hard to apply that to writing the program. this is very introductory so i'd appreciate all and any help.
    i am trying to write a program such that if I select an integer, n, as in input, the program can convert that integer into it's binary representation. for example, if the integer is 4, then the program would output 001 as the binary representation of 4.
    that is the first part, the second part is to have the binary representation go from most significan bit to least significant bit, so for the integer 4 it will come out as 100 (or 000100 or 00100).
    ok basically i know i want the program to divide the chosen integer by 2 and take the remainder (n%2), which will be 1 or 0. i then want the program to take the value (n/2) and have that be the new n value, then repeat the steps over and over till my n just becomes 0. i am trying to do this with a while loop, but if there is an easier way to do this, please let me know. so far wha ti have is below, kinda stuck on how to write this program, please help. the output just keeps giving me 0 and doesn't end.
    import java.util.*;
    class Q3a{
    static Scanner console = new Scanner (System.in);
         public static void main(String args[]){
              int n;
              n = console.nextInt();
              System.out.print("Choose an integer value :");
              while (true) {
              System.out.println("Remainder on dividing " + n + " by 2 is " + n%2);
              n = n/2;}
              System.out.println("New value of n is n/2 which is " + n);
              System.out.println("Remainder on dividing " + n + " by 2 is " + n%2);
              n = n/2;
              System.out.println("New value of n is n/2 which is " + n);
              System.out.println("Remainder on dividing " + n + " by 2 is " + n%2);
              n = n/2;
              System.out.println("New value of n is n/2 which is " + n);Message was edited by:
    kribraider414

    consider
    while (n != 0){
      System.out.println(n%2);
      n = n/2;
    }put the reverse of the stoping condition in the parens for the loop
    This loop will run while n is NOT zero. It wil stop when n is zero. Try it for a few numbers and see what it does.
    Pay particular attention to what it does if the number you supplied is zero (which is the one binary number that does not have a single one in it.)
    Also take a look at what it does for negative numbers and decide what you want to do in that case.

  • Need to control waterbath temp using labview via RS232

    HI,
    I am new to labview. I have labview 6.1. I need to control a thermo RTE7 water bath temp.  controler using labview.
    The water bath has to be connected to computer via RS232 port and the commands have to be given via binary values.
    The users manual for the bath has "hex" bytes that are to be converted
    to binary values to be passed to bath. If anyone has done this before
    or anyone can help me on this please let me know. Thanks,

    Use simply the recommandations given in the RTE manual. You don't have to convert to binary : that's something done by the hardware.
    For instance, to send the temperature setpoint to the controler, you have to send a byte string such as
    CA 00 01 F0 02 01 2C DD, where CA 00 01 is a header specific to the type of serial link you are using,
    F0 is the set temperature command,
    02 is the number of bytes expressing the temperature that you are about to send
    01 0C is the temperature in tenths of degree (here : 30°C = 300 tenth = 010C$
    DD is a check sum byte.
    The corresponding labVIEW program is as follow :
    Of course, do not forget to initialize the serial port before writing the string !
    Message Edité par chilly charly le 10-21-2005 06:21 AM
    Chilly Charly    (aka CC)
             E-List Master - Kudos glutton - Press the yellow button on the left...        
    Attachments:
    Water bath.png ‏4 KB
    Water bath.vi ‏28 KB

Maybe you are looking for

  • JSF pages to display content from external URLs

    Hi, Is it possible for a JSF page that uses ADF controls, and the PanelPage component to provide menuing, etc. to actually allow a HTML page (accessed via a URL to an external site/application) to be displayed in an area within the JSF page? For exam

  • My cell number shows as "unknown" on my iPad 3(AT

    When I purchased my iPad 3, I used the cloud to back from my previous iPad - an iPad 2. I think this has caused problems with my cellular account.  Specifically, when I go to About section of Settings, the cell number now shows as "unknown". When I l

  • Prioritize date with multiple SSIDS?

    Hi, When running multiple SSIDs on an AP all SSIDs share the available bandwidth. Is there a way to prioritize the traffic?....ie...can I somehow give preference to traffic on SSID A over traffic on SSID B? ...thanks in advance.......J

  • NWA - User ID & Pass problems

    Hello, I have tried to log on at SAP Netweaver Administrator but it is impossible. I know that I am using the correct user id and pass because I have worked with NWA some days ago. I can logon in Portal options 'System Information' and 'Web Services

  • Where is the Product key of Apple Mobile Device support?

    Where is the Product Key of a iPhone 4?