Required help with writing to a file.. urgent plz help

Hello Everyone, 
                         I am using the following code to write data to a particular file.. 
I have 2 wfms, pressure and torque, the pressure is a simple one...
THe torque is bit complex, the operator has to press the "Start/Stop Torque DAQ" button and then select a filename... Next, he has to press the "Run/Stop Test"
button to finish 1 set of test and then write to the next available file name without pressing anything else... 
I tried connecting an OR gate to the enable/reset ports, but it didn't work... Can anyone please suggest me how to do this??
Now on LabVIEW 10.0 on Win7
Attachments:
RCD_v002.vi ‏129 KB

Hh Crack Jack,
Try this...
<<Kudos are welcome>>
ELECTRO SAM
For God so loved the world that he gave his one and only Son, that whoever believes in him shall not perish but have eternal life.
- John 3:16

Similar Messages

  • Help with writing a batch file

    Hi :
    does anyone know anyplace online that I can get help in writing batch files?? I have never worked much with batch files before....
    any help is greatly appreciated
    thnx

    I suppose, since you're in a Java forum, you need batch files to load java applications.
    If you use windows :
    go to ms console (start/run/"cmd")
    type edit mybatch.bat
    write your command to load a java application, something like
    java myclass.class
    save and exit.
    Be sure the bat file and the class are in the same folder.
    And make certain you've set the classpath, and path variables correctly.
    If this was what you needed and you need more help just ask.
    (In this case it could be better to make executable jars)
    If you wanted to know about linux batches, it works pretty the same way.

  • Help with writing, reading a file...

    I'm writing a program that writes a number to a file and then reads it again each time it is loaded. It's like a counter, the number starts out being 0, then when the program is run again the number will be two, and so on and so on. I've never been good with writing incrementer type things and files, so could you help me out? Remember, the program writes a single number to the file, and then adds one to that number each time the program is run, so it starts at zero and goes up by one each time it is run.
    -Thanks... I just came back from vacation and my Java skills are somewhat lacking :P

    open old file -> get the number -> create a new file -> write new number

  • Help with writing to a file

    First off...I'm just a student so please bear with me...
    I'm having problems with the following bit of code. I don't seem to be understanding the correct way to write to a file. It's not a complete program and my drop down box isn't set up to write yet...but I'm just trying to get SOMETHING as output to the file. Any help is appreciated! Here's my code:
    Mid-Term Test
    Programmer: Abraham Violett
    Date: 8-12-04
    Filename: MowersInc.java
    Purpose: This will be a data entry and retrival system
    for a
    small lawn mowing company.
    import java.io.*;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class MowersInc extends JFrame implements ActionListener
    JLabel blankLabel = new JLabel("");
    JLabel titleLabel = new JLabel(" Mowers Incorporated");
    JLabel firstNameLabel = new JLabel("First Name:");
    JTextField firstNameTextField = new JTextField(15);
    JTextField lastNameTextField = new JTextField(15);
    JLabel lastNameLabel = new JLabel("Last Name:");
    JComboBox lawnSizeCombo = new JComboBox();
    JButton submitInfoButton = new JButton("Submit");
    JButton clearInfoButton = new JButton("Clear");
    DataOutputStream output;
    public MowersInc()
    super("Mowers Inc.");
    try
    output = new DataOutputStream(new FileOutputStream("customers.dat"));
    catch(IOException io)
    JOptionPane.showMessageDialog(null, "Could not create storage location.", "Error", JOptionPane.INFORMATION_MESSAGE);
    System.exit(1);
    setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    public void actionPerformed(ActionEvent e)
    String arg = e.getActionCommand();
    int fee;
    if (e.getSource() == lawnSizeCombo)
    switch (lawnSizeCombo.getSelectedIndex())
    case 0:
    fee = 50;
    break;
    case 1:
    fee = 75;
    break;
    default:
    break;
    if(arg == "Submit")
    try
    output.writeUTF(firstNameLabel.getText());
    output.writeUTF(lastNameLabel.getText());
    catch(IOException io)
    JOptionPane.showMessageDialog(null, "Could not create storage location.", "Error", JOptionPane.INFORMATION_MESSAGE);
    System.exit(1);
    public Container createContentPane()
    lawnSizeCombo.addItem("Please select Lawn Size...");
    lawnSizeCombo.addItem("Lawn less than 1000 sq/ft.");
    lawnSizeCombo.addItem("Lawn more than 1000 sq/ft.");
    lawnSizeCombo.addActionListener(this);
    JPanel mainPanel = new JPanel();
    mainPanel.add(titleLabel);
    mainPanel.add(blankLabel);
    mainPanel.add(firstNameLabel);
    mainPanel.add(firstNameTextField);
    mainPanel.add(lastNameLabel);
    mainPanel.add(lastNameTextField);
    mainPanel.add(lawnSizeCombo);
    mainPanel.add(blankLabel);
    mainPanel.add(submitInfoButton);
    mainPanel.add(clearInfoButton);
    lawnSizeCombo.setToolTipText("Select the appropriate lawn size from this list.");
    mainPanel.setLayout(new FlowLayout());
    //mainPanel.setLayout(new GridLayout(6, 2, 10, 10));
    return mainPanel;
    public static void main(String args[])
    MowersInc test = new MowersInc();
    test.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    test.setContentPane(test.createContentPane());
    test.setSize(200, 215);
    test.setVisible(true);
    //lawnSize.addItem("Less than 1000 sqr/ft.");
    //lawnSize.addItem("More than 1000 sqr/ft.");
    }

    Use a program development method called Stepwise
    Refinement. Start out with a small working program.
    Then expand it little by little and in each step make
    sure that it works and you understand why. Very soon
    you have a big working program. Try it, it always
    works -:)Pay heed to UlrikaJ -:) sweety's advice, you'll be happy! ;-)
    UlrikaJ cutie would you like to go out with me someday? : )

  • Need help with writing to a file

    I am writing a program that is a file sharing program where i read in bytes from a socket in a BufferedReader into a char[]. Then i want to write to a file using FileOutputStream which only lets me write with a byte[]. Is there a way to read in the info into a byte[] rather a char[]?

    may be this code helps
    import java.io.*;
    public class cp
            public static void main(String args[])
                    try
                    File my=new File("source.txt");
                    FileReader fr=new FileReader(my);
                    BufferedReader br=new BufferedReader(fr);
                    String a;
                    FileWriter fw=new FileWriter(args[5]);
                    while((a=br.readLine())!=null)
                            System.out.println(a);
    fw.write(a);
    fw.close();
                    }catch(Exception e){}

  • Need help with ending of payment enrollment. Plz help as soon, as you can.

    Hello, I bought a subscription for the iOS Developer, 11.03.13 deducted from my credit card $ 99. But the subscription has not joined. I received several letters, one of them written order number, but I can not see this number in your account - says error. Order No. 2442140328. Please help urgently to complete the process of registration and let me start downloading my app.
         P.S.Adj text messages. Do not rule out the possibility that the activation email just did not happen.
    Thank you for your order.
    We’ll let you know when your items are on their way.
    Items to be Shipped
    Shipment 1                         Available to ship within 24 hours via email
    by Standard Shipping
                                                    IOS DEVELOPER PROGRAM                                                                                       $99,00
    Shipping Address                            Yaroslav Tretyakov/Andrey Tretyakov
    52 Udaltsova str., app. 6
    Moscow 77 119607
    Russian Fed.                                                  
    Payment
    Billing Contact                   Yaroslav Tretyakov/Andrey Tretyakov
    [email protected]
    Billing Address                  52 Udaltsova str., app. 6
    Moscow 77 119607
    Russian Fed.
                                    Subtotal              $99,00
    Free Shipping    $0.00
    Estimated Tax   $0,00
    Order Total         $99,00
    INVOICE RECEIPT
    Dear Apple Customer,
    Thank you for shopping at the Apple Store!
    If you have already paid for your purchase, please retain this invoice receipt
    for your records.
    If you need to send payment to Apple, please reference Apple's Invoice Number on
    your remittance. After remitting payment, please retain this invoice receipt for
    your records.
    Invoice Number:          4236349073
    Invoice Date:            04/11/13
    Reference Date:          04/11/13
    Amount Due:              .00
    Customer P.O. Number:    79859994401
    Sales Order Number:      2442140328
    Customer Number:         900001
    Terms:                   Credit Card
    Sold To:                                 Ship To:
    Yaroslav Tretyakov/Andrey                Yaroslav Tretyakov/Andrey
    Tretyakov                                Tretyakov
    52 Udaltsova str., app. 6                52 Udaltsova str., app. 6
    119607 MOSCOW                            119607 MOSCOW
    RUSSIAN FED.                             RUSSIAN FED.
    Item Product Product Description Total   Total   Unit Extended
          Number                              Ordered Shipped Price      Price
    001 D4521G/A  IOS DEVELOPER PROGRAM     1       1 99.00      99.00
    Subtotal                 99.00
    Tax                       0.00
    Shipping Charges
    TOTAL USD               99.00
    Salesperson Contact Entry Date Ship Date Routing
    900001 BD      04/11/13             Best Way
          Your Visa xxxx1634 has been charged   $ 99.00
          For a total of*********$                  99.00
    Answers to many questions about Apple Store orders can be found in the online
    Customer Service section.  Visit http://store.apple.com/ and click "Customer
    Service" in the navigation bar near the top.
    If you have a question about an iTunes Store gift certificate purchase that was
    made through the Apple Store, please visit the online Help section for the iTunes
    Store at http://www.apple.com/support/itunes/musicstore/musiccard/.
    If you require assistance beyond what is available online, please contact the
    iTunes Store Team using the email forms available in the Help section.

    Here is the link (at the bottom of the page there is a button) https://developer.apple.com/support/ios/enrollment.html When I click on it, I get redirected to the previous page https://developer.apple.com/contact/
    Here is a link that sent me an e-mail to track order status. (Order No. 2442140328)https://secure2.store.apple.com/us/order/guest/2442140328/119607
    I understand that it is not necessary to speak the information, but I'm in a desperate situation.

  • Help with writing .bashrc file

    I would like help with writing a .bashrc file.
    The only thing I want right now is colored output and slashes for directories like what "ls -GF" does -- for each new terminal window.
    Can you guys give me a hand?
    Running Mac OS 10.4.6. Bash is default shell.
    Thanks.

    Hi Paul,
       You can get Apple's "ls" command to always output color with the following in your .bashrc:
    export CLICOLOR=""
    You can have an effect on the colors used with settings like the following:
    export LSCOLORS="gxfxcxdxbxegedabafacad"
       I have a color prompt in my bash startup scripts, bashrc.tgz. If you unpack the tarball in the root of your home directory, the files will be put in a ~/Library/init/bash directory. The file named "prompt" sets the color prompt string.
    Gary
    ~~~~
       I know you think you thought you knew what you
       thought I said, but I'm not sure you understood what
       you thought I meant.

  • Help with writing and retrieving data from a table field with type "LCHR"

    Hi Experts,
    I need help with writing and reading data from a database table field which has a type of "LCHR". I have given an example of the original code but don't know what to change it to in order to fix it and still read in the original data that's stored in the LCHR field.
    Basically we have two Function modules, one that saves list data to a database table and one that reads in this data. Both Function modules have an identicle table which has an array of fields from type INT4, CHAR, and type P. The INT4 field is the first one.
    Incidentally this worked in the 4.7 non-unicode system but is now dumping in the new ECC6 Unicode system.
    Thanks in advance,
    C
    SAVING THE LIST DATA TO DB
    DATA: L_WA(800).
    LOOP AT T_TAB into L_WA.
    ZDBTAB-DATALEN = STRLEN( L_WA ).
    MOVE: L_WA to ZDBTAB-RAWDATA.
    ZDBTAB-LINENUM = SY-TABIX.
    INSERT ZDBTAB.
    READING THE DATA FROM DB
    DATA: BEGIN OF T_DATA,
                 SEQNR type ZDBTAB-LINENUM,
                 DATA type ZDBTAB-RAWDATA,
               END OF T_TAB.
    Select the data.
    SELECT linenum rawdata from ZDBTAB into table T_DATA
         WHERE repid = w_repname
         AND rundate = w_rundate
         ORDER BY linenum.
    Populate calling Internal Table.
    LOOP AT T-DATA.
    APPEND T_DATA to T_TAB.
    ENDLOOP.

    Hi Anuj,
    The unicode flag is active.
    When I run our report and then to try and save the list data a dump is happening at the following point
    LOOP AT T_TAB into L_WA.
    As I say, T_TAB consists of different fields and field types whereas L_WA is CHAR 800. The dump mentions UC_OBJECTS_NOT_CONVERTIBLE
    When I try to load a saved list the dump is happening at the following point
    APPEND T_DATA-RAWDATA to T_TAB.
    T_DATA-RAWDATA is type LCHR and T_TAB consists of different fields and field types.
    In both examples the dumps mention UC_OBJECTS_NOT_CONVERTIBLE
    Regards
    C

  • I have Firefox 10.0.2. and OSX 10.6.8. and the latest PDF adobe reader, and still can not open with the browser PDF files.Can someone help,pls?Thanx

    Dear Ones,
    I have Firefox 10.0.2. and OSX 10.6.8. and the latest PDF adobe reader, and still can not open with the browser PDF files.Can someone help,pls?Thanx

    see if this is helpful : [http://support.mozilla.org/en-US/kb/Opening%20PDF%20files%20within%20Firefox Opening PDF files within Firefox]
    thank you
    Please mark "Solved" the answer that really solve the problem, to help others with a similar problem.

  • Help with writing a formula

    Hi all,
    I am creating a report, and need help with writing a formula...
    I am creating a report that shows how many visits/touches our reps have made to various grade accounts. It is broken down by calendar week, and I currently have a weekly "goal" number set that the reps have to meet. That "goal" number increases each week to keep a running total. (example: week 1: 7, week 2: 14, week 3: 21)
    I have created some different formulas and one is this:
    SUM("Activity Metrics"."# of Activities" BY Date."Calendar Week")
    What this shows me is how many "visits" there are per calendar week to customers, however it show me the total for all reps per week.
    What I need is that total to show, but totaled for each rep individually.
    What I was trying is this:
    SUM("Activity Metrics"."# of Activities" BY Date."Calendar Week") BY Employee."Employee Name"
    But...I keep getting an error.
    Any suggestions?
    I have the reporting book by Lairson, and have been referring to it...but my brain at this point is fried.
    Thanks in advance for any help...(please forgive...I am new to OnDemand, and I am sure this is easy)

    Thanks for helping!
    I created this formula as a column: SUM ("Activity Metrics"."# of Activities" BY Date."Calendar Week"), it is called "total number of visits per week" and it shows the totaled number of visits that all the reps have done per calendar week. For example: Week 1: 10 visits, Week 2: 37 visits, Week 3: 20 visits.
    What I would like to do is take that column and break it down further, to show instead how many visits per week by sales rep there have been
    So what I was trying was to take the "total number of visits per week" (SUM ("Activity Metrics"."# of Activities" BY Date."Calendar Week")) and use "Activity Owner" (Employee."Employee Name") to break it down further.
    What I need to use is the total number of visits each rep has per calendar week.
    I think I am getting the error because you can't use "BY" twice in a formula?

  • Help with converting a Nero file

    I have previously converted a dvd insert designed with Nero into a pdf using adobe acrobat in order to send to someone else.  When I tried to do the same thing today with a new Nero designed insert the conversion wouldn't work.  The message said adobe didn't support the program that created the file.  Any ideas?

    thanks for your response.
    When I create a dvd insert or cd label etc using Nero the file extension is nct - nero cover template.  The printer wants the file as a pdf as he can't open Nero files.  I have version 9.3 of acrobat.
    Date: Mon, 18 Jan 2010 21:43:47 -0700
    From: [email protected]
    To: [email protected]
    Subject: help with converting a Nero file
    Nero is simply a CD/DVD burning application and should have no effect on the type of files that will eventually be on the CD/DVD.
    What type of files are you trying to convert and exactly how are you trying to convert them? Plus, it would help to know the version of Acrobat you are using.
    >

  • I had to put my computer by together without migration or time machine I NEED help with order of the files?

    I had to put my computer by together without migration or time machine I NEED help with order of the files?

    Hi, where are these other files exactly?

  • How to install adapters in pi 7.0 ex(tibco adapter) its urgent plz help

    hi  friends
                   can any one help me how  to insatlll  the tibco adapter in pi 7.0 its urgent plz help
    thanks in advance
    bye
    raja

    Hi Raj,
    Is  your Sender System  Tibco If  so  Use  JMS Adapter  to get  the Data from tibco  and Use  IDOC  Adapter  to Post  in R3. For this you no need to Install any Adapter in XI System.
    Similar discussions ,
    XI integration with Tibco
    XI Integration with Tibco EMS (Using JMS Adapter)
    Regards
    Agasthuri Doss

  • Require help with converting a wim file to a vhd file using WIM2VHD

    I would like some assistance in learning to actually start the wim2vhd command line tool? I have been supplied an script to go with it but am unsure how to open the whole program? I am required to convert a wim file into a vhd file for a task on a project
    but cannot do so without this tool and am having troubles in struggletown trying to complete the task? have been trying to complete this for about a month with holidays in the middle.
    Any help is muchly appreciated.

    Wim2VHD is not a Windows 7 file, feature, nor utility.
    It is a utility supported by MSDN.  Suggest you find the appropriate MSDN forum to post in.  See info @
    http://archive.msdn.microsoft.com/wim2vhd about Wim2VHD.
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. ”

  • Help in writing to a file with newline facility

    I am using the RandomAccessFile class to write to a file.
    The content i am writing to the file is of the form
    KEY=VALUE.
    I am writing several key value pairs like this.
    Everytime I write a KEY=VALUE it should be in a new line.
    So, what should i do to write in a new line everytime.
    Please help.
    Thanks in advance.

    Well the square most likely is just a non-printable character. If you are on windows the line.separator is \r\n (0x13 and 0x10) some file editors show the \n as a "square" as the only expect a \r its just how you interpret the file.. you can't atually do anythign about it as it isn't "wrong" if you skip the \n some programs might not see it as a newline. If you add it some may display a square.. Its the great gift of different OS's using different line separators..
    HTH
    Lima

Maybe you are looking for

  • Is it possible to use one apple ID for my two private MacBooks?

    anybody there who can answer this question right now? Thanks

  • How to create Hierarchies for a Dimension?

    Hi, How to create Hierarchies for a Dimension in Multidimensional Models? Could you please suggest some document provides step by step instructions to create Multidimensional Model? Thanks M Thiyagarajan

  • Adobe Reader 9.0 Won't Open

    Running windows vista home premium 64 bit  I was attemping to open a pdf file from a web page that I created approx 1 month ago.  I didn't see that and update had been completed, however I was running reader 9.0.  I for what ever reason was not able

  • Photo uploading error

    Dear Experts, When I try to upload the photo in trnx OAOH, I received the message Error: HTTP Access: IF_HTTP_CLIENT->RECEIVE 1 ICM_HTTP_CONNECTION_FAILED Could you help me? I need to upload the photo ASAP. Thank you for any information that help me.

  • LUMIA 620

    I am planning to buy  a lumia 620 but it is currently available only in black and white will i be able to buy the orignal backcase in some other colour afterwards n where can i buy it from