Read multiple axis status

The problem is the slowness of some commands in Labview 8.2 (winxp and PXI-8105 controller)
I am trying to control the speed of a three axis robot  using a PXI-7350 motion controller, but I need to update very fastly the control loop (1-2ms)
I found that the more time consuming functions are "read per axis status" and "load velocity".
These are probably the main issues to be considered
1. I need only to read the "motor off", "following error", "Move Complete" while the "read per axis status"returns many other variables.
2.  Both the vi must be called three times, one time for each axis.
Is it possible to build a single vi that, using a single command, queries the motion controller only for few specified variables and sets all the axis velocities?
In case, the variables are:
 "motor off"
 "following error"
"Move Complete"
"vector space position"
Thanks

The application is: to move the end effector as a function of an
analog feedback signal, avoiding auto-collision (like moving a robot
with a joystick).
The problem is that the signal is correlated to
the motor displacements via a unlinear process so the control board
cannot be configured using that signal. I have to measure the signal
and to calculate on the fly the velocities of the motor that make the
end effector follows the feedback signal. I need to optimize the
"control loop" in order to avoid vibrations, jitter and to permit the
PXI to make other things like data communication with other pc in the
network. Another important issue is the critical routine for
auto-collision avoiding: the robot must stop as soon as particular
combination of axes position occurs.
It's incredible, I
spent so much time in optimizing the kinematic calculations (a 9x9
non-linear sistem of equations solved in 2ms) and now I see that the
critical routine is the communication between PXI-controller and motion
controller!!!
(I know that the best solution would be to
build a motion controller by myself using a NI-FPGA device, but I
really don't know how to implement a matrix inversion calculation on a
FPGA processor...)
 Fabrizio Patanè

Similar Messages

  • Read per axis status / run-stop don't work at low speed

    Hello,
    This is my fisrt motion program. I don't understand why the "read per axis status" don't send me the correct status for "run/stop" (only this status) when I run a low speed. The other status are all right. Impultions are still generated (In realyty motor run...)
    I put a simple example to illustrate. Perhaps is it a wrong configuration in MAX but this seems unlikely. I can't join my Max config because ".nce" are not accepted in attached files.
    Thank you wery much
    Attachments:
    One-Axis Move (Accel - Max Velocity - Decel) with read status.vi ‏26 KB

    I realize this is an old post but wanted to post the solution in case others run across it.  The reason the indicator is not working at low speeds is because it operates on a threshold.  The default setting is for it to display false when running under 4000 steps or counts per second.  Refer to KnowledgeBase 4XHD6DZY: Why does my Run/Stop bit not appear active while my motor is running?
    Alex Person
    NI-RIO Product Support Engineer
    National Instruments

  • I need to read multiple counters using PCI 6601 can I do this, and How?

    I am reading 4 TTL signals from a Magnetic Pickup how do I read multiple channels using PCI 6601?

    Not concerning my primary question, I would like to point out to an N.I. Rep. that there is a typo in the help section concerning "posting a message".
    I have built a large format, two axis digitizer using linear encoders, a 6601 counter/timer, and labview 8. In building my application program, I  initially am using two daq assistants, with each set up to accomplish  the task of reading two encoders simultaneously. In doing some research, It has come to my attention, that, with my current configuration, errors may result, due to one daq assistant attempting to access the cards driver while the other is acquiring data.  All attempts to get two channels working through a single daq assistant have resulted in an error message informing me that I can only have one task per counter.Thus far, I have not seen any noticeable errors, thought I would like to have this device "rock solid", as it will be used extensively.
    Is it possible, that I should have purchase  an "S" series board instead?

  • Reading multiple channels for multiple graphs

    Hey I am fairly new to Labview and am using it just temorarily. My project is to take in readings from a Gaussometer (X,Y, and Z axis) and graph them in read time. The Gaussometer outputs a DC Voltage equal to the gauss of the magnetic field. The X,Y,Z all come in on three differnet channels. Connected to a NI USB-6009
    I know I can use the Express> DAQ Assistant, however that outputs "Data" and I was hoping to use this in an Array. So I used the DDT to Array to convert it to the Array format that I needed (thanks to the forums for the help there). My only problem is that I don't know how to do this with multiple channels at the same time. But I have possibly been going about this all wrong.
    So I just wanted to know if I could get some help on how to read multiple channels and write to them to three different graphs in real time that would be of great help.

    Whether or not you use the Convert From Dynamic Data or the Split Signal, your data should be shown as soon as the DAQ Assistant returns. How you format the data is irrelevant. If the number of samples you request is greater than the sample rate, then it will take longer to acquire the data and there is nothing you can do about that except reduce the number of samples and acquire in a loop. You can append new data to old and display everything in a graph if you want.

  • Read multiple rows to do aggregation

    Hi All
    I need some help here:
    1. I have to read multiple rows to check where time stamp is same for example rownum (1-3) : *'2013/03/09 10:54:09 PM'*
    2. And status is unique for example *(H,L)*
    3. And if TIME_STAMP is between TIME_A and TIME_B then flag it as Y else flag it as N.
    and if the above condition is not true then
    1. Flag the row with ' Y ' where time_stamp is same i.e. : '2013/03/09 10:54:09 PM'
    2. And the status is *( ' O ')*
    3. the other rows where time_stamp is same, and unique_id is same, and STATUS is either or both ( ' H ' , ' L ' ) flag it as *' N '*
    table structure:
    CREATE TABLE T2
      TIME_STAMP  DATE,
      STATUS      VARCHAR2(1 BYTE),
      UNIQUE_ID   NUMBER,
      TIME_A      DATE,
      TIME_B      DATE
    Insert statement;
    SET DEFINE OFF;
    Insert into T2
       (TIME_STAMP, STATUS, UNIQUE_ID, TIME_A, TIME_B)
    Values
       (TO_DATE('03/09/2013 22:54:09', 'MM/DD/YYYY HH24:MI:SS'), 'H', 6587797, TO_DATE('03/09/2013 23:00:22', 'MM/DD/YYYY HH24:MI:SS'), TO_DATE('03/09/2013 23:03:00', 'MM/DD/YYYY HH24:MI:SS'));
    Insert into T2
       (TIME_STAMP, STATUS, UNIQUE_ID, TIME_A, TIME_B)
    Values
       (TO_DATE('03/09/2013 22:54:09', 'MM/DD/YYYY HH24:MI:SS'), 'L', 6587797, TO_DATE('03/09/2013 22:48:35', 'MM/DD/YYYY HH24:MI:SS'), TO_DATE('03/09/2013 23:00:22', 'MM/DD/YYYY HH24:MI:SS'));
    Insert into T2
       (TIME_STAMP, STATUS, UNIQUE_ID, TIME_A, TIME_B)
    Values
       (TO_DATE('03/09/2013 22:54:09', 'MM/DD/YYYY HH24:MI:SS'), 'O', 6587797, TO_DATE('03/09/2013 23:03:00', 'MM/DD/YYYY HH24:MI:SS'), TO_DATE('03/09/2013 23:05:54', 'MM/DD/YYYY HH24:MI:SS'));
    Insert into T2
       (TIME_STAMP, STATUS, UNIQUE_ID, TIME_A, TIME_B)
    Values
       (TO_DATE('03/09/2013 22:54:57', 'MM/DD/YYYY HH24:MI:SS'), 'H', 6587797, TO_DATE('03/09/2013 23:00:22', 'MM/DD/YYYY HH24:MI:SS'), TO_DATE('03/09/2013 23:03:00', 'MM/DD/YYYY HH24:MI:SS'));
    Insert into T2
       (TIME_STAMP, STATUS, UNIQUE_ID, TIME_A, TIME_B)
    Values
       (TO_DATE('03/09/2013 22:54:57', 'MM/DD/YYYY HH24:MI:SS'), 'L', 6587797, TO_DATE('03/09/2013 22:48:35', 'MM/DD/YYYY HH24:MI:SS'), TO_DATE('03/09/2013 23:00:22', 'MM/DD/YYYY HH24:MI:SS'));
    Insert into T2
       (TIME_STAMP, STATUS, UNIQUE_ID, TIME_A, TIME_B)
    Values
       (TO_DATE('03/09/2013 22:54:57', 'MM/DD/YYYY HH24:MI:SS'), 'O', 6587797, TO_DATE('03/09/2013 23:03:00', 'MM/DD/YYYY HH24:MI:SS'), TO_DATE('03/09/2013 23:05:54', 'MM/DD/YYYY HH24:MI:SS'));
    Insert into T2
       (TIME_STAMP, STATUS, UNIQUE_ID, TIME_A, TIME_B)
    Values
       (TO_DATE('03/09/2013 18:26:55', 'MM/DD/YYYY HH24:MI:SS'), 'L', 6583483, TO_DATE('03/09/2013 18:15:51', 'MM/DD/YYYY HH24:MI:SS'), TO_DATE('03/09/2013 18:26:28', 'MM/DD/YYYY HH24:MI:SS'));
    Insert into T2
       (TIME_STAMP, STATUS, UNIQUE_ID, TIME_A, TIME_B)
    Values
       (TO_DATE('03/09/2013 18:26:55', 'MM/DD/YYYY HH24:MI:SS'), 'O', 6583483, TO_DATE('03/09/2013 18:27:01', 'MM/DD/YYYY HH24:MI:SS'), TO_DATE('03/09/2013 18:33:10', 'MM/DD/YYYY HH24:MI:SS'));
    COMMIT;
    Query used:
    SELECT time_stamp,
           UPPER (SUBSTR(status,1,1)) as status,
           Unique_ID,
           Time_A,
           Time_B,
           CASE
                WHEN time_stamp BETWEEN Time_A AND Time_B
              THEN
                   'Y'
              ELSE
                   'N'
             END   as flag
      FROM t2;
    the query provided above doesn't work with these rows:
    TIME_STAMP,                STATUS,     UNIQUE_ID,      TIME_A,                             TIME_B,                                    FLAG
    2013/03/09 6:26:55 PM,   L,              6583483,          2013/03/09 6:15:51 PM,     2013/03/09 6:26:28 PM,              N
    2013/03/09 6:26:55 PM,   O,              6583483,          2013/03/09 6:27:01 PM,      2013/03/09 6:33:10 PM,             N
    because here where time_stamp is same and time_stamp is not between time_a and time_b therefore it should be flagged Y on the row where status is *' O '*
    Edited by: 855161 on Apr 10, 2013 7:36 AM

    Hi,
    Sorry, it's unclear what you want.
    855161 wrote:
    Hi All
    I need some help here:
    1. I have to read multiple rows to check where time stamp is same for example rownum (1-3) : *'2013/03/09 10:54:09 PM'*
    2. And status is unique for example *(H,L)*
    3. And if TIME_STAMP is between TIME_A and TIME_B then flag it as Y else flag it as N.
    and if the above condition is not true then
    1. Flag the row with ' Y ' where time_stamp is same i.e. : '2013/03/09 10:54:09 PM'
    2. And the status is *( ' O ')*
    3. the other rows where time_stamp is same, and unique_id is same, and STATUS is either or both ( ' H ' , ' L ' ) flag it as *' N '*
    the query provided above doesn't work with these rows:
    TIME_STAMP,                STATUS,     UNIQUE_ID,      TIME_A,                             TIME_B,                                    FLAG
    2013/03/09 6:26:55 PM,   L,              6583483,          2013/03/09 6:15:51 PM,     2013/03/09 6:26:28 PM,              N
    2013/03/09 6:26:55 PM,   O,              6583483,          2013/03/09 6:27:01 PM,      2013/03/09 6:33:10 PM,             Nbecause here where time_stamp is same and time_stamp is not between time_a and time_b therefore it should be flagged Y on the row where status is *' O '*What are the complet, correct results you want from thissample data?
    Are they the same as what you are currently getting, except that the 2 rows above should have flag = 'O'?
    Why should the row that has status='L' get flag='O'?
    Why don't the other rows that currently have status='O' and flag='N' need to be changed?
    To see if there are other rows with the same time_stamp, you can use the analytic COUNT function, like this:
    SELECT time_stamp,
           UPPER (SUBSTR(status,1,1)) as status,
           Unique_ID,
           Time_A,
           Time_B,
           CASE
                WHEN time_stamp BETWEEN Time_A AND Time_B
                    THEN
                        'Y'
                WHEN  COUNT (*) OVER (PARTITION BY  time_stamp) > 1
             AND       UPPER (SUBSTR (status, 1, 1)) = 'O'
                 THEN
                  'O'
                    ELSE
                        'N'
             END   as flag
      FROM t2
    ORDER BY  time_stamp
    ,            status
    ;The results that this produces are :
    `                        UNIQUE
    TIME_STAMP           S      _ID TIME_A               TIME_B               F
    09-Mar-2013 18:26:55 L  6583483 09-Mar-2013 18:15:51 09-Mar-2013 18:26:28 N
    09-Mar-2013 18:26:55 O  6583483 09-Mar-2013 18:27:01 09-Mar-2013 18:33:10 O
    09-Mar-2013 22:54:09 H  6587797 09-Mar-2013 23:00:22 09-Mar-2013 23:03:00 N
    09-Mar-2013 22:54:09 L  6587797 09-Mar-2013 22:48:35 09-Mar-2013 23:00:22 Y
    09-Mar-2013 22:54:09 O  6587797 09-Mar-2013 23:03:00 09-Mar-2013 23:05:54 O
    09-Mar-2013 22:54:57 H  6587797 09-Mar-2013 23:00:22 09-Mar-2013 23:03:00 N
    09-Mar-2013 22:54:57 L  6587797 09-Mar-2013 22:48:35 09-Mar-2013 23:00:22 Y
    09-Mar-2013 22:54:57 O  6587797 09-Mar-2013 23:03:00 09-Mar-2013 23:05:54 OI don't think this is what you wat, but I'm not sure.
    Can you explain, in a different way than before, what flag is supposed to show? What role (if any) does the so-called unique_id play in this problem?

  • How to read open loop status on cFP-AO-200

    How to read open loop status on cFP-AO-200, i need to know which channels are open loop.
    Brad Whaley
    LabVIEW Certified Engineer

    If you are reading a multiple channel tag and one or more channels is(are) in an Open Loop condition, then you will receive a warning from the FP Read or FP Write. However, this warning simply tells you that one or more channels has reported an Open Loop condition. If you need to figure out which channel is specifically reporting the Open Loop condition, you have to read/write each channel individually to get the channel status for a particular channel.
    Regards,
    Aaron

  • Read multiple files and write data on a single  file in java

    Hello,
    I am facing difficulty that I want to read multiple files in java and write their data to a single file. Means Write data in one file from multiple files in java
    Please help me out.
    Naveed.

    algorithm should be something like:
    File uniqueFile = new File();
    for (File f : manyFilesToRead)
       while (readingF)
           write(dataFromF, intoUniqueFile);

  • Issue in reading multiple time properties file

    Use Case:
    I have a page in which i have to show some Outage Messages on page. So I have configured outage message in properties files. This message should me rendered each time when it finds that properties file in class path or it finds the values w.r.t their keys.
    So what I decide that I shall write java method and call this method on Loading the page but here what happen is that whenever that page is load each time that reader file will call , that will create memory leak .
    So, anyone help me on this. What will be the best approach for that reading multiple times properties file?
    I will be grateful for any help you can provide
    Thanks

    Hi,
    have a bean at applicationScope, somewhat like this
    import java.util.HashMap;
    public class ApplnProperties {
        private HashMap _propMap;
        public HashMap getPropMap() {
            if(_propMap == null){
                //read the properties file and populate _propMap
            return _propMap;
    }here we put condition _propMap == null so it would be called only once during application lifecycle.
    and on page you can refer the prop map like following
    #{beanName.propMap['KEY1']}Regards,

  • Read MULTIPLE idocs data with all sgmn to my internal table in a single

    Dear SAP Folks!
    I have a question, I know to read SINGLE idoc data with all segments, we have FM IDOC_READ_COMPLETELY but my requirement is to Read MULTIPLE idocs data with all segments to my internal table in a single shot without keeping this FM in loop! since it is performance issue, at a time i may want to read 1000 idocs data!
    Could anyone please let me know is there any way to get this, keeping mind of performance and any other FM?
    Best Regards,
    Srini

    Hi,
    I know idoc numbers and i can write a select Query to DB table EDID4 to get all segments data to my internal table. But i am looking for FM to do this. because i have too many number of idocs and each idoc is having many segments(I am thinking in performance point of view!) The FM IDOC_READ_COMPLETELY can accept only ONE IDOC number as import parameters at a time to get segment data. in similar way do we have any other FM? or other way? except select query to EDID4 table?
    Best Regards,
    Srini

  • How to read multiple Digital samples and plot a chart with time stamps

    Hi,
     Could anyone send me a code that:
    1. Reads 'multiple samples(lets say 4) from single digital input' 
    2. 'plot digital data as a chart with time stamps'
    3. Find frequency
    4. Log data into file with time stamps
    I have attached the code which i tried.
    Thanks,
    LK
    Attachments:
    DigitalNSample.vi ‏27 KB
    DigitalNSample.vi ‏27 KB

    Hi,
     Could anyone send me a code that:
    1. Reads 'multiple samples(lets say 4) from single digital input' using NI USB 6009 or NI USB 6251.
    2. 'plot digital data as a chart with time stamps'
    3. Find frequency
    4. Log data into file with time stamps
    I have attached the code which i tried.
    Thanks,
    LK
    Attachments:
    DigitalNSample.vi ‏27 KB

  • Read multiple text files

    Hi everyone out there,
    I would like to know how to read multiple files from same directory, but files hve different name, using java. Any help is appreciate, need asap..
    Thnx,

    I want to process all the files that are in the
    folder. Okay. This is the critical piece of information that you hadn't provided previously.
    And you saying using loop? how do you propose
    using loop for this?There are two different tasks: Identifying all the files, and processing each of them.
    You definitely need a loop for processing them. That's what loops are for--doing the same thing multiple times.
    You might or might not use a loop to identify the files.
    I see two main possible approaches:
    1) Provide the list of files as command line args when you start the VM, using your command shell's wildcard/globbing: java MyClass * Then inside your code: public static void main(String[] args) {
        for (int ix = 0; ix < args.length; ix++) {
            String fileName = args[ix];
            // process it
    } 2) Provide your class with the name of the directory you want to process (for instance as a command line arg). Create a java.io.File instance that corresponds to that directory. File has methods that list the files inside a diretory. Use that to get a list of the files, and run through that list.

  • Read multiple text files and sort them

    I am trying to read multiple text files and store the data from the file in vector.
    but for days. I am with no luck. anyone can help me out with it? any idea of how to sort them will be appreciated.
    Below is part of the code I implemented.
    public class packet {
        private int timestamp;
        private int user_id;
        private int packet_id;
        private int packet_seqno;
        private int packet_size;
        public packet(int timestamp0,int user_id0, int packet_id0,int packet_seqno0, int packet_size0)
            timestamp = timestamp0;
            user_id=user_id0;
            packet_id=packet_id0;
            packet_seqno=packet_seqno0;
            packet_size=packet_size0;
        public void setTime(int atimestamp)
            this.timestamp=atimestamp;
        public void setUserid(int auserid)
            this.user_id=auserid;
        public void setPacketid(int apacketid)
            this.packet_id=apacketid;
        public void setPacketseqno(int apacketseqno)
            this.packet_seqno=apacketseqno;
        public void setPacketsize(int apacketsize)
            this.packet_size=apacketsize;
        public String toString()
            return timestamp+"\t"+user_id+"\t"+packet_id+"\t"+packet_seqno+"\t"+packet_size+"\t";
    }Here is the data from part of the text files. ( the first column is timestamp, second is userid, third is packetid.....)
    0 1 1 1 512
    1 2 1 2 512
    2 3 1 3 512
    3 4 1 4 512
    4 5 1 5 512
    5 6 1 6 512
    6 7 1 7 512
    7 8 1 8 512
    8 9 1 9 512
    9 10 1 10 512
    10 1 2 11 512
    11 2 2 12 512
    12 3 2 13 512
    13 4 2 14 512
    14 5 2 15 512
    15 6 2 16 512
    16 7 2 17 512

    Here's a standard idiom for object-list-sorting:
    /* cnleafdata.txt *********************************************
    0 1 1 1 512
    1 2 1 2 512
    2 3 1 3 512
    3 4 1 4 512
    4 5 1 5 512
    5 6 1 6 512
    6 7 1 7 512
    7 8 1 8 512
    8 9 1 9 512
    9 10 1 10 512
    10 1 2 11 512
    11 2 2 12 512
    12 3 2 13 512
    13 4 2 14 512
    14 5 2 15 512
    15 6 2 16 512
    16 7 2 17 512
    import java.util.*;
    import java.io.*;
    public class Packet implements Comparable<Packet>{
      private int timeStamp;
      private int userId;
      private int packetId;
      private int packetSeqno;
      private int packetSize;
      public Packet(int timeStamp0, int userId0, int packetId0,
       int packetSeqno0, int packetSize0) {
        timeStamp = timeStamp0;
        userId = userId0;
        packetId = packetId0;
        packetSeqno = packetSeqno0;
        packetSize = packetSize0;
      public Packet(String timeStamp0, String userId0, String packetId0,
       String packetSeqno0, String packetSize0) {
        this(Integer.parseInt(timeStamp0), Integer.parseInt(userId0),
         Integer.parseInt(packetId0), Integer.parseInt(packetSeqno0),
         Integer.parseInt(packetSize0));
      public Packet(String[] a){
        this(a[0], a[1], a[2], a[3], a[4]);
      public void setTime(int aTimeStamp){
        timeStamp = aTimeStamp;
      public void setUserId(int aUserId){
        userId = aUserId;
      public void setPacketId(int aPacketId){
        packetId = aPacketId;
      public void setPacketSeqno(int aPacketSeqno){
        packetSeqno = aPacketSeqno;
      public void setPacketSize(int aPacketSize){
        packetSize = aPacketSize;
      public int getUserId(){
        return userId;
      public String toString(){
        return String.format
    ("%2d %2d %2d %2d %4d", timeStamp, userId, packetId, packetSeqno, packetSize);
      public int compareTo(Packet otherPacket){
        return userId - otherPacket.getUserId();
      /* main for test */
      public static void main(String[] args){
        String line;
        ArrayList<Packet> alp;
        alp = new ArrayList<Packet>();
        try{
          BufferedReader br = new BufferedReader(new FileReader("cnleafdata.txt"));
          while ((line = br.readLine()) != null){
            // if (! recordValid(line)){
            //   continue;
            String[] ar = line.split("\\s");
            alp.add(new Packet(ar));
        catch (Exception e){
          e.printStackTrace();
        System.out.println("[original]");
        for (Packet p : alp){
          System.out.println(p);
        System.out.println();
        Collections.sort(alp);
        System.out.println("[sorted by user ID]");
        for (Packet p : alp){
          System.out.println(p);
    }

  • Change labels of multiple axis in xy-chart

    Hi,
    I want to programmatically change the labels of the axes in a xy-chart with two y-axes.
    I can easily manage this for the x-axis and the first y-axis. But I can't find how to access the properties of the second y-axis. How to do this?
    Steven
    LV 7.1 - 8.2

    There is a property named "Active Y Scale".
    In dictates which of the multiple axis you are going to act on.
    Set it to the index of the axis you want to change BEFORE setting the label.
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • Unable to read multiple files in BODS

    hi all,
    i am unable to read multiple files [with same format of fields] using wild card characters in file name.
    scenario:
    i have 2 files: test1.xlsx & test2.xlsx
    in the excel file format, for the file name column, i have given test*.xlsx.
    and done the direct mapping to target column.
    but when i run the job i am getting below error.
    at com.acta.adapter.msexceladapter.MSExcelAdapterReadTable.ReadAllRows(MSExcelAdapterReadTable.java:1242)
    at com.acta.adapter.msexceladapter.MSExcelAdapterReadTable.readNext(MSExcelAdapterReadTable.java:1285)
    at com.acta.adapter.sdk.StreamListener.handleBrokerMessage(StreamListener.java:151)
    at com.acta.brokerclient.BrokerClient.handleMessage(BrokerClient.java:448)
    at com.acta.brokerclient.BrokerClient.access$100(BrokerClient.java:53)
    at com.acta.brokerclient.BrokerClient$MessageHandler.run(BrokerClient.java:1600)
    at com.acta.brokerclient.ThreadPool$PoolThread.run(ThreadPool.java:100)
    please let me know if there is any solution to this.
    regards,
    Swetha

    Hi,
    i just copied a xlsx file with 3 different names (Test_Data.xlsx, Test_1.xlsx, Test_2.xlsx) and tried with below options and it worked for me.
    Note: I tried on the same OS and DS 4.1 SP2(14.1.2.378)versions. In Linux File names are case sensitive.

  • Reading Multiple lines in a file Using File Adapter

    Hi All,
    Iam new to this technology.How to read multiple lines in a file using file adapter.Brief me with the methodology.

    I didn't look at anything else but if you want to write more than one line ever to your file you should change this
    out = new FileOutputStream("Calculation.log");to this...
    out = new FileOutputStream("Calculation.log",true);A quick look at the API reveals the follow constructor FileOutputStream(File file, boolean append) append means should I add on the end of the file or over-write what is there.
    By default you over-write. So in our case we say true instead which says add on to what is there.
    At the end of that little snippet you shoudl be closing that stream as well.
    So where you have
    p.close();You should have
    p.close();
    out.close();

Maybe you are looking for

  • Bluetooth cannot pair samsung s6 and macbook pro retina

    Hi all, I'm trying to pair my new samsung S6 to my 2013 macbook pro retina running yosemite.  I have gone to "bluetooth preferences" and I can hit pair and the S6 receives the code to verify and it connects, but then immediately disconnects and goes

  • Import DVD (not copywritted)PLEASE HELP ASAP

    I do a lot of volunteering for the Children's Miracle network. I recently received a 6 minute DVD that is not copy writed in anyway. Its on a DVD-R. I want to import that DVD and transfer it over to another iDVD project and add it to a small DVD I'm

  • MacBook is too big!

    I do like small laptops and I really think my next one will be a small one by Apple. I was very interested when I read about the new MacBook. When I read about the size though, I was a bit disappointed: Width: 12.78 inches (32.5 cm) My current laptop

  • Detecting END or Stream turned off in OSMF  -- Live Stream

    Hi all i am using the OSMF player to stream live events.  When the stream ends or if the feed is turned off the player throws a BUFFER state change which my code catches and shows a loading spinner, but how do i detect if the stream has ended or turn

  • Forwarding JSP from NSAPI to WebLogic

    Does anyone know what the correct syntax is to forward a JSP from the           NSAPI plugin to to WebLogic?           I need to find out how it's coded in the obj.conf file for both single           server and clustered servers.           The exampl