Viewing the logged front panel data

I’m writing into the datalog file, I can see that the data is recording every one second, but when I retrieve the data i.e. viewing the logged front panel there is only one data since the range is from 0 to 0 ([0..0]). Does anyone know why? And how can I fix the problem?

You should Never rely on the abort button on the tool bar to stop a VI in a loop writing to a file. The abort stops everything immediately and you don't properly close the file. Instead of using a boolean contant in your loop to get you an endless loop, add a Stop button (a boolean switch) to your front panel. Wire that through an inverter to the Continue terminal of the loop, or (if you're using LabView 6.x) right-click on the Continue terminal and change to Stop if True, then wire the Stop button directly to the terminal. Then pass the file RefNum out of the loop to the Close File function.
For debugging purposes, I do use the Abort toolbar button, but I never create a VI with the Abort as the only means of stopping a VI. Anytime you want to st
op a VI in a loop, you may want to have some control over how it stops. There may be files to close, instruments to shut down, results to process, etc. Even if the VI is very basic or even temporary, just get in the habit of using a Stop button on your front panel rather than a boolean constant to get an endless loop. It's really not that much more work and it gives you control over your VI.

Similar Messages

  • Viewing the results of a "Data Retrieval Rule"

    Viewing the results of a "Data Retrieval Rule"
    RC2008.3 SANDBOX
    ORACLE 10g
    Websphere 6.1
    IE6 & 7
    Hello:
    Does anyone know if there is a log available that will show the SQL that is sent to the server during a DataRetrievalRule?.
    I had my rule working at one time, and now my values are returning blank.
    So I am hoping that there is a log somewhere so that I can see what is going on.
    thank you
    Daniel
    Safeway Inc.

    The idea here is to not drag and drop a datastore as a target, but to create this datastore directly in the interface. You can then use this interface as source of another interface.
    here is the doc... Let me know if you need more help.
    Target Datastore
    An interface can have only one target datastore. There are two possibilities for this datastore:
    A permanent datastore, corresponding to a datastore that already exists in a model.
    A temporary datastore, that does not yet exist in a model, and which will thus be created dynamically by the interface, in either the work or data schema of the logical schema of the Staging Area specified on the Definition tab of the interface.
    The target datastore, with the mapping for each column, is displayed on the right of the Diagram tab.
    To edit the properties of the target datastore, click on the datastore title. The properties panel will appear at the bottom of the window.

  • Create OPC I/O server and front panel data socket problem

    Hi all!
    I installed the NI OPC server. When I try to create a new server I/O in a LabVIEW project I don't see the "OPC client" possibility.
    Is something software missing? 
    Other question: I tryed to connect to OPC server using front panel data socket but my problem is same. When I click the numeric control and I go to the "data operation" menu there is no possibility to make data socket connection. 
    I don't know what is the problem.
    I attached two pictures about my problem. 
    Solved!
    Go to Solution.

    Dear vajasgeri1,
    do you have LabVIEW DSC module installed? Without it you will not have the OPC client funtionality.
    And to configure DataSocket binding you need to go to the Data Binding tab in the Properties of a control.
    BR,
    Mateusz Stokłosa
    Applications Engineer
    National Instruments

  • Diagnostics(How to view the log files)

    Hi All,
    In weblogic 9.2MP3,
    In the console navigate through the following ,
    Diagnostics->log files->server logs.
    Click on customize this table.
    Select logging as custom.
    My question is what should be the Start Time and End Time format when logging selected is custom.
    I tried giving different formats but was not successful in viewing the logs for the said date and time.
    Any help on this would be highly appreciated.
    Thanks.

    The format of the start and end timestamp ranges are "MM/dd/yy HH:mm:ss" for example 12/01/09 12:00:00. Give this a try.
    Thanks

  • How to configure and view the log file

    Hi all,
    I   want to view the log file generated on the server when an application is deployed to see the trace of an exception.
    But i dont know how to access it.
    Please if anybody can help me.
    Thanx in advance.
    Regards,
    Neetu

    HI,
    You can see the log file from
    Sys admin->support->portal runtime->log viewer
    See the time and date given in the top of each file name,
    in the search field enter u r portal ID and search to find your error.
    search for the latest log file(see the date and time) and search with u r portal id to find the error.
    Message was edited by: Kirupanand Venkatapathi

  • How can i use the same front panel graph in more than one events in an event structure?

    i want to display the signals from my sensorDAQ in a graph.but i have more than one event in the event structure to acquire the signal and display it in the graph.the first event is to acquire the threshold signals and its displayed in the graph as a feedback.after the first event is executed, i will call the second event,where the further signals are acuired and compared with the threshold signals from the event 1.my question is how can i use the same front panel control in more than two events in the event structure?please answer me i'm stuck.
    Solved!
    Go to Solution.

    Hi,
    I have attached here an example of doing the same using shift registers and local variables. Take a look. Shift register is always a better option than local variables.
    Regards,
    Nitzz
    (Give kudos to good answers, Mark it as a solution if your problem is Solved) 
    Attachments:
    Graph and shift registers.vi ‏12 KB
    graph and local variables.vi ‏12 KB

  • How to show in the main front panel the progress of each sub Vi ?

    my program has many sub VIs, i wish to show in the main front panel the progress of each sub Vi; what is the best way to do that?
    atleast i need to show that each sub vi is completed, [can i add details on the main front panelsuch as: filename that is being read by a subVi, graphs plotted by a subVi, etc..]
    can i display a graph from a subVi on the front panel of the main Vi?
    what i hv done is attched as picture.
    Solved!
    Go to Solution.
    Attachments:
    Capture4.JPG ‏152 KB

    as suggested...pass references and cntrl references
    Spoiler (Highlight to read)
    Attachments:
    main ref cntrl.zip ‏27 KB

  • How to place event callback components and "main-VI" components in the same Front Panel?

    What I'm trying to accomplish:
    Place a .NET component, which generates events, and other standard LabVIEW components in the same Front Panel. The standard LabVIEW components should be updated when events are being generated in the .NET component.
    How I tried to solve it:
    Problem:
    The event callback code must reside in a separate event callback VI. In order to "pass the event up" to the main VI I tried to use a global variable. The interrupt does occur:
    but I was hoping that the string indicator would be updated when the event occurred, but it wasn't.
    Questions:
    What's the best way to solve what I try to accomplish? If I want to solve the problem on the picture above, how would I do it (it may not be the best solution, but I'm still curious what's wrong)? Please feel free to be over-explicit when replying as I am novice LabVIEW programmer. Thanks in advance for any help.

    There are two bundle functions for creating clusters. The function simply called Bundle operates almost exactly like the Build Array function I showed. The type of the output cluster depends on whatever you wire in as inputs. You don't have to supply a specific type parameter.
    The function called Bundle by Name takes in a specific type of cluster in the top input and allows you to fill in the values of that specific type of cluster. To create the specific type of cluster you want, you need to create a cluster of string references. Here's how to do that:
    Go to the Front panel and drop down an empty cluster shell.
    Go to the Refnum palette and drop down a Generic Control Refnum. Now here's a cool trick to turn that generic refnum into a string-specific refnum (a so-called strictly-typed refnum). Grab a string from the controls palette and drag it into the Generic Control Refnum. Once you drop it, you'll see the refnum change its icon to display a string picture.
    Make copies of this string refnum (as many as you need) and add it to the cluster shell.
    Now, if you're making specific types of clusters to work with, now is the absolute best time to learn about typedefs if you haven't already. It will save you hours and hours (if not days) of development time in the future. Trust me!
    Jarrod S.
    National Instruments

  • How to make the LV front panel controls the current value through the program is set as the default value when the next time you open?

    How to make the LV front panel controls the current value through the programis set as the default value when the next time you open?
    1110340051 

    Try this: Re: How to make a VI remember the latest control value?
    Jim
    You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice

  • Using the soft front panel to take a differenti​al measuremen​t.

    I have a PXI- 5152 digitizer and need to use the soft front panel to take a differential measurement. I found how to do this by programmatically, but cannot figure out how to do this  on the soft front panel. Can anyone help?

    Hi Towleb1,
    From you second sentence in your question I assume you already found this resource, but just in case I wanted to provide you with a white paper called Differential Measurements Using High-Speed Digitizers. This is a fantastic resource that includes flowcharts and instructions for hardware self-calibration, probe compensation, gain and offset calibration, and actually taking the differential measurement itself.
    As far as taking a differential measurement with the NI SCOPE Soft Front Panel, are you talking about taking a single differential measurement or are you talking about taking a differential measurement between two channels on the PXI-5152?
    You mentioned that you found how to do this programmatically, but is there a reason you specifically want to use the NI SCOPE Soft Front Panel instead of LabVIEW?
    Sam B.
    Applications Engineer
    National Instruments

  • Want FM to view the LOG

    Hi Friends,
         I Did BDC for VF01.
         i got the message "No billing documents were generated. See log"
        Is there any function module to view the log.
    Thanks & Regards,
    Vallamuthu.M

    Hi,
    check these Fms..
    BORGR_ERRORLOG_GET_DETAIL
    C14E_ERROR_LOG_DISPLAY
    COCS_DISPLAY_ERROR_LOG_LIST    Displaying Log or Error Messages
    EDI_DISPLAY_ERROR_LOG
    FI_INTITIT_DISPLAY_ERROR_LOG
    GRMG_WRITE_ERROR_LOG           GRMG: Write error log
    HRGPBS_ERROR_LOG_DISPLAY       Display the Error Log
    HRPAY00DEC4_ERROR_LOG_DISPLAY  Display the Error Log
    KBPT_ERROR_LOG                 Output error log
    ADSUBCON_DISPLAY_ERROR_LOG     Display error log for unplanned material exchange (UME)
    WB2_ERROR_MSG_APP_LOG_DISPLAY
    Arunima

  • How to data log graphs using front panel data logging?

    Hello I have a VI that collects data from DAQmx thermocouple readings and graphs the temperature vs time using a while loop to collect data and graph. I have 9 control operators that define the correction factor of the thermocouples.
    I want to create a datalogging using the option under Operations>Data Logging
    When I retrieve the data the only information that is present are the control operators correction factors that I defined. The graphed data that was created is not retrieved.
    Is there a solution to show the graphed data plots that were created on the front panel? They remain unchanged from the last run of the VI or blank if I open the VI without having ran the program.
    Thank you.

    This is expected for the Data Logging in LabVIEW. If you want to record the signla data, use the Write to Measurement File Express VI.  Here's a link with a walk-through:
    http://www.ni.com/academic/students/learn-daq/data-logging/
    The Data Logging from the Operate Menu is for recording front panel control(s), as you have observed.
    Mark P.
    Applications Engineer
    National Instruments
    www.ni.com/support

  • Can I have an array of controls without having them in the array front panel holder?

    I would like to link a number of boolean control buttons in an array without grouping them on the front panel the way it does when you make an array and then put in a boolean control.
    Here's the background:
    I have 8 linear motors controlled by CANbus, and so each button type (Move, Stop, Home, etc) is duplicated 8 fold.  I have an event structure that is currently triggered with a separate case for EVERY button with only a very small difference in the code inside each case.  Ideally I could have the buttons in arrays and then check the new array value against the old value on a value change event.  The alternative for me is to have each case handle the 8 buttons (with a Mouse Down? filter event) and then use the Boolean.Text value from the CtlRef and search an array of all Boolean.Text Values for the 8 buttons to see which name matches and process accordingly.  I have something like 200 buttons, so making the arrays of Boolean.Text values from the reference nodes is WAY too time consuming as I have to go through like 5 levels of right click menus.  Any suggestions?  

    Mark,
    You might consider using clusters on the front panel.  Create a type def'd cluster that has all the boolean controls for 1 channel.  You can drop 8 of these on the front panel and the event structure can detect a change in a cluster.  Easy to convert cluster to array behind the scenes.  Remember that order of cluster determines index of value in array.
    Message Edited by Wayne.C on 04-09-2010 05:19 PM

  • Will I lose points on the CLD Exam if I use a Launcher vi in addition to the provided Front Panel?

    Hi!
    In this thread: https://decibel.ni.com/content/message/50512#50512, MattP directed me to this Certification Board.
    If I use the Actor Framework in a CLD exam, will I lose points for launching the Front Panel? For two specific examples of what I mean, please refer to the solutions submitted here:
    ATM: http://forums.ni.com/t5/Certification/Sample-Exam-Solutions-for-Review/m-p/2380868#M728
    Boiler: http://forums.ni.com/t5/Certification/Sample-Exam-Solutions-for-Review/m-p/2385580#M738
    Thanks!
    Solved!
    Go to Solution.

    Hi,
    You will not loose points for using the launcher, and not documenting the message classes.  The folder structure is also fine.
    Do document the other VI's, actors,and SubVI's.   Remember be brief with documentation.
    Mark Ramsdale
    Project Manager and CLD
    Customer Certification and Training at National Instruments

  • How can I hide the main front panel when I run from the executable?

    Hopefully this is an easy question. I have an application where the front panel is not the main GUI and I would like to hide it when the program runs, but only when it runs from the executable. How can I do this?

    NIquist wrote:
    Yeah, don't do that. Executables built in LV require at least one front panel to be open. If it isn't, the run-time engine automatically closes the executable. I haven't checked recently, but I assume this is still the case.
    Instead, you can set the FP state to minimized (as suggested earlier) or (better) to hidden.
    P.S. one side point - the property and invoke nodes have a shortcut - if you use the Application or VI classes and don't connect a reference, they default to the current app or VI. That means you don't have to open the reference.
    Try to take over the world!

Maybe you are looking for