averaging

Posts: 1
Joined: 05 Dec 2012, 09:35

averaging

Postby Renske » 06 Dec 2012, 10:48

Hi,

I've used e-prime to send coded markers to the AMS during an experiment. The DAMS software calculates averages across segments of data between successive markers. I was wondering whether it's possible to change the averaging interval without having to add new markers/labels by hand. E.g. if there is a period of 20 seconds between successive markers, to average across the first 10 seconds only. Can this be done?

Thanks,
Renske

User avatar
Posts: 35
Joined: 06 Jan 2012, 12:41

Re: averaging

Postby JarikdenHartog » 10 Dec 2012, 11:50

Hi Renske,

At this point I think VU-DAMS can’t do that. I assume you manually placed labels between successive markers using the right click “Add label between markers” option? You can manually ad fixed 10 seconds labels using the right click “Add fixed-time label at previous marker” option.

If you are (or now someone that is) good at scripting, you could also choose to export the 20 seconds labels to a .lbl file and edit the label end times for the labels to be 10 seconds. After that you can import the .lbl file in VU-DAMS and your 20 seconds labels will be overwritten with the 10 seconds ones.
Make sure you have a label.cfg file when importing a .lbl file; using “Edit Label Configuration >> Save Label Config To File”. The .cfg file name must be “label.cfg”.

Jarik

User avatar
Posts: 35
Joined: 06 Jan 2012, 12:41

Re: averaging

Postby JarikdenHartog » 20 Feb 2014, 11:57

From VU-DAMS version 3.4 more options on right click over the label are added in Label Data tab.
Attachments
LabelMarker.png
LabelMarker.png (3.29 KiB) Viewed 18260 times

User avatar
Posts: 35
Joined: 06 Jan 2012, 12:41

Re: averaging

Postby JarikdenHartog » 17 Jul 2015, 12:50

From VU-DAMS version 3.9 you can automatically place labels using event markers:

In the Label Data tab choose: Actions > Create Labels using Events (Ctrl+M) > Choose a file with the default layout [SM, EM, D1, D2, Label Code].

For instance using a file looking like:

SM, EM, D1, D2, LC
2,3,-9999,-9999,10
9,10,-9999,-9999,12
4,-9999,1,2,14

Would:
first line: Header SM=StartMarker, EM=EndMarker, D1=Duration1, D2=Duration2, LC= Label Code
second line: will put a label with code 10 between marker 2 and 3 (no duration needed hence the -9999)
third line: will put a label with code 12 between marker 9 and 10 (no duration needed hence the -9999)
fourth line: will put a label with code 14 'around' marker 4 (start 1 second before 4 and ending 2 seconds after 4)


This feature can also be used via: File > Batch convert data files

User avatar
Posts: 35
Joined: 06 Jan 2012, 12:41

Re: averaging

Postby JarikdenHartog » 13 Oct 2015, 14:11

Important note when using Batch convert data files in VU-DAMS version 3.9:

Because of a bug you will have to choose +1 lower Automatic Labelling using Markers/Events file type.
This means if you are using the Start_Marker, End_Marker, Label_Code format in the label tab; you will have to choose Start_Marker, Duration(sec)_After_StartMarker, Label_Code in the dropdown list when using File > Batch convert data files (see image below). This will be fixed in the next VU-DAMS release.
Attachments
Batch+1.png
Batch+1.png (10.2 KiB) Viewed 16836 times

User avatar
Posts: 35
Joined: 06 Jan 2012, 12:41

Re: averaging

Postby JarikdenHartog » 05 Oct 2016, 16:10

Hi Renske,

VU-DAMS 4.0 (fixing the problem discussed above) has just been released.

http://www.vu-ams.nl/support/downloads/software/

Best,
Jarik

Posts: 2
Joined: 18 Oct 2016, 14:28

Re: averaging

Postby j.enko » 25 Feb 2017, 21:46

Hi,

I need to divide my labels (between specific e-prime markers) into 30-seconds periods for averaging. I can place the labels between markers automatically (through Batch > automatic labeling), but then I have to divide each one manually into 30s fragments (by Divide this label into time intervals). Is or will there be a way to divide them automatically? With 200 participant's recordings and 8 labels each, it would be a great help.

Also, is there a way to have both average for the whole label and for each 30s period of that label displayed at the same time?

Thanks,
Jola

User avatar
Posts: 35
Joined: 06 Jan 2012, 12:41

Re: averaging

Postby JarikdenHartog » 28 Feb 2017, 18:09

Hi Jola,

The bad news is I don't think this feature will be implemented in the near future.

The good news might be you can place multiple labels using one marker. So, for example, you can use marker 1 as the start of the first label and the second label 30 seconds later etc.
(The reason D1 in line 3 is "-30" is because D1 is normally a duration before the marker, but you can make this after the marker by adding a minus)

With a file looking like this:
Code: Select all
SM, EM, D1, D2, LC
1,-9999,0,30,11
1,-9999,-30,60,12
1,-9999,-60,90,14


Also, is there a way to have both average for the whole label and for each 30s period of that label displayed at the same time?


Possibly by using overlapping labels? I'll try to look into this later. >>3-3-2017>> I indeed believe that overlapping labels are the best solution

Best,
Jarik

Posts: 2
Joined: 18 Oct 2016, 14:28

Re: averaging

Postby j.enko » 03 Mar 2017, 18:25

Everything works well, both 30s periods and overlapping labels, thank you!

Return to Software

Who is online

Users browsing this forum: No registered users and 1 guest