Can I send a signal through the serial port in the same manner as sending a visual or sound cue? We may try to do the vibration aspect of our experiment through the serial port instead.
Yes.<port> signals are just like other stimuli -- it does not matter if you are outputting <text>s or <pictures> to the screen, <sound>s on an audio device or <port> signals to a COM interface.
What if I get an adapter for the serial port so that I can use USB devices? Would I then still be able to output signals through the serial port and then have the adapter convert the signals into the USB devices?
If this is possible, is there any delay issue with this process because I need the signal I send through the serial port to be at specific times with minimal delay?
Thanks.
This will depend on the actual devices / hardware. There is no general answer to this question, I'm afraid. You'll have to simply try and see if it works in your particular case.
This will also depend on the actual hardware as well as any involved device drivers.
Dave,
I am trying to devise a simple script that would send the word "HELLO" in binary format through the serial port. I am testing this by using a pair of virtual series ports where what is sent to one port is received by the other port. I am able to see what is being received by the other port, and the script that I have (attached in this thread) appears to only successfully send the letter "H" through but not the "ELLO". I am suspecting that there is an error in my script, so could you have a quick look at it and see if you can spot the error? I'm trying to make the script as simple as possible.
Thanks
I'm not seeing any obvious error in the script -- I suspect something else must be going on. You may want to toy around with the <port> element's /erase settings and/or send another <port> signal between trials to re-set all bits to zero.
Is there a way to incorporate a survey page at the end of an experiment (in this case, a mackworth clock experiment)?
A <surveypage> is a special kind of <trial>, a <survey> is a special type of <block>. All the usual rules apply.
Will <survey> always create its own data file? Or can I just have 1 data file that contains the data from the clock test and also that data from the survey?
Yes.
Yes, you can. Run your <surveypage>s via a <block> element's /trials attribute.