Initial disclaimer: I am relatively new to both Arduino and ePrime2.
I am attempting to run a psychological experiment using ePrime2 (version 2.10). I need the Arduino to select randomly (as programmed in ePrime) between 2 channels. The ePrime2 code is not triggering any errors, and the Arduino board is functioning correctly, as evidenced by trials of simple sketches. Here is the pertinent section of the ePrime code:
'Initialize StrWrite
Dim strWrite As String
'Get Channel attribute
Select Case c.GetAttrib("Channel")
Case 1
strWrite = "1"
Case 2
strWrite = "2"
End Select
'Write a string of data to the serial device
Serial.WriteString strWrite
Do I need to upload a particular sketch to the Arduino in order for the above ePrime code to actually interface with Arduino? Or is there another issue I'm overlooking? I appreciate any guidance. Thanks for your time.
David