To measure and save the data of an instrument for a particular time

Hello frds
the problem might be simple for expertise. However, i am relatively new in labview. I need to measure the data of an optical power meter for some time. for e. g 5min and store this measurment on. txt file. I made a VI. But, I am seeing data in  real time waveformchart. donot getting an idea about how to store this chart data (x and y) in a file . The labview version in our lab is 7 which donot have data logging.
pls help me

Hi,
You may want to include 'Time-stamp' along with every data-point (sample from the instrument) you read. And after the desired period (in this case 5 minutes), you need to save both in a file (binary or text). Then on reading that file, you'll be able to display the data-points on a 'X-Y Graph'.
The code will look like:
Don't forget to customize the appearance of 'X-axis' display property as shown below.
As you're using LabVEIW version 7.0, I've saved the same code in version 8.0 (I can't further downgrade the code)
I am not allergic to Kudos, in fact I love Kudos.
 Make your LabVIEW experience more CONVENIENT.
Attachments:
Sample with Time-Stamp.vi ‏27 KB

Similar Messages

  • How to measure and limit the data volume?

    Morning.
    I need a tool to measure and limit the data volume of internet usage. My internet tariff allows a maximum of 5 GB data volume per month. Exceeds my usage that amount the bandwidth will reduce to only 64 kB/s or the exceeding data volume must be paid extraordinarily expensive.
    Do you know a tool that measures the data volume in a given time period and can alert or limit the internet connection for instance if the data volume at the half of the months has exceeded more than the half of the data volume for the entire month?
    Kind regards, vatolin

    You could generate large amount of data and then use any SNMP Viewer (BMC Dahsboard, Solarwinds, Nagios, CiscoWorks etc.) to see the throughput of the interfaces at peak. But why bother? Cisco has been commented by numerous research firms (Gartner etc.) to be very precise about their stated throughputs.
    Regards
    Farrukh

  • How to modify and save the data in the table control

    how to modify and save the data in the table control

    hi priya,
    kindly go thru the code below.
    PROCESS BEFORE OUTPUT.
      MODULE status_9010.
      LOOP WITH CONTROL tab_control.
        MODULE move_data_to_table.
      ENDLOOP.
    PROCESS AFTER INPUT.
      MODULE user_cancel AT EXIT-COMMAND.
      LOOP WITH CONTROL tab_control.
        MODULE move_data_from_table.
      ENDLOOP.
    MODULE move_data_to_table OUTPUT.
    This is to move the data from the internal table to *the table control
    *zmpets_mode-modecode, zmpets_range-rangeid, *zmpets_servfacto-factor are field names of the table *control columns.
      READ TABLE int_factor INDEX tab_control-current_line.
      IF sy-subrc = 0.
        zmpets_mode-modecode = int_factor-modecode.
        zmpets_range-rangeid = int_factor-rangeid.
        zmpets_servfacto-factor = int_factor-factor.
      ENDIF.
    ENDMODULE.                 " move_data_to_table  OUTPUT
    **********************************************8888
    MODULE move_data_from_table INPUT.
    *To move the data from the table control to internal *table 'INT_FACTOR'.
      int_factor-chk = line.
      int_factor-modecode = zmpets_mode-modecode.
      int_factor-rangeid = zmpets_range-rangeid.
      int_factor-factor = zmpets_servfacto-factor.
       MODIFY int_factor INDEX tab_control-current_line.
        IF sy-subrc NE 0.
          APPEND int_factor.
          CLEAR int_factor.
        ENDIF.
    ENDMODULE.                 " move_data_from_table  INPUT
    if this helps , kindly award points.
    for any clarification just mail me.
    regards,
    Anversha.S
    [email protected]

  • How do I save IRS pdf forms so that I can fill in and save the data

    when I downlaod a US government IRS form I am unable to fill in the form, save the data and print, I have tried saving as a pdf from the print menu and using the tools menu none of which works

    I know there is an app called PDFPen that is supposed to fill in PDF forms.  PDFPen is available in the App Store, but it is not free.
    I have no financial interest in PDFPen.  I also don't know if there is some cheaper way to fill in the forms.

  • How to insert row in table control and save the data in tables

    Hi,
    I have one table control i am displaying data into table control ,
    my problem is : i want to display data into read mode in table control.
    but when i click on insert button on the same screen i want one blank line should inserted into table control , then i want to insert some data into table control on that row , when i click the save button . the new data inserted into the table control is insert that data into ztable ,
    please give me solution
    main problen is  how can know inserted line in table control and pass that data into ztable.

    Hi,
    Follow the below logic,
    PROCESS BEFORE OUTPUT.
      MODULE STATUS_0001.
      MODULE POPULATE_TABLE_CONTROL. --> Get the data from table store in 
                                                                          ITAB
      LOOP AT GT_CTRL_LP_D516 INTO GS_WA_CTRL_LP_D516
           WITH CONTROL CTRL_LP_D516
           CURSOR CTRL_LP_D516-CURRENT_LINE.
      The following module moves data to control
        MODULE MOVE_TO_CONTROL.--> Move data from ITAB to table control
      ENDLOOP.
    PROCESS AFTER INPUT.
      LOOP AT GT_CTRL_LP_D516.
      ENDLOOP.
      MODULE EXIT AT EXIT-COMMAND.
      MODULE USER_COMMAND_0001.  --> Here you have to take out the values from table control and update database table
    Reward points if helpful.
    Thanks and regards,
    Mallareddy Rayapureddy,
    Munich, Germany.

  • I can not boot my MacBook Pro. How do I get and save the data that is not backed up??

    I can not boot my MacBook Pro running on Lion 10.7.4. I pressed control, comment P and R keys and O got to the disk utility, then I tried to repair disk and it can not be repaired. I get a message that tells me to back up as much data as possible ?. But if I can not open the computer how can I save my data??
    I have a back up until 2 weeks ago on time machine. but the work of the last 2 weeks is extremely important how can I get it??
    If I use m time machine backup do I loose the additional data of the last two weeks!,
    Please help.. It's a huge amount of work that I have done and can not loose it

    If it were me, I'd get a new hard drive or SSD and put it in an external enclosure. Boot into the recovery partition, format the new drive (not the old one) and install the OS to it. Shut down the Mac, open it up, and swap the drives. You may be able to read your data from the old one externally if you're lucky. If you're very lucky you may be able to use Migration Assistant to move all your stuff to the new drive.
    Look at ifixit.com for the exact procedure to get to the drive on your model. If it's a unibody it's pretty simple.
    http://www.amazon.com/Sabrent-2-5-Inch-Aluminum-Enclosure-EC-TB4P/dp/B005EIGUD4/ ref=sr_1_3?ie=UTF8&qid=1392154588&sr=8-3&keywords=2.5+enclosure

  • Will somebody provide me with a QBASIC 4.5 PROGRAM for Interfacing with a Anritsu make(model-MS710) Rf spectrum analyser through GPIB ( NI-488.2 ) in DOS environment? I would like to aquire from the instrument and save the data in PC.the data

    Will somebody provide me with a QBASIC 4.5 PROGRAM for Interfacing with an Anritsu make(model-MS710) RFspectrum analyser through GPIB ( NI-488.2 ) in DOS environment? I would like to aquire data from the instrument and save it in PC for printing purpose.

    Hello,
    Unfortunately I was unable to find a driver for this instrument. This leaves you with one of a couple options. First, I would like you to submit a request for this driver at:
    http://www.ni.com/devzone/idnet/other.htm
    We develop drivers in CVI and LabVIEW based on demand and popularity so the more requests we have for it, the greater the possibility that we will develop one. While this would not provide you with a QBASIC program, you may be able to create a DLL that you could call from QBASIC.
    If you would like to try developing your own instrument driver (or modify the existing one), we have documentation, model instrument drivers, and driver templates to help at :
    http://www.ni.com/devzone/idnet/development.htm
    We also have a syndica
    te of third party vendors that specialize in National Instruments' products and services. Some of the vendors specialize in driver development. I would suggest contacting one of the Alliance members at:
    http://www.ni.com/alliance
    Good Luck,
    Kim L.
    Applications Engineer
    National Instruments

  • How to measure thermocouple in lab view and save the data..

    hi.. i am using my DAQ with 2 analog channels.. i need to acquire signal from thermo couple i have T type thermo couple with brown jacket.. i have connected the thermocoupe in ai0.. and i selected the thermocouple type... when i select the built in option.. it shows some error.. then if i use cjc value as constant 25 its working.. but the signal acquired is not matching well.. it show huge variation.. some times it goes for -20 and maximum of 60 which is not possible at all...just in air medium i checked it... when i used infrared thermometer it shows around 24 C... kindly help me.. i have attached the screen shot of the block diagram panel... and acquired signal..
    Attachments:
    Doc1.docx ‏425 KB

    Hi,
    You hooked up to the analog inputs on your device correctly. Thermocouples measure the difference in temperature between the DAQ and the location where the wires are welded together. They need to be insulated thermally and electrically in-between. Thermocouples have very low response compared to the normal 10 volt DAQ range. Type T is only 43 uV/C (thats 0.000043V compared to 10 volts). To see if the thermocouple is working, you need to heat up the welded end. They measure 0 V when the welded end is at room temperature. Type T only goes up to a few hundred C, so be careful, but you can probably wave a lighter under it to see if it's working. You might try the audio in on your device. You don't need a high sampling rate and it may have a better amplifier and dynamic range.
    To get absolute temperature you need to offset the thermocouple reading from the DAQ temperature (room temp usually). You could do this by measuring it with your IR thermometer. Check into the NI 9211 and simliar which are much better suited to thermocouple measurements.
    Good luck!

  • Activating a vi on a remote computer (and transferring the data back) via a TCP/IP connection

    Hi all,
    I need some help in creating a vi that can be activated remotely using a TCP/IP connection. Can this be done. If it can, I have a vi (that would be on the remote computer) that manipulates the data as required and saves the data file. While the connection is open, I need to retrieve the data file from the remote computer. Can anybody help, I am running labview 6.
    Thanks
    Ridge

    Ridge,
    This is what the "i" in LabVIEW 6i stands for. Internet applications (collection of data through IP) was a basis for the release of 6i. This is not only a capability, but is built in as easy to do.
    Unfortunately, I have little experience in this arena. I have built TCP/IP client server relationships, but never remotely controlled a VI over IP, so I can't advise you.
    I would suggest the following:
    Look up remote VIs on NI's website, specifically in Application Notes, and examples/downloads.
    Check the examples that ship with LabVIEW.
    Look for other documentation within LabVIEW (search through help).
    Contact your local sales rep for some assistance.
    I do remember seeing some kind of demo about this a long time ago, and remember
    it being extremely easy. However; I never had use for it, so I never did anything with it.
    You should have the ability to get started very quickly.
    Good luck, and let us know how you do.

  • How to continuous​ly do AOAI and buffer the data for later use?

    Is there a way to do simultaneous AI and AO and keep the data in the buffer until I am finished with reading, then read the buffer and save the data to disc. I want to acquire 1000 scans on up to 10 chanels at 10 000 Scans/s, while generating one output signal.
    I have seen plenty of continuous AIAO examples, but all they do is show the data. I don't mind not viewing the data, all I want is to hold it for later analysis, while avoiding writing to disc as I fear this will slow the process too much. Or would a different approach than simultaneous AIAO be more appropriate?
    I am using LabView 6.1 with 6024E DAQ card on a P-IV 1.5GHz.

    Use this vi MainProg.vi in the llb
    i use a same engine to acquire at 2 MS/s and generate at 3 MS/s
    "Fil" a ?crit dans le message de news:
    506500000008000000C8620000-1031838699000@exchange.​ni.com...
    > Is there a way to do simultaneous AI and AO and keep the data in the
    > buffer until I am finished with reading, then read the buffer and save
    > the data to disc. I want to acquire 1000 scans on up to 10 chanels at
    > 10 000 Scans/s, while generating one output signal.
    > I have seen plenty of continuous AIAO examples, but all they do is
    > show the data. I don't mind not viewing the data, all I want is to
    > hold it for later analysis, while avoiding writing to disc as I fear
    > this will slow the process too much. Or would a different appro
    ach
    > than simultaneous AIAO be more appropriate?
    > I am using LabView 6.1 with 6024E DAQ card on a P-IV 1.5GHz.
    [Attachment 4x10KSps to Disk& generate AO.llb, see below]
    Attachments:
    4x10KSps_to_Disk&_generate_AO.llb ‏128 KB

  • How can i read the text files and buffer the data in Vector?

    hi. I have been running into this problem for days, but with no luck and losing right direction.
    The problem is : I am trying to read a text file and buffer the data into a
    Queue for each user.
    the sample text file is as below:( 1st column is timestamp, 2nd is user_id, 3rd is packet_id, 4th is packet_seqno, 5th is packet_size)
    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
    17 8 2 18 512
    18 9 2 19 512
    19 10 2 20 512
    20 1 3 21 512
    21 2 3 22 512
    22 3 3 23 512
    23 4 3 24 512
    24 5 3 25 512
    25 6 3 26 512
    26 7 3 27 512
    27 8 3 28 512
    28 9 3 29 512
    29 10 3 30 512
    30 1 4 31 512
    31 2 4 32 512
    32 3 4 33 512
    33 4 4 34 512
    34 5 4 35 512
    35 6 4 36 512
    36 7 4 37 512
    37 8 4 38 512
    38 9 4 39 512
    39 10 4 40 512
    40 1 5 41 512
    41 2 5 42 512
    42 3 5 43 512
    43 4 5 44 512
    44 5 5 45 512
    45 6 5 46 512
    46 7 5 47 512
    47 8 5 48 512
    48 9 5 49 512
    49 10 5 50 512
    50 1 6 51 512
    51 2 6 52 512
    52 3 6 53 512
    53 4 6 54 512
    54 5 6 55 512
    55 6 6 56 512
    56 7 6 57 512
    57 8 6 58 512
    58 9 6 59 512
    59 10 6 60 512
    60 1 7 61 512
    61 2 7 62 512
    62 3 7 63 512
    63 4 7 64 512
    64 5 7 65 512
    65 6 7 66 512
    66 7 7 67 512
    67 8 7 68 512
    68 9 7 69 512
    69 10 7 70 512
    70 1 8 71 512
    71 2 8 72 512
    What I wanna do is to read all the data above and buffer them in a queue for each user( there are only 10 users in total).
    I already created a class called Class packet:
    public class packet {
        private int timestamp;
        private int user_id;
        private int packet_id;
        private int packet_seqno;
        private int packet_size;
        /** Creates a new instance of packet */
        public packet(int timestamp,int user_id, int packet_id,int packet_seqno, int packet_size)
            this.timestamp = timestamp;
            this.user_id=user_id;
            this.packet_id=packet_id;
            this.packet_seqno=packet_seqno;
            this.packet_size=packet_size;
    }then I wanna to create another Class called Class user which I can create a queue for each user (10 users in total) to store type packet information. the queue for each user will be in the order by timestamp.
    any idea and sample code will be appreciated.

    Doesn't sound too hard to me. Your class User (the convention says to capitalize class names) will have an ArrayList or Vector in it to represent the queue, and a method to store a Packet object into the List. An array or ArrayList or Vector will hold the 10 user objects. You will find the right user object from packet.user_id and call the method.
    Please try to write some code yourself. You won't learn anything from having someone else write it for you. Look at sample code using ArrayList and Vector, there's plenty out there. Post in the forum again if your code turns out not to behave.

  • One of the folders on my external hard drive has transformed into a unix executable file and I can no longer access my files. Is there any way to save the data?

    One of the folders on my external hard drive has transformed into a unix executable file and I can no longer access my files. Is there any way to save the data?

    Wow, have seen Files do that, but a whole Folder as I recall!
    Could be many things, we should start with this...
    "Try Disk Utility
    1. Insert the Mac OS X Install disc, then restart the computer while holding the C key.
    2. When your computer finishes starting up from the disc, choose Disk Utility from the Installer menu. (In Mac OS X 10.4 or later, you must select your language first.)
    Important: Do not click Continue in the first screen of the Installer. If you do, you must restart from the disc again to access Disk Utility.
    3. Click the First Aid tab.
    4. Select your Mac OS X volume.
    5. Click Repair. Disk Utility checks and repairs the disk."
    http://docs.info.apple.com/article.html?artnum=106214
    Then try a Safe Boot, (holding Shift key down at bootup), run Disk Utility in Applications>Utilities, then highlight your drive, click on Repair Permissions, reboot when it completes.
    (Safe boot may stay on the gray radian for a long time, let it go, it's trying to repair the Hard Drive.)

  • A string that can be displayed as both ASCII and hex in an indicator will only save the data to a file in ASCII format

    We can see the data in an indicator just fine, but when we try to write that string of hexadecimal data to a file, it will only save the data in ASCII format.  
    This sounds fairly simple, as the indicator can be selected to display the data in several different formats (VI>Properties>Appearance>Display Style: Normal, Backslash...., Hexadecimal).  However, I have been unable, as of yet, to save the data in different formats.
    Solved!
    Go to Solution.

    altenbach wrote:
    ... or you could just read the string:text.text property to get whatever is actually displayed.
    like this...
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    texttextString.PNG ‏6 KB

  • Is there any way to save the data on my ipod if it is in recovery mode and has to be reset?

    Is there any way to save the data on my ipod if it is in recovery mode and has to be reset?

    Only if this program will get the iPod out of recovery mode.
    RecBoot: Easy Way to Put iPhone into Recovery Mode

  • HT1339 Hi i have an I pod and i had used it as hard disk also. Now when ever i connect it with my Laptop it shows restore to factory setting....i wanted to knwo is there any way i can save the data which i had already stored in the I pod

    Hi i have an I pod and i had used it as hard disk also. Now when ever i connect it with my Laptop it shows restore to factory setting....i wanted to knwo is there any way i can save the data which i had already stored in the I pod. I dont want to loose that data???

    sure pretty simple.  make a backup of your current settings
    http://support.apple.com/kb/HT1766?viewlocale=en_US
    then restore device from old backup you need pics off of
    then import pics to computer
    http://support.apple.com/kb/HT4083
    you may need to save pics to camera roll first
    then restore the new backup and sync pics back to phone via itunes
    Peace, Clyde

Maybe you are looking for