jrosti / lumikki Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/lumikki
Automatically exported from code.google.com/p/lumikki
Siis esimerkki JavaScript moduulipatternista.
lumikki.image = {
data: {
imageAnimationDuration: 300,
imageSize: {width:0, height:0} // natural image size
},
dom: {
image: null
},
init: function () {
dom.image = $('#imageId');
}
}
ja sitten document readyssa kutsut lumikki.image.init(). Näin syntyy
laajennettavampaa javascriptiä.
Tabeihin sopii paremmin lähtestymitapa, jossa jokainen alasivu on
testattavissa omana html:nään. Tabimalli, jota lumikki käyttää luo ison
html-dokumentin. Sen voi splitata erillisiin html-tiedostoihin käyttämällä
jquery-ui-komponentteja. Näin ei ehkä tarvitsisi tehdä uutta
index.html:ää, kun tehdään jotain muuta.
<link type="text/css" href="css/ui-lightness/jquery-ui-1.8.16.custom.css" rel="stylesheet" />
<link rel="stylesheet" type="text/css" href="css/lumikki.css">
</head>
<body>
<div>
<div id="banner">
</div>
<div id="tabs">
<ul>
<li><a href="tensile.html">Tensile</a></li>
Original issue reported on code.google.com by [email protected]
on 29 Mar 2012 at 2:42
The summary says it all. The CAM machine records images without any problems,
but Lumikki UI claims that the CAM is not responsive, if one activates it.
Original issue reported on code.google.com by [email protected]
on 23 Feb 2011 at 5:03
[deleted issue]
change ttm labview to http-post and add parent folder variable
Original issue reported on code.google.com by [email protected]
on 31 Mar 2011 at 6:42
change lines:
msg = 'plaaplaa' + ret
to
msg = 'plaaplaa' + str(ret)
Original issue reported on code.google.com by [email protected]
on 20 Apr 2011 at 2:19
A command for IR camera, with json data {"stopRecording":0}. This should be
connected to stop-button.
Original issue reported on code.google.com by st.tuomisto
on 24 Mar 2011 at 2:18
camera status is always 122 connection refused
Original issue reported on code.google.com by [email protected]
on 31 Mar 2011 at 3:36
- GUI and LV: camera and TTM tabs should have a parameter
"parentFolder" which is the parent folder of the expID folder
Trickky in labview: '\' is a very special character.
Original issue reported on code.google.com by [email protected]
on 21 Feb 2011 at 2:34
Create pydoc from webroot/cmd files
Create a (simple) method listing for each machine.
Original issue reported on code.google.com by [email protected]
on 31 Mar 2011 at 4:49
in ir.py move below functionality to device side:
def connectAndSendSettings():
c = conf()
# TODO: path parsing belongs to device side, remove filename and add timestamp to data -dictionary
path = c.get('ir_parentfolder') + '\\' + c.get('g_measurementid') + '-' + c.get('g_timestamp')
data ={
"expId":c.get('g_measurementid'),
"filename":c.get('g_measurementid') + '-',
"path":path,
"framerate":float(c.get('ir_framerate')),
"recordTime":float(c.get('ir_recordtime')),
"storeCondition":int(c.get('ir_storecondition')),
"stopCondition":int(c.get('ir_stopcondition')),
"startCondition":int(c.get('ir_startcondition')),
"startValue":int(c.get('ir_startvalue')),
"storeValue":int(c.get('ir_storevalue')),
"recordFormat":int(c.get('ir_recordformat')),
}
Original issue reported on code.google.com by [email protected]
on 20 Apr 2011 at 1:58
LV: stop does not stop TTM machine
make stop and reset command with labview.
Original issue reported on code.google.com by [email protected]
on 21 Feb 2011 at 2:25
When limit is tripped start using position control and go to g_stopPosition
(see issue 33: change stop behavior).
Original issue reported on code.google.com by [email protected]
on 25 May 2011 at 11:29
Write a webserver based on VB.NET. Input is http-post JSON, output is JSON.
basic http-get server:
http://www.java2s.com/Tutorial/VB/0400__Socket-Network/TcpListenerbasedWebserver
.htm
JSON:
http://msdn.microsoft.com/en-us/library/bb299886.aspx
Original issue reported on code.google.com by [email protected]
on 24 Feb 2011 at 10:02
- GUI: camera default fps = 1000
- GUI: TTM default port = 80
Original issue reported on code.google.com by [email protected]
on 21 Feb 2011 at 2:46
When stop is pressed, ttm starts using position control
When stop is pressed go to stop position
- make variable ttm_stopPosition (units are mm, default 0 mm)
Original issue reported on code.google.com by [email protected]
on 25 May 2011 at 11:26
Add all commands that are sent (and received) using JSON to new wikipage
JsonAPI.
Original issue reported on code.google.com by [email protected]
on 1 Apr 2011 at 2:55
The box where all the panes are drawn should have size relative to the pane
sizes.
Now ttm pane is overflowing and others are underflowing
Original issue reported on code.google.com by [email protected]
on 29 Mar 2012 at 11:43
- GUI or LV: camera expID should be made unique (expID-YYYYMMDDHHMM-)
automatically
Also unified notation:
'-' between keys and key-value pairs
'_' between key and value
key-key-key_value-key_value-key-key-key_value.tiff
Find out the most usable notation '-' is mixed with minus sign. ',' cannot be
used. '.' is mixed with decimals. Special characters ($∞§£) are not
allowed...
Original issue reported on code.google.com by [email protected]
on 21 Feb 2011 at 2:40
- add $stopPosition parameter
- when stop is pressed, go to $stopPosition in 5 sec
- clear limits if you have to (unless stop is outside limits, then do nothing)
i.e. going back inside the limits is allowed, going outside limits is not
Original issue reported on code.google.com by [email protected]
on 9 May 2011 at 12:58
What steps will reproduce the problem?
1. Shut down labview server
2. Use force status in lumikki-main
3. status shows "210 ready to measure" (it should show no connection or similar
error)
Original issue reported on code.google.com by [email protected]
on 7 Apr 2011 at 12:12
GUI: TTM-tab needs a (decorative)box with setpoint and setpointTime
text fields and a button "move to setpoint". This should be bound to
csm_lumikki_instron_moveToSetpoint
Original issue reported on code.google.com by [email protected]
on 21 Feb 2011 at 2:23
Due to hardware restrictions maximum expID length is 10. Apply this to
index.html. Either force max length is 10 in text box or check and notify the
user before applying/executing.
Experiment must not start if the expID is longer than 10 characters.
Add "max 10 chars" to expID label.
Original issue reported on code.google.com by [email protected]
on 1 Apr 2011 at 2:28
Create mock-device-server and mockConf(). After this is done you should be able
to do:
mockServer.run()
config = mockConf()
import cam
try:
ret = cam.ConnectAndSendStart()
if not ret == correctRet: raise ValueError()
Requirements:
- written in python
- listen to local ports
- 127.0.0.1:40001 = cam
- 127.0.0.1:40002 = ttm
- 127.0.0.1:40003 = ir
- 127.0.0.1:40004 = ae
- expect JSON http-post as input
- write JSON http-post as output
- ready before 1.6.2011
- read responses from a dict = {'inputCommand1': {'inputValue1':responce1,
'inputValue2':responce2'}, 'inputCommand2': {...}, ...}
- if response exists in dict: print header + dict[corresponding responce]
- else: print header + dict['inputCommand1']['inputValue1']
Original issue reported on code.google.com by [email protected]
on 1 Apr 2011 at 1:58
Show in interface:
When running, poll status every 2 sec and show time when last polled.
Original issue reported on code.google.com by [email protected]
on 31 Mar 2011 at 6:20
apply button should be just below the tab names, above the prameter list.
This way its always visible
Original issue reported on code.google.com by [email protected]
on 29 Mar 2012 at 11:40
The CAM tab in the Lumikki UI has fields for values of FPS and exposure. At the
moment, one has to enter them times 1000 (that is, FPS of 10 frames/s would be
10000, exposure of 90ms would be 90000). The parameters should be filled as the
actual FPS (ie. 10 [frames/s]) and exposure in milliseconds (ie. 90 [ms]) and
the script talking with the CAM machine should convert the values to the
1000*-format that is sent to the CAM machine.
Original issue reported on code.google.com by [email protected]
on 23 Feb 2011 at 5:09
- GUI: in main tab, clicking TTM-active box does not activate TTM. You
have to tick and click force status to active TTM. Change this to
"apply changes onTick".
Original issue reported on code.google.com by [email protected]
on 21 Feb 2011 at 2:47
- LV: TTM-services (*poller.vi) should be run with one click with
web-services deploy
Original issue reported on code.google.com by [email protected]
on 21 Feb 2011 at 2:41
This is the next integration step to do. All devices should response to status
query. Three possibilies exist: 200 (ready), 503 (not-ready), 220 (measuring).
Messages to be sent/posted:
IR: html-post json {'status':'0'}
TTM: <prefix>_status
CAM: message = "status?"
responce:
{'status': 'X', 'statusText': 'Y'}
Status signals are as follows (this has to be defined once, globally):
statusResponses = { "000":"Cannot connect to anything"
, "010":"Server sent unknown status"
, "020":"Server response did not contain status"
, "100":"Disabled from server."
, "110":"Target machine did not respond"
, "120":"Server received malformed command."
, 403:"122"
, 0:"210" #"Ready to measure"
, 1:"200" #"Target available, values not set"
, 200:"210" #"Ready to measure"
, "220":"Measuring"
, "230":"System is busy, please try again in a while."
}
Every device should return at least:
ready -> status: 200
not ready (service unavailable) -> status: 503
measurement running -> status: 220
Original issue reported on code.google.com by [email protected]
on 17 Mar 2011 at 5:43
Change the outlook of GUI (and add features).
- add radiobuttons (or ticks boxes) that select either stress or strain
controlled test
- the above selection disables and grayes the other selection
- the selection is also stored to cached parameters and used when
main->start/stop is pressed
- add switch-case structure to TTM.py and dummy bindings (if TTM.py does not
exist, create one and move TTM messaging there)
3 boxes:
1. General box
- "General" title
- ip textbox
- port textbox
- Setpoint textbox (default 1)
- Setpoint time textbox (default 1)
- move to setpoint button
2. Strain controlled test
- Constant strain rate title
- Active tick box (default ticked)
- ramp rate textbox
- ramp amplitude textbox
3. Stress controlled test
- Constant stress title
- Active tick box (default unticked)
- Force textbox (default 10N)
Original issue reported on code.google.com by [email protected]
on 28 Feb 2011 at 3:40
all devices should have responce_timeout, this is the timeout that is used to
wait the responce. Each machine has it own value in milliseconds.
cam_responce_timeout = 500
ttm_responce_timeout = 2000
ir_responce_timeout = 20000 (due to slow connection)
Original issue reported on code.google.com by [email protected]
on 31 Mar 2011 at 5:12
ttm status is wrong when labview server is offline (shows 210, should show 240)
Original issue reported on code.google.com by [email protected]
on 31 Mar 2011 at 3:26
1. Make Write-header function
2. Write constants to named cluster and make cluster to shared variable
3. trigger to change in startLogging variable (remove polling)
Original issue reported on code.google.com by [email protected]
on 8 Apr 2011 at 11:43
Write function(s)/class in c that:
- can be compiled in linux and windows (i.e. no exotic includes)
- recommended solution is function library with basic C and machine depended
wrapper class(es)
exposed functions:
- int putData(double *timeArray, double *heightArray, int length)
- void getInterpolant(double time0, double timeStep, double *output, int
outputLength)
- int setLimits(double heightMax, double heightMin, double speedMax)
putData:
- stores timeVector and heightVector
- returns SUCCESS if existing times are all smaller than input times and height
is in correct limits
getInterpolant:
- returns heightVector in points time0 + i*timeStep, i = 0 ... outputLength
- must return interpoland in all cases
- must obey limits
See samplePlaybackDll as example
Original issue reported on code.google.com by [email protected]
on 27 Apr 2011 at 12:45
there is a lot of ir files. Move them to a new folder under lib
ttm file to lib
Original issue reported on code.google.com by [email protected]
on 31 Mar 2011 at 6:19
camera is called cam (cam.py, cam.doSomething(), jne). Same for ttm, ir, ae.
status is gotten with connectAndGetStatus(), same for start, stop etc.
Original issue reported on code.google.com by [email protected]
on 31 Mar 2011 at 4:46
{"framerate":30.0} (possible values 30.0, 15.0, 9.0, 7.5, 3.75)
{"recordTime":5.0} (number of seconds to record)
{"filename":"name"} (base filename, MAX 10 characters)
{"getImageSeries":0} actual command to start taking images
Original issue reported on code.google.com by [email protected]
on 24 Mar 2011 at 10:16
This is a commandline python script that:
1. listens ip:port
2. changes memcache values
3. calls javascript:run
- use cgi-call for this
4. checks that the correct values were passed to ip:port
Original issue reported on code.google.com by [email protected]
on 4 Apr 2012 at 10:34
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.