Creating custom waveforms from an existing waveform
I got my PropScope this Christmas and I am still getting use to it.
I wanted to play with the custom waveform generator. I thought it would be very practical to take an existing waveform saved on from the oscilloscope and load it into the custom generator then I could modify it as I wanted but so far no luck. The Oscilloscope save files have 300 data points and the waveform generator uses 600. I also got an error about a bad index value.
I will create some waveforms in Excel and try importing them but I still think there should be an easy way to copy an existing waveform into the generator.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
BioProp: Robotics - Powered by Bioloids and controlled by the Propeller
I wanted to play with the custom waveform generator. I thought it would be very practical to take an existing waveform saved on from the oscilloscope and load it into the custom generator then I could modify it as I wanted but so far no luck. The Oscilloscope save files have 300 data points and the waveform generator uses 600. I also got an error about a bad index value.
I will create some waveforms in Excel and try importing them but I still think there should be an easy way to copy an existing waveform into the generator.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
BioProp: Robotics - Powered by Bioloids and controlled by the Propeller
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
BioProp: Robotics - Powered by Bioloids and controlled by the Propeller
(Although I hadn't thought about importing them from something like Excel.)
Would others find it useful to have a prop-based waveform generation program?
OBC
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
New to the Propeller?
Visit the: The Propeller Pages @ Warranty Void.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
BioProp: Robotics - Powered by Bioloids and controlled by the Propeller
Hanno
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Co-author of the official Propeller Guide- available at Amazon
Developer of ViewPort, the premier visual debugger for the Propeller (read the review here, thread here),
12Blocks, the block-based programming environment (thread here)
and PropScope, the multi-function USB oscilloscope/function generator/logic analyzer
Does the file have to be a TXT file?? Thanks
On either the Oscilloscope or Analog tab there is a Generator widget on the right in the middle. Select "Custom" and "edit" and it opens up a window to design a waveshape in. There are also buttons in that window to load or save a waveform that you created. It looks like you can use a CSV or TXT file but TXT seems to be the default. Since the spreadsheet has multiple worksheets, it is easier to cut/paste the data into Notebook to create a txt file. Just highlight the first two column headers (A &
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
BioProp: Robotics - Powered by Bioloids and controlled by the Propeller
Jim
We may have to·have a sticky for things like this!
BioProp is a once and future project of mine. It uses the Bioloid robot development kit by Robotis: http://en.wikipedia.org/wiki/Robotis_Bioloid, http://www.crustcrawler.com/, http://www.tribotix.com
The servos are intelligent actuators and communicate at 1Mbps which is perfect for the Propeller. Crustcrawler maintains a Propeller object for communications. http://forum.crustcrawler.com/phpBB3/viewtopic.php?f=12&t=1050
My other project·is speakers based on Siegfried Linkwitz's Pluto design http://www.linkwitzlab.com/Pluto/intro.htm·but that is even further off topic...
I still think we need a way to capture an existing waveform and import it into the generator so we can modify it and replay it at will. (Maybe you will want to add a noise spike into an existing signal) I tried saving my FunWave but it is impossible to make it "full size" so I would have to cut it out of the save file which means it only has around 100-150 samples. There has to be a better way.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
BioProp: Robotics - Powered by Bioloids and controlled by the Propeller
The generator algorithm interpolates between the imported samples so 600 samples are shown and will be used at low frequencies. If you provide more or less, it'll take care of it. I did fix one off-by one error so for particular sample numbers it'll currently give you an error. I'm off for 7 days but will have a 1.04 release at that point.
Feel free to provide additional feature suggestions in the mean time...
Hanno
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Co-author of the official Propeller Guide- available at Amazon
Developer of ViewPort, the premier visual debugger for the Propeller (read the review here, thread here),
12Blocks, the block-based programming environment (thread here)
and PropScope, the multi-function USB oscilloscope/function generator/logic analyzer