History of vstim (No. 110)
- History
- View the diff.
- View the diff current.
- View the source.
- Go to vstim.
- 1 (2019-11-23 (Sat) 04:25:39)
- 2 (2019-11-23 (Sat) 07:31:20)
- 3 (2019-11-23 (Sat) 10:33:19)
- 4 (2019-11-23 (Sat) 13:37:52)
- 5 (2019-11-23 (Sat) 16:46:49)
- 6 (2019-11-23 (Sat) 19:54:02)
- 7 (2019-11-23 (Sat) 22:58:03)
- 8 (2019-11-24 (Sun) 02:13:36)
- 9 (2019-11-24 (Sun) 05:23:40)
- 10 (2019-11-24 (Sun) 08:28:30)
- 11 (2019-11-24 (Sun) 11:38:03)
- 12 (2019-11-24 (Sun) 14:55:47)
- 13 (2019-11-24 (Sun) 18:00:37)
- 14 (2019-11-24 (Sun) 20:48:10)
- 15 (2019-11-25 (Mon) 00:18:22)
- 16 (2019-11-25 (Mon) 03:24:24)
- 17 (2019-11-25 (Mon) 06:18:46)
- 18 (2019-11-25 (Mon) 09:41:07)
- 19 (2019-11-25 (Mon) 12:46:19)
- 20 (2019-11-25 (Mon) 15:49:57)
- 21 (2019-11-25 (Mon) 18:54:33)
- 22 (2019-11-25 (Mon) 22:04:53)
- 23 (2019-11-26 (Tue) 01:25:13)
- 24 (2019-11-26 (Tue) 04:24:58)
- 25 (2019-11-26 (Tue) 07:32:39)
- 26 (2019-11-26 (Tue) 10:46:51)
- 27 (2019-11-26 (Tue) 13:59:18)
- 28 (2019-11-26 (Tue) 17:21:18)
- 29 (2019-11-26 (Tue) 20:29:09)
- 30 (2019-11-26 (Tue) 23:33:22)
- 31 (2019-11-27 (Wed) 02:24:12)
- 32 (2019-11-27 (Wed) 05:19:14)
- 33 (2019-11-27 (Wed) 08:49:49)
- 34 (2019-11-27 (Wed) 11:38:44)
- 35 (2019-11-27 (Wed) 14:47:56)
- 36 (2019-11-27 (Wed) 18:38:58)
- 37 (2019-11-27 (Wed) 21:37:53)
- 38 (2019-11-28 (Thu) 00:52:38)
- 39 (2019-11-28 (Thu) 04:07:10)
- 40 (2019-11-28 (Thu) 06:39:28)
- 41 (2019-11-28 (Thu) 10:18:58)
- 42 (2019-11-28 (Thu) 13:43:36)
- 43 (2019-11-28 (Thu) 16:47:23)
- 44 (2019-11-28 (Thu) 20:03:08)
- 45 (2019-11-28 (Thu) 23:17:50)
- 46 (2019-11-29 (Fri) 02:04:52)
- 47 (2019-11-29 (Fri) 05:24:22)
- 48 (2019-11-29 (Fri) 08:32:33)
- 49 (2019-11-29 (Fri) 11:23:55)
- 50 (2019-11-29 (Fri) 14:30:48)
- 51 (2019-11-29 (Fri) 17:27:59)
- 52 (2019-11-29 (Fri) 21:14:10)
- 53 (2019-11-30 (Sat) 00:35:23)
- 54 (2019-11-30 (Sat) 03:37:48)
- 55 (2019-11-30 (Sat) 06:39:18)
- 56 (2019-11-30 (Sat) 09:30:35)
- 57 (2019-11-30 (Sat) 15:11:23)
- 58 (2019-11-30 (Sat) 17:27:06)
- 59 (2019-11-30 (Sat) 20:39:12)
- 60 (2019-12-01 (Sun) 01:01:22)
- 61 (2019-12-01 (Sun) 04:12:53)
- 62 (2019-12-01 (Sun) 07:40:18)
- 63 (2019-12-01 (Sun) 10:35:28)
- 64 (2019-12-01 (Sun) 14:10:22)
- 65 (2019-12-01 (Sun) 18:06:08)
- 66 (2019-12-01 (Sun) 21:15:38)
- 67 (2019-12-02 (Mon) 00:22:21)
- 68 (2019-12-02 (Mon) 02:45:25)
- 69 (2019-12-02 (Mon) 07:41:32)
- 70 (2019-12-02 (Mon) 11:35:19)
- 71 (2019-12-02 (Mon) 15:00:48)
- 72 (2019-12-02 (Mon) 18:01:52)
- 73 (2019-12-02 (Mon) 20:27:00)
- 74 (2019-12-03 (Tue) 00:23:07)
- 75 (2019-12-03 (Tue) 04:18:22)
- 76 (2019-12-03 (Tue) 07:40:59)
- 77 (2019-12-03 (Tue) 10:45:31)
- 78 (2019-12-03 (Tue) 14:25:06)
- 79 (2019-12-03 (Tue) 17:23:42)
- 80 (2019-12-03 (Tue) 21:26:08)
- 81 (2019-12-04 (Wed) 00:57:11)
- 82 (2019-12-04 (Wed) 04:19:55)
- 83 (2019-12-04 (Wed) 06:54:02)
- 84 (2019-12-04 (Wed) 10:35:44)
- 85 (2019-12-04 (Wed) 13:37:50)
- 86 (2019-12-04 (Wed) 17:30:23)
- 87 (2019-12-04 (Wed) 20:43:15)
- 88 (2019-12-05 (Thu) 01:26:16)
- 89 (2019-12-05 (Thu) 02:18:27)
- 90 (2019-12-05 (Thu) 07:56:06)
- 91 (2019-12-05 (Thu) 11:18:02)
- 92 (2019-12-05 (Thu) 14:27:07)
- 93 (2019-12-05 (Thu) 18:04:49)
- 94 (2019-12-05 (Thu) 21:43:34)
- 95 (2019-12-05 (Thu) 22:22:00)
- 96 (2019-12-06 (Fri) 04:14:49)
- 97 (2019-12-06 (Fri) 08:04:18)
- 98 (2019-12-06 (Fri) 11:30:21)
- 99 (2019-12-06 (Fri) 15:22:19)
- 100 (2019-12-06 (Fri) 17:27:53)
- 101 (2019-12-06 (Fri) 22:03:14)
- 102 (2019-12-07 (Sat) 02:08:05)
- 103 (2019-12-07 (Sat) 06:33:40)
- 104 (2019-12-07 (Sat) 09:40:32)
- 105 (2019-12-07 (Sat) 12:55:31)
- 106 (2019-12-07 (Sat) 16:23:00)
- 107 (2019-12-07 (Sat) 19:35:23)
- 108 (2019-12-07 (Sat) 22:40:28)
- 109 (2019-12-08 (Sun) 01:37:52)
- 110 (2019-12-08 (Sun) 05:10:02)
- 111 (2019-12-08 (Sun) 08:21:21)
- 112 (2019-12-08 (Sun) 11:16:07)
- 113 (2019-12-08 (Sun) 13:58:39)
- 114 (2019-12-08 (Sun) 17:31:05)
- 115 (2019-12-08 (Sun) 20:43:40)
- 116 (2019-12-08 (Sun) 23:50:59)
- 117 (2019-12-09 (Mon) 00:47:51)
- 118 (2019-12-09 (Mon) 10:46:00)
- 119 (2019-12-09 (Mon) 18:28:35)
- 120 (2019-12-09 (Mon) 21:47:51)
Visual stimulus presentation program†
You need to prepare a sequence file as text and image files as PING.
vstim0: no DIO feature(any environment) vstim: DIO available(require NIDAQ environment[NI USB-6501])
Only PING image files are supported now. All of the image files should be in the current directory.
Usage:
>vstim0 sequence.txt <RET> >vstim0 sequence.txt -t<RET>
- -t: this flag can be set for test mode. The stimulus is shown in a smaller window.
To make a log file,
>vstim sequence.txt | tee -a vstim_log.txt<RET>
Key control after starting the program
i | showing the information about the display |
q,Q | Quit the program |
Input trigger channel: DIO1~8
Output trigger channels: DIO9-16
DIO1 is used for MRI trigger input. DIO2-8 are used for the subject responses. Key press of 'z', 'x','c','v','/' are also corresponding to the input triggers.
z,Z | 2 |
x,X,/ | 3 |
c,C | 4 |
v,V | 5 |
Supported image file : ONLY png/PNG
Supported OS: MacOS10.6-10.11
Sequence file format†
GLOBAL SETTING†
SCREEN | Full screen display setting. It's recommended to fit to your screen's dimension. |
SIZE | Display size(disabled now) |
BACK | Background color setting(R,G,B) |
SHIFT | Image origin(center) shift in the screen. (0,0) is center. |
FIX | Fixation setting(type,color,size,linewidth) |
CTABLE | Colortable setting (r1,g1,b1,a1,r2,g2,b2,a2,...) |
FTASK | secondary task sequence |
FDUR | durations for the secondary task |
SEQUENCE†
# INDEX PNG_FILE_NAME X Y DURATION NEXT_IDX JUMP_IDX FIXATION CONDITION
INDEX | index number started from 1 |
PNG_FILE_NAME | png file name or "BLANK" or "TRIGGER" |
X | horizontal image shift from the origin |
Y | vertical image shift from the origin |
DURATION | Duration time(ms) for the stimulus(When you set a negative value here, an MRI trigger changes the frame to the Jump index. '-1' to wait forever to receive a MRI trigger) |
NEXT_IDX | Where to go after the stimulus or MRI trigger input |
JUMP_IDX | Where to go when response button was pressed or when the number of repetition was completed |
FIXATION | Fixation display flag |
CONDITION | Condition setting, 1(left),2(right) and 3(both) will make auditory triggers. Decimal value for trigger out, e.g. setting 3 gives trigger on DIO channel 9 and 10. |
REPEAT | Number of the repetition setting(0 for no repetition). The negative value indicates that the program receive the button press and change the frame to the Jump index. |
(*)Button press reception is only available when the repeat parameter is negative value)
(*)When the Jump parameter is negative, stimulus changes immediately and the residual time will be added to the next stimulus.
- With shift setting, image boarder line is sometimes shown(Reported by Chisato)-solved. -- Ken 2015-11-06 (Fri) 06:54:16
Sample sequence file: Without the onset trigger adjustment for the blocks
SCREEN 1920 1080 8 60 #Xsize Ysize ColorDepth RefreshRate SIZE 1920 1080 #DrawAreaXsize DrawAreaYsize BACK .5 .5 .5 #BackGroundColor(R,G,B) 0~1 FIX 1 1 40 8 #Type ColorIdx size width FTASK 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 FDUR 1500 100 2000 100 1800 100 2500 100 5000 100 500 100 2500 100 4000 100 // num fname x y time next jump fix condition repeat 1 wait.PNG 0 0 -1 0 0 0 0 0 2 N.png 0 0 20000 0 0 1 1 0 3 AN.png 0 0 125 4 0 1 4 0 4 BN.png 0 0 125 3 5 1 6 80 5 N.png 0 0 20000 0 0 1 1 0 6 NA.png 0 0 125 7 0 1 8 0 7 NB.png 0 0 125 6 8 1 10 80 8 N.png 0 0 20000 0 0 1 1 0 9 A.png 0 0 125 10 0 1 12 0 10 B.png 0 0 125 9 11 1 14 80 11 N.png 0 0 20000 0 0 1 1 0 12 NA.png 0 0 125 13 0 1 8 0 13 NB.png 0 0 125 12 14 1 10 80 14 N.png 0 0 20000 0 0 1 1 0 15 AN.png 0 0 125 16 0 1 4 0 16 BN.png 0 0 125 15 17 1 6 80 17 N.png 0 0 20000 0 0 1 1 0 18 A.png 0 0 125 19 0 1 12 0 19 B.png 0 0 125 18 2 1 14 80
Sample sequence file2: With the onset trigger adjustment for the blocks
SCREEN 1920 1080 8 60 #Xsize Ysize ColorDepth RefreshRate SIZE 1920 1080 #DrawAreaXsize DrawAreaYsize BACK .5 .5 .5 #BackGroundColor(R,G,B) 0~1 FIX 1 1 40 8 #Type ColorIdx size width FTASK 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 FDUR 1500 100 2000 100 1800 100 2500 100 5000 100 500 100 2500 100 4000 100 // num fname x y time next jump fix condition repeat 1 wait.PNG 0 0 -1 0 0 0 0 0 2 N.png 0 0 19800 0 0 1 1 0 3 N.png 0 0 -1 0 0 1 1 0 4 AN.png 0 0 125 5 0 1 4 0 5 BN.png 0 0 125 4 6 1 6 79 6 AN.png 0 0 -125 7 8 1 4 0 7 BN.png 0 0 -125 6 8 1 6 80 8 N.png 0 0 19800 0 0 1 1 0 9 N.png 0 0 -1 0 0 1 1 0 10 NA.png 0 0 125 11 0 1 8 0 11 NB.png 0 0 125 10 12 1 10 79 12 NA.png 0 0 -125 13 14 1 8 0 13 NB.png 0 0 -125 12 14 1 10 80 14 N.png 0 0 19800 0 0 1 1 0 15 N.png 0 0 -1 0 0 1 1 0 16 A.png 0 0 125 17 0 1 12 0 17 B.png 0 0 125 16 18 1 14 79 18 A.png 0 0 -125 19 20 1 12 0 19 B.png 0 0 -125 18 20 1 14 80 20 N.png 0 0 19800 0 0 1 1 0 21 N.png 0 0 -1 0 0 1 1 0 22 NA.png 0 0 125 23 0 1 8 0 23 NB.png 0 0 125 22 24 1 10 79 24 NA.png 0 0 -125 25 26 1 8 0 25 NB.png 0 0 -125 24 26 1 10 80 26 N.png 0 0 19800 0 0 1 1 0 27 N.png 0 0 -1 0 0 1 1 0 28 AN.png 0 0 125 29 0 1 4 0 29 BN.png 0 0 125 28 30 1 6 79 30 AN.png 0 0 -125 31 32 1 4 0 31 BN.png 0 0 -125 30 32 1 6 80 32 N.png 0 0 19800 0 0 1 1 0 33 N.png 0 0 -1 0 0 1 1 0 34 A.png 0 0 125 35 0 1 12 0 35 B.png 0 0 125 34 36 1 14 79 36 A.png 0 0 -125 37 2 1 12 0 37 B.png 0 0 -125 36 2 1 14 80
Known issue†
Most of the cases, vstim terminate with segmentation error. So far we didn't have any serious problem on it. The issue is caused by DIO with OPENGL, so vstim0 doesn't have the issue.