Skip to content

Instantly share code, notes, and snippets.

View danko3's full-sized avatar

danko3 danko3

  • JIVE
  • Netherlands
View GitHub Profile
@danko3
danko3 / LinePlot.ahk
Created June 13, 2013 13:57
Lineplot makes a plot of a CSV file The CSV file (PlotFile) has three columns; a timestamp and two values (between 0-255 for the channels of the Velleman k8055 board) Needs Grapher.ahk by jonny, hacked by me to get ticmarks and renamed to grapher1.ahk
/*
Lineplot v2.0
by danko
Lineplot makes a plot of a CSV file
The CSV file (PlotFile) has three columns;
a timestamp and two values (between 0-255 for the channels of the
Velleman k8055 board)
Needs Grapher.ahk by jonny, hacked by me
to get ticmarks and renamed to grapher1.ahk
@danko3
danko3 / fillaray.ahk
Created March 17, 2013 14:00
Plotfile creator. It creates a two dimensional array of a normal distribution or a sinc function.
; quick and dirty testfile creator
; it produces a two dimensional square array of values.
; two functions can be selected:
; a sinc and a normal distribution.
#SingleInstance force ; If it is alReady Running it will be restarted.
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
SetTitleMatchMode,2 ; string somewhere in titel is ok.
@danko3
danko3 / GreyPlot.ahk
Last active December 14, 2015 05:49
Greyplot makes grayscale plots of a CSV file. The file is an array of X . Y points where the values are the intensities (Z values). Needs Grapher.ahk by jonny, hacked by me to get tics and renamed to grapher2.ahk. It started as a simple plotting routine for real-time plots of data from my Velleman k8055 board. Written to prove that you can make …
/*
Greyplot v1.0
by danko
Greyplot makes grayscale plots of a CSV file
the file is an array of X . Y points where the values
are the intensities (Z values)
Needs Grapher.ahk by jonny, hacked by me
to get tics and renamed to grapher2.ahk
It started as a simple plotting routine for real-time
@danko3
danko3 / k8055.log
Created February 26, 2013 13:13
k8055.log. A real world datafile as an example to be used by PlotFile.ahk.
14:47:24,054.51,018.18
14:47:34,054.50,018.17
14:47:44,054.50,018.17
14:47:53,054.51,018.16
14:48:03,054.50,018.15
14:48:12,054.49,018.13
14:48:22,054.52,018.07
14:48:32,054.50,017.96
14:48:41,054.50,017.72
14:48:51,054.50,017.54
@danko3
danko3 / Grapher1.ahk
Last active December 14, 2015 05:49
Function Grapher by jonny. Hacked by me to be used by PlotFile.ahk.
;;;;;;;;;;;;;;;
;
; Function Grapher by jonny
;
;
;;;Functions;;;
;
;GraphCreate(id,x,y,w,h,pre="")
; Initializes the graph, sets its options,
; and draws it at the specified location.
@danko3
danko3 / k8055-log.ahk
Created January 7, 2013 20:50
Velleman K8055 logging script.
/*
Example for using the Velleman K8055 USB experiment board.
https://en.wikipedia.org/wiki/Velleman
I wanted to use the analog inputs for monitoring purposes.
But I could not find a program who could fill my needs:
just writing the values to a file.
*/
#NoEnv
SetWorkingDir, %A_ScriptDir%
@danko3
danko3 / k8055.ahk
Last active December 10, 2015 18:58
Example for using the Velleman K8055 USB experiment board.
/*
Example for using the Velleman K8055 USB experiment board.
https://en.wikipedia.org/wiki/Velleman
Using AHK for controlling the board is amazingly simple.
(It is the first time I used dll calls.)
Even AHK newbys can use it and experiment.
Tested on WindowsXP and Window7 32bit.
The library won't load on Windows7 64bit.
I don't know why. Anyone?
*/