An Autosave Macro can be a useful tool for long term and continuous data collection, and is most commonly used with our Kaha Telemetry Devices. Please note, this is an advanced solution for experienced LabChart users. The Autosave Macro utilizes the LabChart "Macro" feature to save multiple datafiles of continuous data. Long term data collection can also be done with the Sampling feature or the Scheduler Extension.
Sampling Feature:
Click the toolbar menu "Setup" and select "Sampling..." from the dropdown list that appears to open the Sampling feature's options window. From here you can set LabChart to record one or multiple fixed duration data blocks, started by clicking sample. For more information, see the LabChart Help menu by clicking the question mark in the bottom left of the options window.
Scheduler Extension:
Once the Scheduler Extension has been installed through the LabChart Feature Manager or via our website HERE, it's menu can be found under the toolbar menu "Setup" and opened by selecting "Scheduler...". This extension will allow data to be recorded in multiple blocks starting and ending at set times for set durations all saved to one data file. For more information, see the LabChart Help menu by clicking the question mark in the bottom left of the Scheduler settings window.
Autosave Macro:
An Autosave Macro is different than these other options because it will save separate datafiles containing one block of continuous data of a set duration to a set location. This can be useful compared to the other methods because it will save smaller sized files while recording continuously over multiple days or weeks. Here are step by step instructions for creating an Autosave Macro:
- Start recording the macro: "Macro Menu > Start Recording"
- Note: almost every mouse click is recorded during this time, so be careful of unnecessary clicking
- Set the loop amount under "Macro Menu > Recording Commands > Repeat..." (How many files will be made)
- Click the "Start" button (either top right or bottom right)
- Make sure "Finish sampling before doing other macro steps" is selected
- Set "Stop sampling: Fixed duration" and set the time (in seconds) to the length of the files you'd like to record.
- Go to "File Menu > Save as..." and select where on the computer you would like the files saved
- You can set the file to append the time, date or both to the end of the file name here. I would recommend setting these files to be named "Autosave" + Time and date.
- Click "End Repeat" and "Stop"
- If it is not visible, you can open the Macro code by going to the "Macro" dropdown menu, select "Manage...", highlight the autosave macro, and click the "Edit" button on the right side
- Resize the window until the Command list appears on the right side of this popup
- Place the cursor at the appropriate spot to start typing or pasting commands by left mouse clicking below the main code portion of the macro, but above the "Next" line
- Navigate to the "Edit Menu" dropdown on the command list
- Click "Select All"
- Click "Clear"
- Name the Macro and check the "show in toolbar" checkbox, then click "OK"
Here is an example of what the Macro code should look like and a brief description of its parts:
[If you multiply the Red number by the Orange number, that product will equal how much time the macro will record continuously]