Hello, my question is, when I'm adding a wave from an existing Spike2 data file using PlayWaveAdd, how can I change the amplitude of the voltage being sent out by the DAC? Currently, no matter how I resize the wave before adding it to the online wave list, it is giving me the same output, which happens to go beyond the voltage limits of my controlled motor.
For more details, I'm creating a sum-of-sines stimulus vector in Matlab, exporting it as a .csv file, and then importing that into Spike2 and saving it as a .smrx file. I then add that .smrx file into my desired run using PlayWaveAdd, using the command variant where I specify the path to the .smrx file. The issue is that no matter what the absolute values are that I save in Matlab, it appears that Spike2 always interprets them to span the whole +-5V range of our 1401. This is also true regardless of what units I specify during import (V, mV, etc); an input wave that goes from -1 to 1 gives the same DAC output as a wave that goes from -0.00001 to 0.00001 (checked on an oscilloscope). This is an undesired behavior, since I want to run a motor a certain length of time before switching directions, and if the overall wave covers the full -5 to 5V range, the motor always ends up hitting a hard stop.
So, is there a way to specify the amplitude of the wave that gets added using PlayWaveAdd? Or, is there something about the function that I'm not understanding correctly? Thank you for any suggestions.