How to Read Data From Oscilloscope Excel
Software tools
This is a collection of software tools and notes that I devloped during my coursework at OC. Some of it may be useful for students taking the courses I did, and a few bits may have more general applicability.
MATLAB Scripts
loadvectors.m - Loads vectors from a csv file into Matlab. Suppose you accept a csv file called measurements.csv:
time, volts 1, 2 2, iv 3, ii iv, 4
Phone call the office like this:
[t, v] = loadvectors('measurements.csv', 'time', 'volts');
Or if you only wanted the voltage measurements:
[myVolts] = loadvectors('measurements.csv', 'volts');
Using LabVIEW for Oscilloscope Data capture
Works with Tektronix TDS3000 series oscilloscopes, and probably other series if you have the right drivers.
Why use LabVIEW instead of Openchoice Desktop?
-
The CSV output is unproblematic and requires no post-processing. That is, you tin import information technology into MATLAB (and probably Mathcad) without tweaking it with Excel or a text editor.
-
The interface allows you to easily capture only role of the waveform, or capture in other modes. For example, you lot could expect at ii periods of a signal in sample mode, but capture simply i period using a 128-pass average.
-
It'south really fast. Click the run button and the waveform is there on your screen (unless y'all're using unlike settings for the capture, which takes approximately one second).
-
I think the interface is simpler to use than Openchoice Desktop'south. I'd like to hear your input.
-
You know the developer, and he tin add more features. Or, if you're feeling adventurous, you can add together features yourself!
Are in that location disadvantages to using LabVIEW?
Yes, a few:
-
Time is not saved to the CSV file yet - information technology assumes you lot know the frequency of the indicate you're measuring.
-
At the moment, my tool only captures information, not the screenshot.
-
LabVIEW takes a few seconds longer to start upwardly than OpenChoice Desktop.
Using the capture tool
Download the tool: scope_capture_0.one.vi I suggest you put information technology somewhere on your H: drive, so you lot can access it from all the lab computers. Start LabVIEW, File>Open and select the file. You're smart. You'll figure the rest out. If you have questions, shoot me an electronic mail (@).
LabVIEW Bode Plotter
bode_plotter_0.1.nix
Download, excerpt all the files somewhere, and open bode_plot_capture.vi.
-
Claw up the channel 1 of the oscilloscope to the output of the function generator.
-
Hook upwardly channel 2 of the oscilloscope to the output of your circuit.
-
Connect the sync output to the oscilloscope's external trigger.
-
Connect the function generator output to your circuit.
-
Enable both channels on the oscilloscope.
The balance should be straightforward. The tool doesn't work well at frequencies below 100 Hz, or with extremely small magnitudes. When you're pushing these limits, information technology helps to increase the time before taking the sample. I use between three and 5 seconds for almost captures. If you get an error dialog nearly low indicate aamplitude when you lot run the program, that's ok. Click keep, and it will finish normally. Be aware, all the same, that your data may not exist completely accurate due to trying to compare very small signals. I've as well gotten errors about not properly endmost the intstrument connection, just they don't seem to affect anything.
Using Vim for Motorola M68HC11 Programming
Why utilise Vim instead of Notepad? The most compelling reason is that Vim performs syntax highlighting. Coloring your code not only looks improve, it makes it far easier to debug by giving you lot visual clues when there is a syntax error. An extra character in a constant could cost you minutes of searching, but you'll notice in seconds if it doesn't alter color.
Why wouldn't you utilize Vim? It behaves rather differently than notepad or other text editors you may be used to, so it can exist frustrating to apply at first. If y'all're willing to spend a few minutes to learn, you'll save time in the long run.
Okay, I'yard sold. How do I install it? There are two principal steps: installing Vim itself, and installing the required syntax highlighting files.
-
Download Vim from www.vim.org and install it.
-
Download the file as11.vim
On Windows, go into your Vim installation directory (for me, C:Program FilesVimvim72) and put the file into syntax (at that place will already be a bunch of other files there, for other languages). On Linux (and probably OSX), put it into.vimsyntax/.
-
Download the file asm.vim and put information technology into dirftdetect. You will accept to create the directory/folder "ftdetect"
-
From now on, when you open .asm files in Vim, they will exist highlighted for AS11 syntax.
Using my SVN server
-
Send me an email and asking a fundamental. I'll create 1 for you, add it to the server, and send you the private key. (I know, this isn't the secure fashion to practise it, only I couldn't get the key Josh generated to work).
-
Install a Subversion customer. If you're on Windows, I recommend Tortoise SVN. I don't know about OSX - if you practice, let me know.
-
Put the fundamental I give you somewhere on your hard drive.
-
Edit your subversion config file. (Right-click in a folder to bring up SVN menu, click Settings, click Edit). In the section tunnels, add the line
ssh-user = "C:/Program Files/TortoiseSVN/bin/TortoisePlink.exe" -noagent -i "c:/path/to/your/key"
Use forward slashes only in the paths.
-
On Linux, the above should be: "ssh-user = ssh -i whereveryouputthekey".
-
At present you should exist able to browse the repository with Tortoise SVN and check out code.
-
The repository URL is svn+ssh-user:botsnlin@botsnlinux.netnameOfTheRepositoryYouWant
Yous tin can view the repository at svn.botsnlinux.net.
How to Read Data From Oscilloscope Excel
Source: https://stanford.edu/~sebell/oc_tools.html
0 Response to "How to Read Data From Oscilloscope Excel"
Post a Comment