Creating a Program that counts specified voltage

I have a project due for a freshmen engineering course (I'm extremely new to labVIEW), that reads voltage from an input (USB PMD-1208LS), and counts every time the voltage reading is 0. I also need to learn how to set HIGH/LOW values on a buffer that is connected to a breadboard (which is also hooked up to the PMD-1208). 
Thanks!

Wired94 wrote:
I have a project due for a freshmen engineering course (I'm extremely new to labVIEW), that reads voltage from an input (USB PMD-1208LS), and counts every time the voltage reading is 0. I also need to learn how to set HIGH/LOW values on a buffer that is connected to a breadboard (which is also hooked up to the PMD-1208). 
Thanks!
You have a statement there, but no question. Are you just trying to show appreciation to your instructor here? What you need to learn seems quite useful.
If you do have a question ("How in the heck do I do this?") that your knowledge attained through your course has not yet prepared you to answer, you might be able to do some catching up (at least enough to understand your course notes) by working through the online tutorials listed below. Please let me know if they help.
Cameron
To err is human, but to really foul it up requires a computer.
The optimist believes we are in the best of all possible worlds - the pessimist fears this is true.
Profanity is the one language all programmers know best.
An expert is someone who has made all the possible mistakes.
To learn something about LabVIEW at no extra cost, work the online LabVIEW tutorial(s):
LabVIEW Unit 1 - Getting Started
Learn to Use LabVIEW with MyDAQ

Similar Messages

  • How to create a vi that counts for example 3 - 10 pulses in and then give a 1 puls out

    how to create a vi that counts for example 3 - 10 pulses in and then give a 1 puls out.
    I'm working with Labview 6.1
    Running with Labview 6.1
    Fieldpoint hardware

    Hi,
    You should be more specific, what kind of hardware you are using ???
    Which kind of pulse you are measuring ?? You are saying that you want to count a number of pulses and then when you get to a limit (which will be between 3 and 10) you want to output a pulse ?
    Andre Oliveira

  • Hello, I trying to create a program that would run a household furnace. I can't find a way to set timers for the ignitor,flame sensor and blowers. Any thoughts.

    Hello, I'm trying to create a program that would run a household furnace. I can't find a way to set timers foe the ignitor,flame sensor and blowers. Any thoughts would be greatly appreciated. Thanks, primetime

    In the detailed help for the event structure there is a link to caveats and recommendations for using event structures.  It is a good starting point.
    It is courteous to let the Forum know when your questions are related to a school assignment or homework.  We are glad to help you learn LabVIEW, but do not do your homework for you.
    You have learned the major disadvantage of the sequence structure: It must run to completion before anything else can happen.
    If you are building a state machine (typically a while loop with shift registers enclosing a case structure with one case per state) and having trouble with timing, then think about your requirements. Apparently you have some time delays, but under certain conditions you must terminate a delay/wait and do something else.  One way of doing this is to have a Wait state.  The wait state has a short delay, determined by the minimum time you can delay responding to a changed condition, and a check to see if the required elapsed time has occurred.  If the time has not elapsed, the next state is the Wait state again.  The state machine can repeat any state as often as necessary.  So a 15 second delay could be implemented by going to a Wait state with a one second wait 15 times. Any error or new command will see a response in no more than one second.
    Lynn

  • How to create a program that will accept a series of strings of 0 and 1 onl

    how to create a program that will accept a series of strings of 0 and 1 only then displays 0 as 48 and displays 1 as 49.

    Isn't one thread enough for your homework?
    http://forum.java.sun.com/thread.jspa?threadID=5253850&messageID=10051155#10051155

  • Create a program that recognizes the human face , any API or idea?

    Hi , I try to create a program that recognizes the human faces, taking images from a webcam , but i don´t know how do it , any API or idea?

    shays wrote:
    sabre150 wrote:
    malcolmmc wrote:
    Don't be so negative.I can never understand why negative realism should be so looked down upon. I also can't understand why verbal abuse is looked down on when it can be taken so constructively. In fact I feel the same about physical abuse, why do people shy away from it when it clearly shows how we really feel. Who needs courtesy, it doesn't do anyone any good. And lets take off the turn signal on cars, I don't need some light to tell you that I am about to cut you off. And we should definitely use the car horn more often. Any time I see an ugly car I get right behind them and lay on the horn. What's wrong with that. ; )So you want me to be unrealistic? So you want me to be upbeat about the OP's chance of creating a face recognition program? So if I see you about to jump off a cliff you want me to say - go for it, it won't hurt much, you will gain much from the experience?
    And where was this verbal abuse? In reply #4 I was sarcastic (as you are in your post) but to my mind not abusive. In reply #6 I was critical of the OP's approach but to my mind not abusive.
    Get real.

  • How to create a program that accepts 5 digits from the user between 0 and 9

    how to create a program that accepts 5 digits from the user between 0 and 9 then put them in ascending order using link-list method..

    You can use a scanner to get user input from the command line.
    import java.util.*;
    public class Test {
        private List<Integer> list;
        private Scanner in;
        public static void main (String... args) {
            new Test ();
        public Test () {
            list = new LinkedList<Integer> ();
            in = new Scanner (System.in);
            for (int i = 0; i < 5; i ++) {
                System.out.format ("Please enter a number (%d more): ", (5 - i));
                list.add (in.nextInt ());
            Collections.sort(list, new Comparator<Integer> () {
                public int compare (Integer i1, Integer i2) {
                    return i2 - i1;
            System.out.println (list);
    }

  • Creating java program that orders 3 numbers in ascending order using if els

    Does anyone know what code to use for creating a java program that uses the if else operators to order 3 variables in ascending order?

    nar0122 wrote:
    correct on the homework assumption...you have a good nose...the thing is...i know i need to make an if statement saying if a is less than b, and a is less than c...print a first...but how do i get it to "print a" first? if a is less than c and b...and so on for b and c? sorry if that was confusing...
    int a = ..., b = ..., c = ...;
    if(a > b AND a > c) {
      print a
      if(b > c) {
        print b, print c
      } else {
        print c, print b
    etc.

  • Book & software advice for creating a program that would utilize USB.....

    Hey All,
    I've been a mac user for about two years now and have become more and more impressed by the stability offered by Unix.
    However, I still live in both worlds (XP and OSX) and my programming roots are windows based (sorry ).
    Here's the problem:
    I'm trying to determine which direction I should head for writing a program that gives me access to the USB ports on a Mac, and allows me to correlate it to a web atmosphere.
    My thoughts are: I'd have a device attached to a USB port (or multiple), and I'd use a system (OSX) USB driver to write to a database, in turn - use dreamweaver to build a WEB that interfaced with this database.
    I'm not sure what software I should use to write an app that can talk to my USB ports, as well as load them into a chosen database. I think once I have the data collected into a database, I can handle the WEB side of this, but I want to take this one step at a time.
    I installed Xcode and I was ready to take off when I said - "wait a minute, this isn't exactly visual studio." [even though it's somewhat similar]
    My programming background is in C++, VB and ASP (with VB script & Java Script) but I haven't written for about 3 years (hence the ASP and not ASP.net) - So feel free to steer me in the right direction or just give me a general verbal tirade and tell me I'm in over my head! LOL
    I've bounced all over these message boards, and see everything from opinions on Java, C, C++, even Python (which I never heard of until a post yesterday: http://discussions.apple.com/thread.jspa?threadID=133836&tstart=0)
    I'm asking for some advice on what books would be a good aid for me to purchase in order to help me achieve what I'm trying to do. I stopped in at my local Border's bookstore the other night, and there was quite an array to choose from.
    So here is what I almost picked up for a starter:
    http://www.amazon.com/gp/product/0764584111/103-2161547-3122203?v=glance&n=28315 5&n=507846&s=books&v=glance
    Any suggestions?
    Another major thought in my mind is the transition to little endian, which is what Intel uses (vs OSX big endian). Obviously, I don't want to get burned by this if I flip the wrong bit after the architecture changes....
    I realize I may have really 'broad brushed' this, but I really wanted to hear everyone's thoughts since there may be other 'projects' I attempt to tackle on OSX.
    Your suggestions on any books, sites, software, etc will be greatly appreciated......
    Thanks for reading,
    Steve
    Powerbook G4 1.5Ghz   Mac OS X (10.4.2)  
    Powerbook G4 1.5Ghz   Mac OS X (10.4.2)  

    To start learning about writing a USB device driver on OS X, check out:
    http://developer.apple.com/documentation/DeviceDrivers/Conceptual/IOKitFundament als/

  • I'm creating a program that caluclates the area of a triangle & rectangle

    Hi. I am reposting this topic in order to post it correctly. I will begin with my questions. I am to ask user to enter either rectangle or triangle to find the area of shape or to hit X to terminate the program. Have I coded this correctly? I am to use while and if loops which calls methods from CalculateAreaOfShapes. I have not attempted the if loops because I'm just not sure how to do them. If someone could give me some suggestions I'd apppreciate it. Next, if user enters Rectangle, I am to call calculateAreaOfRectangle() Have I coded this correctly? Also, If user enter Triangle, I am to call calculateAreaOfTriangle() Have I coded this correctly? The program should not terminate until X is entered. My code goes as follows:
    import java.util.Scanner;
    public class ModifiedTestCalculateAreaOfShapes
         public static void main(String[] args);
              Student Royce = new Student();
              //call student class's print method from student
              Royce.printMyInfo();
              //Welcome to Royce's modified TestCalculaterAreaOfShapes Program!
              System.out.println("Welcome to the Royce ModifiedTestCalculate area program");
              System.out.println("Please enter t to calculate area of triangle or r rectangle");
             //create a Scanner object name sc
              Scanner sc = new Scanner(System.in);
             //modifing this assignment so that the user has a choice until choice isn't equal to "r" or "R", or "t" or "T".
             String choice = ("y");   //Declare the variable to hold the name
             while(!choice.equalsIgnoreCase ("x"));   //Begin program loop
                  //get the users choice "t" or "r"
                   System.out.print ("Enter (t/r): ");
                   String user = sc.next();
                    System.out.print("Enter shape: ");
                    double shape = sc.nextShape();
                    System out.println("Please enter t to calculate area of triangle, r for recctangle or x to quit\n")
                    //Asking the user to make a choice.
                              //create a Scanner object for if statements/
                              if(choice1.equals("t"))  //If choice is t then call calculateAreaOfShapes for my code
                                              //calculate the area of a Rectangle and a Triangle
                                            CalculateAreaOfShape.Shapes = new CalculateAreaOfShapes();
                                            double TriangleArea = Shapes.calculateAreaOfTriangle(height*base)/2
                                            else if(choice1.equals("r"));
                                                      double RectangleArea = Shapes.calculateAreaOfRectangle(height,width);
                             //display the area for each
                             String message = "Area for triangle: " + areafortriangle + "\n"
                                               + "Area for rectangle:" + areaforrectangle + "\n"
                                               + "Total area:        " + total + "\n";
                             System.out.println(message);
                             //see if the user wants to continue
                             System.out.print(Continue? (r/t): "){code}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    No, let's continue in your original thread:
    [http://forums.sun.com/thread.jspa?threadID=5390499]

  • Create a program that can be monitored by JCmon

    Hi,
    I'd like to use JCmon to monitor (start-stop) a program of mine.
    May anyone tell me what is needed? (implement interfaces, create configuration files...)
    Regards
    Yann

    no, the headers, here's a picture of the headers on this page. When I use SEO for Firefox, it sees them on every other page but never on my iweb sites.
    Quickpost this image to Myspace, Digg, Facebook, and others!

  • I'm trying to create a program that will allow me to collect data from a Luxtron thermometr​y system. How can I do this?

    I'm a little confused as to how to write to the machine and how to retrieve data from the machine. I'm unsure of requested byte size and string to write specifically. This machine also has 4 probes, so it can record 4 temperatures simultaneously. How can I reflect this in the waveform chart?

    There are example VI's in LV on Instrument Connectivity. If you go to the Help menu >> Examples.. >> I/O, you will see a couple; and Examples.. >> Fundamentals for File and String manipulation. I would suggest tweaking them to suit your application. Also the specific command that your instrument responds to can be found from it's manual.
    You could find a driver for this instrument at http://www.ni.com/devzone/idnet/default.htm . If it's not listed there, it leaves you with one of a couple options. First, I would like you to submit a request for this driver at: http://zone.ni.com/idnet97.nsf/instrumentdriverreq​uest/
    We develop drivers based on demand and popularity so the more requests we have for it, the greater the possibility that we will develop one.
    If y
    ou would like to try developing your own instrument driver (or modify the existing one), we have documentation, model instrument drivers, and driver templates to help at :
    http://www.ni.com/devzone/idnet/development.htm
    We also have a syndicate of third party vendors that specialize in National Instruments' products and services. Some of the vendors specialize in driver development. I would suggest contacting one of the Alliance members at:
    http://www.ni.com/alliance
    Some useful resources for your application are
    ni.com > NI Developer Zone > Development Library > Instrument Connectivity
    http://search.ni.com/?col=alldocs&layout=TechResou​rces&ql=a , to search examples and knowledge bases
    Hope this helps.

  • How to create a program that enable peer-to-peer connection

    I'm currently doing a college project which is a instant messenging system. The system will have the client-server network and peer-to-peer network. The client-server network part has been finished but i still facing the problem to write the code to enable two pc communicate with each other by using a server that use in the client-server part .
    I very hope someone can help me.
    thank you!

    Hi,
    I think that i can help u in this respect.
    Let me see what you are suggesting.
    You have two or more servers which need to be aware of on another.
    you have clients which can be connecting on any of the servers.
    you need these clients to be aware of each other.
    well....to do this you need to take a lot of factors into account.
    1. you can use a central server and redirect accordingly.
    2. use distributed servers.
    this is the more difficult part as you need to keep track of the server timezone.
    you need to keep track of the up and downtime of your servers.
    when servers are up or down you need to distribute clients accordingly.
    The second approach is more robust and known better as load balancing.
    Regards,
    myraid

  • How to make a Java program that recognises a function of two variables...

    How to make a Java program that recognises a function of two variables to assign values to that?
    First I will give an example and then do the question.
    Ex1.
    We have any function, eg.y = x ^ 2 + 1 (read 'y' equals 'x' high to the square), a function of the second degree.
    To build the graph of this function attach values to 'x' to find the values of 'y'
    And thus mount the pair ordered (x, y) which represents a point on the Cartesian plane.
    Assigning values to 'x' 'we can build up a table that gives us the pairs ordered:
    We can use any numbers, but arfer interval [-3.3]
    X | y = x ^ 2 + 1
    -3 | Y = (-3) ^ 2 +1 = 10
    -2 | Y = (-2) ^ 2 +1 = 5
    -1 | Y = (-1) ^ 2 +1 = 2
    0 | y = (0) ^ 2 +1 = 1
    1 | y = (1) ^ 2 +1 = 2
    2 | y = (2) ^ 2 +1 = 5
    3 | y = (3) ^ 2 +1 = 10
    We then ordered the pairs:
    (-3.10), (-2.5); (-1.2), (0,1), (1,2), (2,5), (3,10)
    Tabem that can be represented by a table:
    X | y
    -3 | Y = 10
    -2 | Y = 5
    -1 | Y = 2
    0 | y = 1
    1 | y = 2
    2 | y = 5
    3 | y = 10
    Now I begin to explain my doubts.
    See this program:
    Ex2
    * To change this template, choose Tools | Templates
    * And open the template in the editor.
    Encontrando_o_valor_de_y package;
    * @ Author des Soldat Gottes
    Import javax.swing.JOptionPane;
    Public class (Main
    * @ Param args the command line arguments
    Public static void main (String [] args) (
    Int x, y;
    String x1;
    X1 = JOptionPane.showInputDialog ( "We have the function y = x + 1 \ n" +
    "Assign a value for 'x',"); / / receives a value for the function y = x + 1
    X = Integer.parseInt (x1); / / tranforma String in int
    Y = x + 1; / / receives the value of 'x' and calculates' y '
    JOptionPane.showMessageDialog (null, "The value of 'y' is: \ t \ t" + y);
    / / Displays the value of 'y'
    System.exit (0);
    We see that the program receives above a value for 'x' and replaces the function contained in the program, y = x + 1, and so is the value of the variable 'y'.
    In: x1 = JOptionPane.showInputDialog ( "We have the function y = x + 1 \ n" +
    "Assign a value for 'x',");
    The entry is a number and that number is assigned aa ja existing function in the (y = x + 1).
    The question is: would it be possible to come to a function?
    Ex: the program ask: DIGITE THE FUNCTION?
    The USUARIO DIGITARIA A FUNCTION ANY, TYPE: y = x ^ 2 +1
    The program would recognize the function and give numerical values to that function as Ex1, at the beginning of this text.
    And then to find the values of the x and y launch a table.
    It would be possible that?
    By invez of entering with a number so that the program sustitua a function ja existing as Ex2, seen above, entering with a function quaquer (type: y = x ^ 2 +1) for the program atribuisse values to that function and then create a table of values as Ex1.
    I hope it has been easier to understand my doubts now.
    Thank you for your attention!
    God bless!

    rafaelmenezes wrote:
    Thanks for the explanation, could understand what fly said.
    But as it applied to a program?
    How to create a program that recognizes that the entry coefficients?Are you asking about how to parse out the coefficients from the string "3x^4 + 4x^3 - 8x^2 + 5x^1 + 2x^0"? If you define the format to strictly follow that example, this should get you started:
    Strip out the spaces
    Split the String on "x^"
    That should give you [3, 4+4, 3-8, 2+5, 1+2, 0]
    Split each resulting String on "+ | -", preserving the operator as a token so you can apply the correct sign to the coeff.
    That should leave you with [3, 4, +, 4, 3, -, 8, 2, +, 5, 1, +, 2, 0]. Every other number is a coeff, the rest are the degrees.
    You can strip out the +, since those coeffs are already positive, and strip out the - after negating the following number. This is all assuming that you have to write this yourself. There is no doubt already a library or 5 out there that does this for you.

  • ABAP Program that generates XML and calls an XSLT transformation,

    Hello,
    I am creating a program that creates some XML output, and I am using STRANS to create a transformation.
    The file created looks like below before transformation.
      <?xml version="1.0" encoding="utf-8" ?>
    - <asx:abap xmlns:asx="http://www.sap.com/abapxml" version="1.0">
    - <asx:values>
    - <EMPLOYEE_DATA>
    - <item>
         <EMPLOYEE_ID>00000010</EMPLOYEE_ID>
        <FIRSTNAME>Joe</FIRSTNAME>
        <SURNAME>Bloggs</SURNAME>
        <DOB>1940-11-10</DOB>
        <SALARY>200000.0</SALARY>
      </item>
    <item>
      <EMPLOYEE_ID>00000055</EMPLOYEE_ID>
      <FIRSTNAME>Lydia</FIRSTNAME>
      <SURNAME>Jones</SURNAME>
      <DOB>1965-03-09</DOB>
      <SALARY>90000.0</SALARY>
      </item>
      </EMPLOYEE_DATA>
      </asx:values>
      </asx:abap>
    I want to make EMPLOYEE_ID  an attribute like in the following
    and what I want to output is:
      <?xml version="1.0" encoding="utf-8" ?>
    - <asx:abap xmlns:asx="http://www.sap.com/abapxml">
    - <asx:values>
    - <EMPLOYEE_DATA>
    - <EMPLOYEE_DETAILS EMPLOYEE_ID="00000010">
       <FIRSTNAME>Joe</FIRSTNAME>
       <SURNAME>Bloggs</SURNAME>
       <DOB>1940-11-10</DOB>
       <SALARY>200000.0</SALARY>
      </EMPLOYEE_DETAILS>
    <EMPLOYEE_DETAILS EMPLOYEE_ID="00000055">
        <FIRSTNAME>Lydia</FIRSTNAME>
        <SURNAME>Jones</SURNAME>
        <DOB>1965-03-09</DOB>
        <SALARY>90000.0</SALARY>
        </EMPLOYEE_DETAILS>
        </EMPLOYEE_DATA>
      </asx:values>
      </asx:abap>
    the XSLT I have cureently produces:
      <?xml version="1.0" encoding="utf-8" ?>
    - <asx:abap xmlns:asx="http://www.sap.com/abapxml">
    - <asx:values>
    - <EMPLOYEE_DATA>
    - <EMPLOYEE_DETAILS EMPLOYEE_ID="00000010">
      <EMPLOYEE_ID>00000010</EMPLOYEE_ID>
      <FIRSTNAME>Joe</FIRSTNAME>
      <SURNAME>Bloggs</SURNAME>
      <DOB>1940-11-10</DOB>
      <SALARY>200000.0</SALARY>
      </EMPLOYEE_DETAILS>
    - <EMPLOYEE_DETAILS EMPLOYEE_ID="00000038">
      <EMPLOYEE_ID>00000038</EMPLOYEE_ID>
      <FIRSTNAME>Fred</FIRSTNAME>
      <SURNAME>Johnson</SURNAME>
      <DOB>1960-12-11</DOB>
      <SALARY>123450.0</SALARY>
      </EMPLOYEE_DETAILS>
    - <EMPLOYEE_DETAILS EMPLOYEE_ID="00000055">
      <EMPLOYEE_ID>00000055</EMPLOYEE_ID>
      <FIRSTNAME>Lydia</FIRSTNAME>
      <SURNAME>Jones</SURNAME>
      <DOB>1965-03-09</DOB>
      <SALARY>90000.0</SALARY>
      </EMPLOYEE_DETAILS>
      </EMPLOYEE_DATA>
      </asx:values>
      </asx:abap>
    But it is repeating the Employee_ID, I want it to start from Firstname, the XSLT I have is:
    <xsl:transform xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:sap="http://www.sap.com/sapxsl" version="1.0">
      <xsl:strip-space elements="*"/>
      <xsl:template match="node()">
        <xsl:copy>
          <xsl:apply-templates select="node()"/>
        </xsl:copy>
      </xsl:template>
      <xsl:template match="item">
        <EMPLOYEE_DETAILS>
          <xsl:attribute name="EMPLOYEE_ID">
            <xsl:value-of select="EMPLOYEE_ID"/>
          </xsl:attribute>
          <xsl:apply-templates select="node()"/>
        </EMPLOYEE_DETAILS>
      </xsl:template>
    </xsl:transform>
    How do I get it to start from the next node?
    Thanks

    Hi
    I am also trying the similar kind of requirement.
    I am trying to convert XML file in to ABAP using transformations.
    Problem
    When I am trying to execute the Transformation (Selection is Transformation name, Source File Path) using STRANS it is giving the bellow message.
    XSLT Tester                                                                               
    Runtime Errors                                                                               
    Reason          : No valid XSLT program supplied 
    Could you please guide me how to test the Transformation using STRANS
    Thanks
    Nikhil.B

  • Help writing a program that uses Add/Remove programs

    Hey everyone,
    I'm trying to create a program that will utilize add/remove programs to repair an installation of a program. Specifically I'm trying to write something that will help automate repairs of QuickBooks installations. I've tried using Filemon to figure out what executables I might need to call and I've searched high and low in the forums and Google for help but I'm not getting anywhere. Is there some sample code out there that shows you how to work with the Add/remove programs screen and the programs in it?
    Thank you for any help you all can provide me.

    [email protected] wrote:
    It might be possible if you use the JNI, ** ouch ** That's going to hurt.
    but more than likely, Java is a poor choice for the program that you're trying to write.I'll second that. You might want to try C# if you want to write a more Windows-centric program. Its syntax is extremely similar to Java's (I wouldn't say that it was ripped-off of Java, but you could say that probably and not be wrong). But it is a powerful language with a rich library and would interact with the Windows libraries much more readily than java would.

Maybe you are looking for