Writing trigger event time to file

I am new to LabVIEW.  I have been modifying the acq_graph_voltage_dig.vi that I found to trigger recording using a digital trigger with a set number of pretrigger and posttrigger samples being recorded.  I have added VIs to open, write to, and save a tdms file with this data.  I want to be able to record when the trigger actually occurred, either as a separate channel or just as an event to mark when the trigger occurred in the file.  I know that I can figure this out based on the pretrigger sample number, but this is something I will likely be changing as I record.  I will only have one trigger per file.  Anyone have suggestions on how I could record the trigger instance?
Thanks!
Solved!
Go to Solution.

Hi shelby,
I assume that you just want the timestamp of when the trigger occurred and then you'll write this value to file. If so, you can change the read position to the reference trigger, read one sample, and the record the timestamp of that sample to the end of your file. A picture is shown below as well as an edited version of the VI you were using. I didn't add any file I/O to the example as I assume you already have this part figured out. I hope that helps!
Message Edited by lion-o on 10-21-2008 02:23 PM
Mike Lyons
National Instruments
http://www.ni.com/devzone
Attachments:
reference_trigger_read_position.jpg ‏42 KB
acq_graph_voltage_dig.vi ‏92 KB

Similar Messages

  • Tracking trigger event.

    Hello,
    Now, I am debugging on my trigger event. So I want to know is there a way to tracking trigger event on log file or table?
    a sample of my trigger as follow
    create or replace trigger insertInvoicetrigger
    after insert on invoice
    for each row
    begin
    update customers set COM_BALANCE = COM_BALANCE + :new.INVOICE_TOTAL where tid = :new.com_id;
    end;
    /Thank you!

    You can create a procedure with AUTONOMOUS_TRANSACTION pragma and do your logging in to table in that and commit. AUTONOMOUS_TRANSACTION pragma ? what is that? I am no knowledge about this, please give me some more information....
    set serveroutput on
    then
    dbms_output.put_line
    this should be the easiest way to debugging for me, but can it be works on my programming application (visual basic 6)?
    I means run and fire trigger(s) from my app, then show it command prompt or somewhere else?
    Thanks
    ;)

  • Delay in event driven log file data writing? Please help!!!

    System Information
    Operating System: XP
    Labview: 8.2
    Force sensor data acquisition via DAQPad-6070E
    Actuator: Actuator via MCS-3D controller
    Programming Information
    Number of events: 13
    Position read: Reads the position and the force sensor data every second.
    Move I &  Forward:  Moves the actuator forward with a define step size
    Two actuators are made to travel certain distance. A force sensor is attached to the system. The aim here is to acquire continuous data as per the defined time wait (1 sec). The data is logged in a text file which gives the position travelled from the actuator, the force sensor data with a time stamp.
    The issues I am encountering is during writing a file.
    For ex: When even is activated ( Move actuator at defined stepsize) the event are logged into the log file but the positions are updated into the log file only when the next event is activated. So it means that the positions and the force values are updated into the logfile after the consecutive event is executed. If you see the logfile ex inside the attachment the red block explains the event executed but the position are updated in the next line (event). This file is just for example.
    Please help here I am going wrong!
    Thanks in advanced
    Attachments:
    EventMoveex.PNG ‏582 KB
    Logfile.PNG ‏64 KB

    Dear Method M
    I find it out what was going on. As you mentioned that I was writing the values before the actuators achieving the final position, so I introduced a delay between the execution of two SubVI's. It isnt a clean method but it works.
    thank you very much!
    Regards
    Itz

  • How to send file as attachment and call RFC to trigger event in ECC?

    Hello,
    A file is retrieved from FTP into PI (w/ NO MAPPING required - just pass through) and placed on the ECC appl. Server. Then, a RFC is made to trigger an event to process the file in ECC.  However, a RFC cannot be called in the graphical mapping if there is no mapping required.
    I have seen this Blog, u201CFile to R/3 via ABAP Proxyu201D, http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/1847. [original link is broken] [original link is broken] [original link is broken]  But we are told not to touch the file as it will be converted in ECC by a program.
    Also, I read that using ABAP proxy-PI-FTP, I can do a pseudo mapping, simple one node, (just so a RFC can be triggered) and also pass the file as an attachment.  Letu2019s say this works:
    Question 1:  What configuration steps in the FTP adapter that will allow me to u201Calsou201D send the file as an attachment? 
    Question 2: (Continue with ABAP proxy option) How do I control where will it be deposited so that the program can access it?
    Question 3:  If this is not the best approach, how many steps would I need to do it in BPM (i.e. pick up the file from FTP, place it on appl server, and trigger a RFC to call an event to process file)?
    Thanks for any suggestions!
    John_Xi

    I have read those two help file and was able to use it in the ABAP proxy code.  Thanks.
    This is the current outcome.  I totally understand that SAP PI communicates via XML.  So when PI picks up a file that contains XML tags, the Inbound proxy is triggered.  I can see its processing in SM50.  However, when I give the Sender FTP adapter a non-XML file to pick up, the Inbound Proxy does not trigger.  The file itself should be read into memory so that I can save it to the application server via ABAP code (with no mapping).  That is why there is no operation mapping
    The reason I am using using FTP to ABAP proxy is because I need to call a subsequent RFC step to process the file.  Else, I will just use FTP to File Adapter scenario.
    Question 1: I am thinking that that file is the attachment.  Is that where I am incorrect and I still need to send in an XML file with the attachment as an addition?
    Question 2: Is this the best approach or should I use BPM?  If BPM, what steps do I need?

  • Time Stamp problem while writing data into the excel file

    Hii, All
                  I am taking the data from the DAQ card of the TOPSCCC with the 8 ms of scanrate for each channel and there are total 16 no of Analog channels in the Card, now i am acquiring the data from the card, time stamping it and writing it into the excel file, which is tab delimited, now the problem is, the data which are in the excel file have the same timestamp for 4 to 5 continuous records, instead we want each data with the different and continuous time stamp with same difference of time stamp between two records, mean if it is difference of 8 ms then it should be the 8 ms for all, but here it is taking the differnce of 16 ms for two samples and giving same time stamp for four to five records and that shouldn't happen, here i am attaching my vi, drivers for the cards and Excel file with the data, can you please give me any suggestion how to do it?
           Please help me i require this suggestion as early as possible, i am requiring it urgently.
    Thanks in Advance,
    Nishant
    Attachments:
    2026vi.llb ‏319 KB
    2026_ScanMultAD_Demo_time.vi ‏80 KB
    Data.xls ‏357 KB

    Hello Nishant,
    that's what I meant:
    Message Edited by GerdW on 05-16-2006 10:32 AM
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome
    Attachments:
    timestamp-array.png ‏2 KB

  • Problem in writing Hindi Font in properties file at run time.!

    hi,
    We are using Language translator for our project.
    We are able to convert the language in hindi and chinese language.
    Im also creating properties file respective to each page in hindi,english and chinese language.
    At run time while CREATING properties file shows the english font appropriate but while
    in hindi it shows problem at run time .
    after WRITING at run time the hindi properties file contains lots on question mark(????????????) intead of hindi font words.
    does any advise me the solution to this problem.?
    Thankx in advance.!
    Johnita

    Hi suraya,
    Since the issue regards MVC and website deployment. I suggestion you post the question in the ASP.NET forums at
    http://forums.asp.net/. It is appropriate and more experts will assist you.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Can i write information in file on trigger event.

    Dear Experts,
    I want ot store information in file on particular Trigger event.
    Is it possible? if yes then how?

    We can write to files using the UTL_FILE PL/SQL package. Please read the documentation on this: the security model in particular seems to trip up many newcomers.
    Cheers, APC

  • Writing own event for Reservation creation BUS object

    I am trying to create a workflow that should get triggered when a new reservation is created for approval. I am using the BOR object for material reservation but it does not contain an event of creation. I wish to create a new event and then add code to the event so that a mail to an approver can be sent. Using the approval received I need to confirm the reservation else render it cancelled.
    I require help in creating the event and writing the event code for it.
    Thanks for taking time to go through my query
    Zankruti Parikh

    Hello Zankruti,
        Indeed, there's no such event for BUS2093. And if you try to do this to object BUS2093, you will come across error: "No change document object for business object type BUS2093".
        Given this, in your case, I am afraid that you will have to extend object BUS2093 by using delegation - then you will be able to add events CREATED or CHANGED, if necessary. Use transaction SWO1 to this, click on "settings" delegate, delegation type = ZBUS2093(for example) - you will delegate your ZBUS2093 type to BUS2093. After that, you will be able to create the events.                                                                               
    Following the idea, I believe that the easiest way to do this is thorugh enhancement MBCF0007 (Customer function exit: Updating a reservation). Click on components, and then you will see EXIT_SAPMM07R_001. Within this exit, you can call SWE_EVENT_CREATE_IN_UPD_TASK (you trigger the events you will have created above).  
    Regards,
    Andre Sousa
    Edited by: Andre Sousa on Jan 4, 2008 9:35 PM

  • Bootsplash trigger events

    on the bootsplash webpage it says to
    trigger events during bootup
    we suggest that you add a function to your init scripts that is called every time an init script is started. This can either be done in the runlevel scripts themselves or by the script/program scheduling it (i.e. /etc/init.d/rc)
    function rc_splash()
    test "$SPLASH" != "no" && test "$_rc_splash" -eq 1 && /sbin/splash "$1"
    progress=$(( $progress + 1 ))
    when adding the rc_splash call to your runlevel script scheduler, do it
    about like this:
    for i in $runrc/S${rex}*; do
    # send information to bootsplash handler.
    rc_splash "$i start"
    done
    but where is the archs program scheduling file., as i dont seem to see a /etc/init.d/rc, im tying to get the  Default Linux theme at bootsplashes webpage to work.. i got everything to work except silent mode to display the silent Jpeg and gradient bar
    thanks
    -bolero

    I have now gotten the progress bar to work. After trying a couple different approaches, this is my best shot. In /etc/rc.d/functions I extended stat_busy(), stat_done() and stat_fail() to look like this:
    stat_busy() {
    echo -ne "$C_OTHER$PREFIX_REG $C_MAIN$1$C_CLEAR "
    deltext
    echo -ne " $C_OTHER[${C_BUSY}BUSY$C_OTHER]$C_CLEAR "
    [ "$BOOTSPLASH_PROGRESS" -a "$BOOTSPLASH_DELTA" ] &&
    BOOTSPLASH_PROGRESS=$(($BOOTSPLASH_PROGRESS+$BOOTSPLASH_DELTA))
    stat_done() {
    deltext
    echo -e " $C_OTHER[${C_DONE}DONE$C_OTHER]$C_CLEAR "
    [ "$BOOTSPLASH_PROGRESS" -a -w /proc/splash ] &&
    echo "show $BOOTSPLASH_PROGRESS" > /proc/splash
    stat_fail() {
    deltext
    echo -e " $C_OTHER[${C_FAIL}FAIL$C_OTHER]$C_CLEAR "
    [ "$BOOTSPLASH_PROGRESS" -a -w /proc/splash ] &&
    echo "show $BOOTSPLASH_PROGRESS" > /proc/splash
    The idea is that $BOOTSPLASH_PROGRESS holds the current value of the progress bar (which is in the range 0 - 65535) and $BOOTSPLASH_DELTA is the amount to increase the progress counter with on each stat_busy. These values are initialized in rc.sysinit like this:
    [ "$BOOTSPLASH_SYSINIT" ] ||
    BOOTSPLASH_SYSINIT=`grep -c -e stat_busy -e status /etc/rc.sysinit`
    [ "$BOOTSPLASH_LOCAL" ] ||
    BOOTSPLASH_LOCAL=`grep -c -e stat_busy -e status /etc/rc.local`
    BOOTSPLASH_DAEMONS=`echo ${DAEMONS[@]} | sed 's/![^ ]*//g' | wc -w`
    BOOTSPLASH_ALL=$(($BOOTSPLASH_SYSINIT+$BOOTSPLASH_LOCAL+$BOOTSPLASH_DAEMONS))
    BOOTSPLASH_DELTA=$((65535/$BOOTSPLASH_ALL))
    BOOTSPLASH_PROGRESS=$((65535-$BOOTSPLASH_ALL*$BOOTSPLASH_DELTA))
    I put this right before the point where local file systems are mounted, because the progress bar can't be updated before /proc is accessible. Another option is to initialize these variables in the beginning of rc.sysinit to make earlier stat_busy calls get counted, but the updates won't be visible before /proc is mounted anyway.
    Because there is no way to export these variables from rc.sysinit to init's environment, rc.multi has to calculate them from scratch. Also the loop that starts daemons has to increase the counter because the daemon scripts can't export the new values. My full rc.multi script looks like this:
    . /etc/rc.conf
    . /etc/rc.d/functions
    [ "$BOOTSPLASH_SYSINIT" ] ||
    BOOTSPLASH_SYSINIT=`grep -c -e stat_busy -e status /etc/rc.sysinit`
    [ "$BOOTSPLASH_LOCAL" ] ||
    BOOTSPLASH_LOCAL=`grep -c -e stat_busy -e status /etc/rc.local`
    BOOTSPLASH_DAEMONS=`echo ${DAEMONS[@]} | sed 's/![^ ]*//g' | wc -w`
    BOOTSPLASH_DELTA=$((65535/($BOOTSPLASH_SYSINIT+$BOOTSPLASH_LOCAL+$BOOTSPLASH_DAEMONS)))
    BOOTSPLASH_PROGRESS=$((65535-($BOOTSPLASH_LOCAL+$BOOTSPLASH_DAEMONS)*$BOOTSPLASH_DELTA))
    export BOOTSPLASH_PROGRESS BOOTSPLASH_DELTA
    # Start daemons
    for daemon in "${DAEMONS[@]}"; do
    if [[ `echo $daemon | grep '^[^!]' | wc -l` -eq 1 ]]; then
    /etc/rc.d/$daemon start
    BOOTSPLASH_PROGRESS=$(($BOOTSPLASH_PROGRESS+$BOOTSPLASH_DELTA))
    fi
    done
    if [ -x /etc/rc.local ]; then
    /etc/rc.local
    fi
    Like I mentioned in my previous post, it's hard to know how many steps the bar is going to need. Especially rc.sysinit is full of conditional stat_busy statements. Therefor I made it possible to specify $BOOTSPLASH_SYSINIT (number of steps in rc.sysinit) in rc.conf. With the current rc.sysinit script this value is calculated as 19, but on my system rc.sysinit only executes 8 of the steps after the point where /proc is mounted.
    The code presented here doesn't display text for the different stat_busy calls. I kind of had that working as well, but the texts were written on top of each other (old text wasn't erased) and you had to source the bootsplash-theme to get the text's font and position - it wasn't pretty.
    I hope somebody finds this useful, and I might make a bootsplash package that includes the splash utils, an Arch theme and patches for the init scripts.
    -bogomipz

  • Can't access Time Machine files since upgrading to Mavericks

    I have searched the community and found that people have experienced issues backing up to Time Machine since upgrading to Mavericks, but my problem appears slightly different from the ones I've found.  I can see that my Time Machine is actually backing up since the upgrade as it was before the upgrade.  The issue I'm having is that I can't access the backed-up files in any way. 
    When I try to open time machine it launches the "space view" with all of the historical tabs lined up for me to scroll through, but imediately closes that window and gives the error message: "Can't connect to a current Time Machine backup disc".  It's so weird, because it says that there have been backups completed since the upgrade (most recently this morning).  If it wasn't writing to the disc, it would have showed me an error of some sort.
    What I am, specifically, trying to accomplish is that I need to restore some iTunes playlists that I somehow managed to delete this past weekend.  I figured that I would easily be able to access the library file that contains the playlists from Saturday morning, when I KNOW that playlist was still there, and just restore it.  Now that I am seeing that I can't access any of my time machine files, I'm realizing that I have an even bigger problem, and that all of my files are, essentially, going without backup at this time (assuming I can't access the files that have already been backing up).
    If anyone has some insight as to how I can fix this problem, I would greatly appreciate it.

    Hi John, (The above was for your attention) I'm 72 and must've hit the wrong button!!!
    I followed your instructions to the letter, but sadly, no success...all my backups are showing on the TM external HD, but I cannot access them after instsalling 'Mavericks'
    I spent the entire day on and off the phone with Applecare (they are very nice, and I'm sure they know most of the stuff needed; but not this problem. They are phoning back tomorrow as the senior chap was not available.
    I love my apple products, and like you, have been using their gear for well over 25 years...not studying the things, but using them all the way through.
    My present Mac,  a 24" iMac is nearly 7 years old, bought on December 11th 2007, and this is the first time I have had a significant problem, and never a virus..got bless em!. I bet there are not many Windows users around who can say the same!
    However, if I cannot access my backups, I'm a bit lost, as all my accumulated stuff is there!
    I guess the worst case scenario is that I revert to OS X 10.7.5, and wait 'til the bugs are ironed out in Mavericks....Ho Hum
    Message was edited by: briinoz

  • Time Capsule file transfer - why so slow?

    I've got a simultaneous dual-band Time Capsule serving as a router for my network, which includes a newer Macbook Pro and an older PowerPC G5.
    When I transfer a 2GB file directly from the G5 to the MBP (this is of course going through the TC as the router), it takes about 95 seconds, which is 22 MB/s or 172 Mbps if you prefer.
    When I transfer the same file from the G5 to the Time Capsule's drive, it takes about 190 seconds, about 11 MB/s or 86 Mbps.
    Why is the Time Capsule's drive so much slower? Are these speeds typical for the TC, for example, when you are using Time Machine to back up? (I don't use Time Machine myself, because I'm running Tiger.)
    When I hook the two computers directly to each other using ethernet, the same file takes 80 seconds to transfer (25 MB/s or 205 Mpbs).

    Well, that is a disappointment. And somewhat puzzling, given that TC is supposed to be a backup solution. You'd think it would be fast. I don't think the drive hardware itself is slow, given what I've read about them (Hitachi Deskstar?).
    I have the book you mention and looked up the quote. It also says, "This is partly due to inefficiencies in copying many small files in Apple Filing Protocol
    (AFP), and partly due to the low-power, but adequate, processor in the Extreme N (both models)."
    The AFP possibly explains why my G5 (Tiger) is slower at writing to the Time Capsule than my husband's Macbook Pro (Leopard).

  • Reading and writing to and from a file to a form

    Hi there
    I would like somebody to send me a code example,
    showing me how to reading records from a file to a form,
    and writing records to the same file from the same form.
    I know that I have to use sycronize, but I just have not been
    successful. I can constract forms, go from form to a form,
    do buttons, do text fields. I can even read and write from and
    to files. However I cannot do is write from a file to a form and
    from a form to a file.
    could somebody please explain how this done, and could you
    please give me a code example. All the books seem to either
    deal with forms or with files. None seem to combine both.
    I am sure it is very ease to do if ONLY I knew how!!!
    thank you very much in advance for you help.

    I understand that code and I have used it before, however thanks for
    trying to help me, it is really appreciated. However, that is not my
    problem. I can read and write from a file to the console and vice versa.
    what I cannot do, no matter how hard I try, is to write from a file, and
    output it in.
    I will tell you how far I have got.
    I have a MenuFrame class, this is the code for it:
    package WorkflowApp;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.io.*;
    public class MenuFrame extends JFrame {
    JMenuBar menuBar1 = new JMenuBar();
    JMenu menuFile = new JMenu();
    JMenuItem menuFileExit = new JMenuItem();
    JMenu menuHelp = new JMenu();
    JMenuItem menuHelpAbout = new JMenuItem();
    JToolBar toolBar = new JToolBar();
    JButton jButton1 = new JButton();
    JButton jButton2 = new JButton();
    JButton jButton3 = new JButton();
    ImageIcon image1;
    ImageIcon image2;
    ImageIcon image3;
    JLabel statusBar = new JLabel();
    Button button2 = new Button();
    Button button3 = new Button();
    Button button4 = new Button();
    Button button5 = new Button();
    Button button6 = new Button();
    Button button7 = new Button();
    Button button1 = new Button();
    //Construct the frame
    public MenuFrame() {
    enableEvents(AWTEvent.WINDOW_EVENT_MASK);
    try {
    jbInit();
    catch(Exception e) {
    e.printStackTrace();
    //Component initialization
    private void jbInit() throws Exception {
    image1 = new ImageIcon(WorkflowApp.MenuFrame.class.getResource("openFile.gif"));
    image2 = new ImageIcon(WorkflowApp.MenuFrame.class.getResource("closeFile.gif"));
    image3 = new ImageIcon(WorkflowApp.MenuFrame.class.getResource("help.gif"));
    this.getContentPane().setLayout(null);
    this.setSize(new Dimension(400, 492));
    this.setTitle("MenuFrame");
    statusBar.setText(" ");
    statusBar.setBounds(new Rectangle(0, 0, 3, 17));
    menuFile.setText("File");
    menuFileExit.setText("Exit");
    menuFileExit.addActionListener(new ActionListener() {
    public void actionPerformed(ActionEvent e) {
    fileExit_actionPerformed(e);
    menuHelp.setText("Help");
    menuHelpAbout.setText("About");
    menuHelpAbout.addActionListener(new ActionListener() {
    public void actionPerformed(ActionEvent e) {
    helpAbout_actionPerformed(e);
    jButton1.setIcon(image1);
    jButton1.setToolTipText("Open File");
    jButton2.setIcon(image2);
    jButton2.setToolTipText("Close File");
    jButton3.setIcon(image3);
    jButton3.setToolTipText("Help");
    toolBar.setBorder(null);
    toolBar.setBounds(new Rectangle(2, 2, 389, 30));
    button2.setBounds(new Rectangle(217, 62, 135, 44));
    button2.setLabel("Staff Details");
    button2.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed(ActionEvent e) {
    button2_actionPerformed(e);
    button3.setBounds(new Rectangle(26, 127, 135, 44));
    button3.setLabel("Arange Viewing");
    button3.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed(ActionEvent e) {
    button3_actionPerformed(e);
    button4.setBounds(new Rectangle(218, 127, 136, 41));
    button4.setLabel("Valuation");
    button4.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed(ActionEvent e) {
    button4_actionPerformed(e);
    button5.setBounds(new Rectangle(28, 196, 135, 41));
    button5.setLabel("Schedule");
    button6.setBounds(new Rectangle(221, 194, 133, 40));
    button6.setName("button6");
    button6.setLabel("Register Interest");
    button7.setBounds(new Rectangle(31, 266, 133, 42));
    button7.setLabel("Register Offers");
    button1.setBounds(new Rectangle(27, 62, 131, 42));
    button1.setLabel("New Client");
    button1.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed(ActionEvent e) {
    button1_actionPerformed(e);
    menuFile.add(menuFileExit);
    menuHelp.add(menuHelpAbout);
    menuBar1.add(menuFile);
    menuBar1.add(menuHelp);
    this.setJMenuBar(menuBar1);
    this.getContentPane().add(statusBar, null);
    this.getContentPane().add(toolBar, null);
    toolBar.add(jButton1);
    toolBar.add(jButton2, null);
    toolBar.add(jButton3, null);
    this.getContentPane().add(button3, null);
    this.getContentPane().add(button5, null);
    this.getContentPane().add(button7, null);
    this.getContentPane().add(button2, null);
    this.getContentPane().add(button4, null);
    this.getContentPane().add(button6, null);
    this.getContentPane().add(button1, null);
    //File | Exit action performed
    public void fileExit_actionPerformed(ActionEvent e) {
    System.exit(0);
    //Help | About action performed
    public void helpAbout_actionPerformed(ActionEvent e) {
    MenuFrame_AboutBox dlg = new MenuFrame_AboutBox(this);
    Dimension dlgSize = dlg.getPreferredSize();
    Dimension frmSize = getSize();
    Point loc = getLocation();
    dlg.setLocation((frmSize.width - dlgSize.width) / 2 + loc.x, (frmSize.height - dlgSize.height) / 2 + loc.y);
    dlg.setModal(true);
    dlg.show();
    //Overridden so we can exit on System Close
    protected void processWindowEvent(WindowEvent e) {
    super.processWindowEvent(e);
    if(e.getID() == WindowEvent.WINDOW_CLOSING) {
    fileExit_actionPerformed(null);
    void button2_actionPerformed(ActionEvent e) {
    StaffDetails myFrame = new StaffDetails();
    myFrame.show();
    void button3_actionPerformed(ActionEvent e) {
    ArrangeViewing myFrame = new ArrangeViewing();
    myFrame.show();
    void button1_actionPerformed(ActionEvent e) {
    NewClientFrame myFrame = new NewClientFrame();
    myFrame.show();
    // System.exit(1);
    void button4_actionPerformed(ActionEvent e) {
    Valuation myFrame = new Valuation();
    myFrame.show();
    then I have a new form class, this is the code for it
    package WorkflowApp;
    import java.io.*;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class NewClientFrame extends JFrame {
    Label label1 = new Label();
    Label label2 = new Label();
    Label label3 = new Label();
    Label label4 = new Label();
    Label label5 = new Label();
    Label label6 = new Label();
    Label label7 = new Label();
    Label label8 = new Label();
    Label label9 = new Label();
    Label label10 = new Label();
    TextField textField1 = new TextField();
    TextField textField2 = new TextField();
    TextField textField3 = new TextField();
    TextField textField4 = new TextField();
    TextField textField5 = new TextField();
    TextField textField6 = new TextField();
    TextField textField7 = new TextField();
    TextField textField8 = new TextField();
    TextField textField9 = new TextField();
    TextField textField10 = new TextField();
    Button button1 = new Button();
    Button button2 = new Button();
    //Construct the frame
    public NewClientFrame() {
    enableEvents(AWTEvent.WINDOW_EVENT_MASK);
    try {
    jbInit();
    catch(Exception e) {
    e.printStackTrace();
    //Component initialization
    private void jbInit() throws Exception {
    this.getContentPane().setLayout(null);
    this.setSize(new Dimension(411, 488));
    this.setTitle("NewClientFrame ");
    this.addWindowListener(new java.awt.event.WindowAdapter() {
    public void windowClosing(WindowEvent e) {
    this_windowClosing(e);
    label1.setBounds(new Rectangle(21, 23, 110, 23));
    label1.setAlignment(2);
    label1.setText("Assign Number");
    label2.setBounds(new Rectangle(23, 57, 108, 25));
    label2.setAlignment(2);
    label2.setText("Name");
    label3.setBounds(new Rectangle(40, 91, 94, 24));
    label3.setAlignment(2);
    label3.setText("Address 1");
    label4.setBounds(new Rectangle(21, 124, 112, 29));
    label4.setAlignment(2);
    label4.setText("Address 2");
    label5.setBounds(new Rectangle(20, 159, 116, 29));
    label5.setAlignment(2);
    label5.setText("PoscCode");
    label6.setBounds(new Rectangle(18, 197, 119, 26));
    label6.setAlignment(2);
    label6.setText("Telephone");
    label7.setBounds(new Rectangle(25, 228, 112, 26));
    label7.setAlignment(2);
    label7.setText("Other Telephone");
    label8.setBounds(new Rectangle(12, 261, 125, 24));
    label8.setAlignment(2);
    label8.setText("Email Address");
    label9.setBounds(new Rectangle(6, 301, 138, 25));
    label9.setAlignment(2);
    label9.setText("Staff Assigned (Name)");
    label10.setBounds(new Rectangle(22, 341, 124, 23));
    label10.setAlignment(2);
    label10.setText("Staff Assigned (No.)");
    textField1.setBounds(new Rectangle(155, 19, 80, 26));
    textField2.setBounds(new Rectangle(155, 58, 193, 24));
    textField3.setBounds(new Rectangle(156, 90, 192, 25));
    textField4.setBounds(new Rectangle(157, 126, 192, 23));
    textField5.setBounds(new Rectangle(157, 159, 195, 25));
    textField6.setBounds(new Rectangle(157, 194, 195, 26));
    textField7.setBounds(new Rectangle(157, 230, 192, 24));
    textField8.setBounds(new Rectangle(157, 263, 193, 25));
    textField9.setBounds(new Rectangle(157, 303, 196, 24));
    textField10.setBounds(new Rectangle(158, 337, 95, 24));
    button1.setBounds(new Rectangle(23, 398, 144, 34));
    button1.setLabel("Staff Available");
    button2.setBounds(new Rectangle(211, 396, 148, 34));
    button2.setLabel("Submit Record");
    button2.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed(ActionEvent e) {
    button2_actionPerformed(e);
    this.getContentPane().add(label1, null);
    this.getContentPane().add(label2, null);
    this.getContentPane().add(label3, null);
    this.getContentPane().add(label4, null);
    this.getContentPane().add(label5, null);
    this.getContentPane().add(label6, null);
    this.getContentPane().add(label7, null);
    this.getContentPane().add(label8, null);
    this.getContentPane().add(label9, null);
    this.getContentPane().add(label10, null);
    this.getContentPane().add(textField1, null);
    this.getContentPane().add(textField2, null);
    this.getContentPane().add(textField3, null);
    this.getContentPane().add(textField4, null);
    this.getContentPane().add(textField5, null);
    this.getContentPane().add(textField6, null);
    this.getContentPane().add(textField7, null);
    this.getContentPane().add(textField8, null);
    this.getContentPane().add(textField9, null);
    this.getContentPane().add(textField10, null);
    this.getContentPane().add(button1, null);
    this.getContentPane().add(button2, null);
    public void fileExit_actionPerformed(ActionEvent e) {
    System.exit(0);
    // exit(this);
    // close();
    //Overridden so we can exit on System Close
    protected void processWindowEvent(WindowEvent e) {
    super.processWindowEvent(e);
    if(e.getID() == WindowEvent.WINDOW_CLOSING) {
    System.exit(0);
    void button2_actionPerformed(ActionEvent e) {
    // myFrame.close();
    this.dispose();
    void this_windowClosing(WindowEvent e) {
    this.dispose();
    I also have an about box, staff details, and valuation forms.
    what I am trying to do is for the New client form to be able to read and write from and to a file, and display the info.
    I am working in JBuilder3, a bit out of date I know, but it is the best I can do. Any Ideas how to do this.

  • Writing binary data to a file without carriage returns every 512 bytes

    Is there a VI for writing binary data to a file without carriage returns being inserted every 512 bytes?
    Thanks

    Hi Momolxg,
    I could be way off on this. I tried to simulate what you've done by
    making a for loop that would run a set number of times. For my example I
    used 1025. I wired the iteration terminal to a 'Write to SGL File.vi'
    outside the loop with indexing enabled. It wrote the SGL data from 0 to
    1024 to the file. I then read the file with a 'Read Characters from
    File.vi' and searched the output for a carriage return (0D hex). It was
    found five times. The reason why was the SGL number it was reading had a
    13 (0D hex) in it. Perhaps you're running into a similar problem?
    I tried it again, this time using the 'Write to I16 File.vi'. The
    carriage return was found five times: the 28th character the first time
    then on the 512th character four consecutive time
    s after that. I suppose
    that makes sense that you'd find a 0D in the numbers at equal spacings if
    they're incrementing this way... In this case the carriage returns you're
    seeing are actually numbers from your data.
    One big difference is that I'm using a set pattern of numbers. This
    doesn't appear to be your case. Is there a better way we can duplicate
    your problem? It sounds interesting. Again my simulation could be way
    off. (I'm also running this on LV60 for Linux so my results could be
    different)
    - Kevin
    In article <[email protected]>,
    "momolxg" wrote:
    > Is there a VI for writing binary data to a file without carriage returns
    > being inserted every 512 bytes? Thanks

  • Event time issue - IPS 4240, v5.0, VMS.

    Hi,
    I am having this unique issue. Whereas the IPS system time is correct, and I have set a UTC offset of 330 min (being in the GMT +5.30 hrs time zone.), I am still seeing the event time on the IEV as UTC, and not the system time. This is kinda tedious trying to keep track of the actual local time the event occcurred. The system clock on the IPS shows correct local time.
    Also, on the VMS server, the system time is the same as the IPS. However, whenever I open up the SecMon, to view the event, it gives me a funny default start & end time, which is about 3 beyond the system time (I expect the time range reflected in the SecMon, should correspont the system time of the VMS machine, when the SecMon->Monitor->Events link was clicked.) For e.g. if I click on the SecMon->Monitor->Events link at say 10.00 am, on 13th April, I expect the fetch events time range to show from 13-April-2005 10:00:00 hrs to 13-Aril-2005 10:00:00 hrs. However, what it actually displays is 13:00:00 hrs to 13:00:00 hrs. I am at a loss where this time difference is creeping up from. Also, if instead of the time range, I specify, say last 1 or 2 hrs, it wont show me any events. (This I suspect is because of the funny 3 hr time difference that has crept in.) I can only see the events, if I ask the events of beyond last 3 hrs.
    Any suggestions how to resolve the same? I am not using any NTP servers currently. Would that help?
    Thanks in advance.
    Ajay.

    Hi Ajay
    Its not a major problem either in your CISCO IDS and CISCO VMS. It is time synchronizing factor involved in this mismatch time view on your Sec Mon.
    What version of VMS you deployed?
    If it is not updated version then download the PERL script Workaround files from Download Center then run on it.
    After that, the problem will be resolve.
    If it will not resolve then pls reply.
    Thanks

  • Faillure writing metadata to some DNG files

    I'm having a problem writing metadata to some dng files using Lightroom 2.6.1. When I try to apply a metadata template to a batch of files most of them get changes but a few don't. This only effects DNG files so far JPEG and TIFF seem to be OK. I have tried running the problem files through DNG converter and the new files have the same problem. Lightroom won't write to them.
    I can change the metadata of these files from Bridge. The changes then appear properly in Lightroom. Afterwards I can change the metadata again from Lightroom.
    I'm working on a MacBook Pro (Late 2008) and running OS 10.6.2.

    I created a preset to export to same folder as original, same format as original, and stack with (above) original. I used this on the seven files, and it has solved the problem without losing any metadata.
    The jpegs had at some point been processed by Photoshop Elements as they were imported/edited using that application in 2010 but the metadata problem didn't show up until recently when I was making some adjustments in Lightroom. I somehow think this may be related to the GPS tag though I don't have sufficient evidence.
    The DNG file was strange in that it was straight the camera with no Lightroom adjustments, although I did add GPS info in the Map module. Anway it is now fixed as well as the jpegs.
    With this preset it would be possible quickly to fix a large number of image files. Just create a Smart Collection to display the problem files and run the preset on them all in one go. The only things that I am aware of that you would need to look out for are (1) if they are in a collection other than a smart collection, or have been published to a service like Flickr or to the Hard Disk the link will be broken, and (2) If you like to sort photos by date/time added, they will be out of the sequence (capture time is fine).
    When you are satisfied that this has worked OK then you can delete the images from the "Metadata Not Up To Date" smart collection. Select all, go to all photos, they should remain selected and press Delete. You could do a thousand in one go if you have the nerve for it
    Hope this helps.
    Peter

Maybe you are looking for

  • ATV and HDCP Compliance

    When trying to watch rented content, the ATV says that my connection is not HDCP Compliant and that I should use component cables. I'm using an HDMI cable connected directly to my HDTV. The users guide of my Mitsubishi WD52627 says that the HDMI port

  • 2 Country Accounts - Possible?

    I have a UK account with iTunes that I have used since I lived there. Now I live in Kuwait, I would like to open an account here as it's cheaper! However, I still want to be able to access the UK site for TV programs etc. as censorship means I cannot

  • How do I fix Error 400 Bad Request?

    I am unable to access the internet on my mobile android phone it a LGC 800. Thanks for your help. This a problem that just started this morning.

  • How to do one way synch from PC to phone ONLY for contacts and Calendar

    Does anyone know how you can synch only ONE WAY - from Outlook on PC to Iphone? I want no information to change in Outlook Calendar or Contacts. I don't want the phone to make any changes to Contacts or Calendar on PC. Thanks!

  • JFileChooser - prevent the user to change directory

    Hi, I am using the class JFileChooser using the constructor JFileChooser(File path), i would like to prevent the user to change the directory showed, to limit the file choose to the given directory. Is it that possible? if yes, how? Thanks, Nite