med-material / r-shiny-js-data-capture

Data Capture System in Javascript, integrated into R Shiny
MIT License
1 stars 1 forks source link

Data Capture: Implement a script for continuous measurement #6

Closed bastianilso closed 2 years ago

bastianilso commented 2 years ago

Our event-based data capture is implemented, which measures mouse clicks, mouse hover etc. In addition, we will need to implement continuous measurements.

The SessionID should be shared between continuous measurement and event-based measurements of course.

bilal-62210 commented 2 years ago

@bastianilso It's ok for the script, the CSV file is like that : image This is the Zip project if you want to see how it works before i push it on github: brush-whack.zip Give me your feedback And i have a problem with the logging loader when i try to load this csv file, i have this message: image

bilal-62210 commented 2 years ago

@bastianilso This is the lastest version : brush-whack.zip

bilal-62210 commented 2 years ago

@bastianilso for the logging loader i don't understand the message because as you can see there is no problem for the logevent.csv, there is only a problem for the logcontinuousmeasurement.csv. I think the error it's on the Framecount column because it speak about 'NA'. But columuns "framecount" are the same for the 2 csv. log2022-10-4 13-24-9.251ContinuousMeasurement.csv log2022-10-4 13-24-9.251Event.csv

bastianilso commented 2 years ago

Hi bilal, the script must end with the name (timestamp) + Sample.csv, this is the assumed name. For example log2022-10-4 13-24-9.251Sample.csv. In that case then Sample should not be passed as NULL to LoadFromDirectory.

LoadFromDirectory("data/", meta=NULL)

Alternatively a custom name must be passed to the LoadFromDirectory function. LoadFromDirectory("data/", sample="ContinuousMeasurement") In that case, your CSV file can be named log2022-10-4 13-24-9.251ContinuousMeasurement.csv.

Does it make sense? Otherwise drop by and I will show.

bilal-62210 commented 2 years ago

@bastianilso Yes it's ok. I just tried and it works! So if it's ok for you, i think we can close this issue.