Hi Josh,
I am now trying to record analog signals from a joystick using the analog input modules and send these data to a PC (MATLAB) to control the movement of a virtual object on the screen in real-time.
I have read the Bpod wiki and learned that the way to do this should probably be using the 'startUSBStream()' function within 'BpodAnalogIn'. However, I am a bit confused about the data that obj.Port.read(nActiveChannels, 'uint16') returns. Does each columns represent the sample from each channels? If that's the case, I am not sure why the values of the bits aren't changing when I push the joystick. I have used the GUI of 'scope()' to verify that my joystick is functioning so it shouldn't be a hardware problem.
Alternatively, do you know if there is a better way to achieve my goal?
Thank you in advance!
Best,
Tin