Capture data and store it in a spreadsheet file

Hello,
I want to capture the waveform data from the scope TDS 744A for a specific period of time after a certain interval of time the trigger occurs, store it in a spreadsheet file and then plot the data points in the excel spreadsheet automatically. The trigger should occur as soon as the scope sees some input and after a specific period of time the data is captured and ploted on excel spreadsheet. Can you help me to do this.

I'm sorry that I don't hav experience with your specific scope, but in general the GPIB commands mirror the operation of the manual controls. If you know how to set up the triggering on the scope manually look for the GPIB commands that do the same things. If you are still having problems in a couple more day and no one is responding to this thread you might want to repost the scope-specific portion of the question being sure to mention "Tek 744" in the subject line. That will increase the likelihood of someone who knows that instrument spotting the problem.
Mike...
Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion
"... after all, He's not a tame lion..."
Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

Similar Messages

  • How do I add the capture date and time to the bottom corner of a photo?

    How do I add the capture date and time to the bottom corner of a photo?

    Not to the bottom, that I'm aware of, but to the top right or left in Grid view or to the top left in Loupe view. It is in the View Options.

  • How to collect data and store data through printer port usind Dev'6i

    Hi,
    When we make a phone call through a PABX machine, the PABX machine print the call's detail if it is connect to printer. Let us assume, the PABX machine is connected via the printer cable with a PC at it's printer port. Now, the data sending by the PABX machine is reaching to PC's printer port, I would like to collect those data and store in a file(of any format) using Developer 6i. Is that possible? If yes, then how? Do I need to use any ActiveX control? Or is there any other way?
    Please Help me out. Thanks in advance.
    Bivash

    Dear Friends
    I also need a solution to this problem. But it may require sequance / format of information being sent by weigh bridge to the COM port. Normally the W/b company has their own format of information. We might have to change the COMP port speed also .e.g 9600 BPS, 2400 BPS etc.
    Rajan

  • Save waveform data with corresponding time array to spreadsheet file

    Hello to all
    I am looking for a possibility to save voltage data acquired and displayed continousely to a spreadsheet file. Acquiring and displaying is not a big problem, but I have troubble to save the data with the corresponding timestamp with more than seconds accuracy. I am acquiring the data at 1000 Hz and read packages of 500 samples. The recording time should not be limited, it will be started and stopped manually. In fact the acquired voltage data first has to be scaled and than saved. If I use the 'WRITE WAVEFORM TO SPREADSHEET' VI the time column is in seconds' accuracy and that is not what I need. If I create my own time array from the waveform parameters I have timing problems. The accuracy in time should reflect the sample rate. I will attach one of my not very successful trials for better understanding.
    please help a newcomer!
    Thanks in advance
    Thomas
    LV 7.1
    Attachments:
    display & record forces v.1.0.vi ‏181 KB

    I usually follow a simple method to generate time stamp
    I keep sampling rate and number of samples to read as equal and do as shown in the attached VI
    I also remember building a VI with a small modification to this time stamp generation logic to cater to acq, where number of samples to read is half/one fourth/one tenth of sampling rate specified, but cannot find that VI.
    Hope this helps
    Regards
    Dev
    Attachments:
    Acq_DAQmx_filesave_time stamp.vi ‏121 KB

  • How to create a file and store its contents into another file?

    Hi,
    I'm having some trouble trying to create a code where I have to to create a file and store its contents into another file?
    I read the API, but I'm not certain how this file thing works.
    Here's my code so far:
    public static void main(String[] args) throws Exception
              File file = new File("tasks.txt");
              if (file.exists())
                   System.out.println("File already exists");
                   System.exit(0);
              Scanner scan = new Scanner(System.in);
              Scanner scan2 = new Scanner(System.in);
              //Scans the input line by line
              scan.useDelimiter("\\n");
              //Scans the input by tabs
              scan2.useDelimiter("\\t");
              PrintWriter outputs = new PrintWriter("newtasks.txt");
              outputs.print("ok");
              outputs.println(3);
              outputs.close();
         }

    I managed to change my text into uppercase, but how do I store the uppercase content into another file.
    -So this is what I did so far, I took a text file and modified its strings to uppercase.
    -Now I need to put those modified strings into another text file, is there a way where I can do that with my current code?
    -I already tried printwriter, but it doesn't seem to work
    public static void main(String[] args)throws IOException
              //Task[] oneHundredTasks = new Task[100];
              String uppercase;
              String combine;
              Scanner scan = null;
              FileInputStream in = null;
            FileOutputStream out = null;
            PrintWriter output = null;
            try
                 scan = new Scanner(new BufferedReader(new FileReader("tasks.txt")));
                 scan.useDelimiter("\\n");
                 scan.useDelimiter("\\t");
                while (scan.hasNext())
                     if(!scan.hasNext())
                          scan.next();
                     combine = scan.next();
                     uppercase = combine.toUpperCase();
                     System.out.println(uppercase);
            finally
                if (scan != null)
                    scan.close();
            //The program will try the input and output files
            try
                 in = new FileInputStream("tasks.txt");
                out = new FileOutputStream("newtasks.txt");
                int c;
                //The number "-1" is used to indicate that it has reached the end of the stream.
                while ((c = in.read()) != -1)
                    out.write(c);
            finally
                if (in != null)
                    in.close();
                if (out != null)
                    out.close();
         }

  • Is it possible to retreive data and store it in database from a AWM cube?

    Hi all,
    Table to cube is possible by maintaining..but Is it possible to retreive data as it stored in cube and store it in database from a AWM cube?
    Regards,
    Arjun Jkoshi

    Hi there,
    Yes, it is possible - and very easy. Remember an OLAP cube is fully integrated with the Oracle database and therefore treated very much as a native object.
    With 11g OLAP, cube views are created automatically when you define a cube using AWM. These views provide SQL access to the data in the OLAP cube meaning that it is very easy to transfer data into a table using techniques such as 'create table as select * from cube_view' or 'insert into table select * from cube_view'. You can use WHERE clauses to filter specific values from the cube into the table, and in 11g, an optimisation has been added to ensure that NULL rows are eliminated from the result set automatically (OLAP cubes are typically very sparse and therefore contain many NULL values)
    With 10g OLAP, cube views can be added on top of existing cubes that have been created using AWM. It is easiest to do this using the [view generator|http://www.oracle.com/technology/products/bi/olap/viewGenerator_1_0_2.zip] utility from the [OTN OLAP home page|http://www.oracle.com/technology/products/bi/olap/index.html]. With the views in place it is once again very easy to transfer data into a table using techniques such as 'create table as select * from cube_view' or 'insert into table select * from cube_view'.
    I hope this is clear and makes sense. Which version of Oracle OLAP are you using?
    Thanks
    Stuart

  • Insert date and time into write to spreadsheet

    Easy question here
    I need save 4 arrays of data and insert the date and time that it was taken (LV 8.6)
    for example
    9/4/09 10:00:01 AM  4  6  7  2
    9/4/09 10:00:02 AM  4  6  7  2
    9/4/09 10:00:03 AM  4  6  7  2
    9/4/09 10:00:04 AM  4  6  7  2
    Any ideas, I can't wire the timestamp or date/time string right into the create array
    Thanks
    Chris
    Solved!
    Go to Solution.

    Ok
    the basic problem that I see is the the LabVIEW TimeStamp type is a cluster.  Converting it to a dbl gives you a value in seconds elapsed since 1904 Jan 1 12:00AM GMT and, your spreadsheet cannot interprate that (or display that) as a "TIME."   So, you want to convert it to a string (easy TS->String check the help for format options) BUT, you might want to pass all of your data as numbers into your spreadsheet so you can post-calculate or graph other outputs vs. TIME!  This little chunk of code .....
     converts a LV Timestamp to a number that Excel interperates as "the amount of days elapsed since 0 Jan 1900 @ 12:00AM LOCAL."  You will need to format the cell in Excel to display it as a date-time But it can be operated on and graphed against with only Excel's limitations (Excel followed the Lotus bug of erroneously assuming 1900 was a leap year, and Leap seconds are unrecognized)
    Enjoy!
    Message Edited by Jeff Bohrer on 08-06-2009 02:28 PM
    Jeff

  • How to capture date and userdi in the alert mail

    Hi,
      In the alert mail I want to capture the userid, date and time. In the container I can define these variables but I was unable to caputre the values. Iam not using any BPM scenario. Can any body help me in this regard how to capture these values. Thanks in advance.
    Thanks & Regards,
    Mallikarjun.M

    Hi,
      Iam using the correct dict type as you mentioned in the above mail. But in my mail it shows that the container elements ZDATE of type SWFXST_DATE, ZTIME of type SWFXST_TIME as not found. I hope this will be solved.
    Thanks,
    Mallikarjun.M

  • Extract data from Oracle Database and store it into a CSV file format

    Hello.
    I'm trying to export a table from an Oracle Database into CSV file format with any Oracle adaptor and store it into a HDFS system.
    How could I do it?
    Thanks in advance!

    Xavi wrote:
    HI Charles. Could I use.. Oracle Data Integrator Application Adapter for Hadoop? For this purpose?
    Thanks in advancePerhaps. I have to confess that I am not familiar enough with ODI to know if that is within its capabilities.
    You might see if there is a forum for ODI and post your question to that.
    Charles Lamb

  • Call external URL from ABAP userexit, capture data and return it to SAP?

    My apologies if this question has been asked before, but I've searched for a few hours today and haven't found anything directly related to my question.  Thank you in advance for any help you may be able to provide!
    I would like to be able to make a call from an SAP userexit during Sales Order Entry in the VA01 transaction in the SD module to an external website, allow the user to capture some data in the external site and then pass that data back into the userexit where I can use it to populate internal tables, etc.
    I'm completely unfamiliar with Web Dynpro programming, but this seems like a good place to start my search for a solution. 
    Does this sound like a problem that can be solved with Web Dynpro and what documentation or code examples should I reference to go about building such a solution.
    I should also note that I'm hoping to build a solution that could be called from any userexit in R/3, SAP ERP, SAP CRM, etc. and would obviously need to learn about what dependencies to consider (ex: SAP GUI version, SAP product release number, Web AS release, etc.).
    Eric

    Thank you for the response.  Let me provide some additional information.
    The external application will be a Hosted Web page.  It is not an SAP system. 
    The external application will be a web page served by a separate system outside of the company domain(shouldn't matter what the technology is I would think - but the web page will be hosted by a different company than the one calling the URL) that would appear as a web page in which the user will enter data, logic will be performed on that data and then some or all of the data would need to be passed back to the calling point in SAP.
    For practical discussions it doesn't matter to me if the call in ABAP occurs in an SD userexit, in a custom report, in an HR screen or in a CRM business partner screen.  There will be many places where this external application may be called from and I'm just trying to figure out how to call an external HTTPS URL and return data from that web page to the calling point in ABAP.
    I hope that clarifies my question.
    Thanks!
    Eric

  • Pull data and store in a UI  ... please help

    "Code to Pull data from ASCP, OM and Inventory, consolidate the data and push the data to UI "
    this is my task, and i'm kinda new to API's and data pulling ... please help me with the steps ..and procedure to perform this task ...
    Thanks in advance
    Edited by: 1003397 on May 16, 2013 3:50 PM

    need to know the procedure to do the data pull .. while there is a user interface which needs to be populated with those source instances .. hence need to pull the data from all these data sources and populate into the UI ..

  • Date and time formatting in excel spreadsheet

    Hi:
    When I try to pass the data from jsp to excel , the excel sheet can't publish the date and time in the pattern that I wanted. I used SimpleDateFormat to format the date and time when I passed the data from jsp.
    SimpleDateFormat formatter=new SimpleDateFormat ("MM/dd/yyyy HH:mm:ss a");
    Could anyone tell me a solution.
    Thanks.

    Can you describe your problem a bit more. How are you passing the data, what is the error being seen in excel

  • Save digitizer and DIO waveforms into one spreadsheet file

    I am using attached mixedsignalscopeusingtclk.vi for data acquisition and would like to acquire 4-channel of data. My PXI-1042 system has PXI-5122 and PXI-6552, and I am using 2 channels of digitizer and 2 channels of digital I/O. I am using Labview 2010 SP1. The VI generated 1-D array of cluster for analog waveform and 1-D array of digital waveform. How do I save both waveforms to one spreadsheet file?
    Solved!
    Go to Solution.
    Attachments:
    mixedsignalscopeusingtclk.vi ‏258 KB

    Hi,
    You can use a Write to Measurement File express VI. Note that this is the easiest way however not the most efficient way to write to a file.
    Since you have the fetch VIs inside for loops, your output is a 1D array of waveforms. You will need to obtain the waveform element and convert it into a type that the express VI can read. If you unbundle the waveform and grab only the data and connect it straight to the express VI, LabVIEW will automatically place a "Convert to Dynamic Data" block in line to make it compatible. Same applies when you connect the boolean array to the Signals input of the express VI. And if you connect more than one signal to this input, LabVIEW will automatically place a "Merge Signals" block.
    If you reproduce the below code, you should be able to write the two channels to the same measurement file. If you have more than one channel of each type, you can grab multiple elements using the same Index Array block and take them through the same process shown below.
    Hope this helps.
    Tarek B
    Applications Engineer
    National Instruments

  • How do I append data and sequence numbers to a *.csv file name?

    All,
    I am looking for an easy way to build a filename with the data and time included, as well as a sequential number between 1 and 999 in the following format:
    C:\TestDirectory\test_11-08-25_1551_1301_001.csv
    I have looked at using the Express function "Write to Measurement File" but I cannot see an easy way to include column headers as text into the output file.  Maybe someone could show me how to do that?
    Or, someone could point me toward another function that allows me to date and serialize the file name.  Any help would be greatly appreciated.
    I could code all this the old-fashioned, manual way, but I would rather find out if LabVIEW has built in functions that do this first.
    Thanks!

    Like this
    Tim
    Johnson Controls
    Holland Michigan
    Attachments:
    Example.vi ‏13 KB

  • How to provide date and time stamp to the extracted file.

    I 'm downloading data from DB to Flat file using GUI_DOWLOAD. whenever it is executed it is creating with a file name.
    if i rerun the program the file is overwriting with the same name.
    now based on the requirement how many times i executed, that many times file should be individually created and should be added with date and time stamp.
    like
    if when i executed  at the very first time it should saved with filename, date and time.
    say "Address.txt 04/05/2007 07:55:10"
    When i executed it for second time it doesn't overwrite the file.
    it should create a new file.
    like "Address.txt 04/05/2007 07:59:20".
    Please guide me the way if possible code.
    Thanks in advance.

    Hi Vamsi,
                   Use FM 'F4_PROGRAM' to take file from the user .
    In this case user will enter the file name. u can append date & time to that file path.
    Refer this code.
    CALL FUNCTION 'F4_FILENAME'
        EXPORTING
          PROGRAM_NAME  = SY-REPID
          DYNPRO_NUMBER = SYST-DYNNR
        IMPORTING
          FILE_NAME     = P_P_FILE.
    concatenate P_FILE '04/05/2007 07:59:20' into V_FILE.
    CALL FUNCTION 'GUI_DOWNLOAD'
        EXPORTING
          filename                        = v_file
         filetype                        = 'ASC'
          write_field_separator           = 'X'
        TABLES
          data_tab                        = i_tab
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      IF sy-subrc = 0.
        MESSAGE i002.
      ENDIF.
    Reward points if helpful.
    Regards,
    Hemant.

Maybe you are looking for