+ Reply to Thread
Results 1 to 3 of 3

data logging / data capture

  1. #1
    Registered User
    Join Date
    08-28-2013
    Location
    San Francisco, CA, USA
    MS-Off Ver
    Excel 2010
    Posts
    2

    data logging / data capture

    I am capturing the data output from a CO2 incubator, using TeraTerm, into a log file. An example of the data is below. I would like to be able to use VBA to copy the fourth value after each asterisk and nothing else, and paste it into an excel worksheet. Can anyone steer me in the right direction? Thanks for any help here!

    -Penny

    *
    0503
    0012
    0503
    0507
    0000
    0000
    Current CO2: ,503
    Predicted CO2: ,503
    Displayed CO2: ,507
    Predictor Gain: ,0
    CO2 injection (0/1): ,0
    CO2 report errors: ,0
    M400 read errors: ,0
    Bad or prohibited cmd: ,0
    Busy retries: ,0
    Loop count: ,2494
    ----------------------------

    *
    0504
    0012
    0503
    0507
    0000
    0000
    Current CO2: ,504
    Predicted CO2: ,503
    Displayed CO2: ,507
    Predictor Gain: ,0
    CO2 injection (0/1): ,0
    CO2 report errors: ,0
    M400 read errors: ,0
    Bad or prohibited cmd: ,0
    Busy retries: ,0
    Loop count: ,2495

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,168

    Re: data logging / data capture

    Hi Penny and welcome to the forum,
    (I have a sister named Penny who now goes by PJ and lives in So SF)

    Find the attached where I've written a macro to do what you want.

    Open the attached and import your log file. It should go into Column A. Then run the macro which looks for "*" in column A and copies the 4th number after the "*" to column E.

    Hope this helps.
    Attached Files Attached Files
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Registered User
    Join Date
    08-28-2013
    Location
    San Francisco, CA, USA
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: data logging / data capture

    This is terrific! Works a treat. Thanks so much for your help.

    -Penny

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Capture real time data/DDE capture
    By rajre in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 01-07-2022, 05:14 AM
  2. Excel 2007 : Logging XML/RSS data
    By pgh1212 in forum Excel General
    Replies: 0
    Last Post: 07-22-2010, 09:52 PM
  3. Logging data with DDE link
    By whtrader in forum Excel General
    Replies: 1
    Last Post: 12-05-2006, 10:13 AM
  4. [SOLVED] Logging data using the same textfile over and over again
    By Silencer116 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-22-2006, 07:15 AM
  5. Live DDE Data Logging
    By MadManInABox in forum Excel General
    Replies: 1
    Last Post: 09-19-2005, 05:05 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1