Hi Chris,
We would like to create an mworks training xml for bar pulling where a reward is simply dispensed every time a bar is pulled–nothing needs to be shown on the screen. The bars we have have BNC connectors, so we were considering hooking these up to a battery and have a circuit created/broken each time the bar was pulled such that we could send a TTL pulse to the ITC I believe.
I’m trying to figure out what the xml would look like. My understanding is that I would first define the iochannel with something like:
and then define barSent to set the reward variable when changed? (I believe this triggers the reward, if I use one of our prior RSVP xml files as a starting template.
<action type="assignment" variable="reward" value="reward_duration" tag="Assignment"></action>
Thanks!
Darren