1. Both generators are arbitrary waveform generators. So the answer is yes with caveats.
You can define your own waveform to depict what it is you want to do. However, keep in mind that if you have more than one square wave in your waveform, that you essentially now have more than one cycle in the waveform.
So the resulting output frequency will be altered as you have no way to tell Spooky2 how many waveform cycles are embedded to account for the correct playback rate.
For example, if your custom waveform consist of 3 square waves with varying duty cycles, and you play it at 100 Hz, you will actually get 300 Hz.
If you specify a wave cycle multiplier to indicate the # of cycles (3 as in above example) in your custom waveform, you will end up just making it worse as you will now have 3 copies of the 3 cycle waveform, meaning that your 100 Hz rate will produce 900 Hz.
So typically one will create a custom waveform with only one cycle in the waveform and then control other factors with use of say a gate, etc.
Hope this gets you started with your project.
2. Now you are talking maybe amateur radio stuff, where they use digital signaling ontop of a carrier. an arbitrary function generator can only do so much....
I would say no right off the top of my head, there are differing things you can do with mixing the square waves on top of other waves, but if you are adding two square waves then you are getting into strange pulse coded frequencies etc. you can modulate the sine wave with a square wave signal on top of it I guess, among several other things. But now we are definitively into electronics and mixers and heterodyning, etc.
3. I have an interpretation of what Charles is saying that is different from Jeff and Phip. The sequence 1,1,1,0,1,0 represents a ratio of on/off times for a waveform. So this looks like 2 square waves, the 1st has a duty of 75%, the 2nd has a duty of 50% (but half the period of the 1st wave).
The way I would code this into a custom waveform is the following.
A custom waveform has 1024 entries, between -1 and 1.
In Charles' description there are 6 values or 6 parts. So in the custom waveform, I would have it look as follows:
(1024/6) lines of 1's
(1024/6) lines of 1's
(1024/6) lines of 1's
(1024/6) lines of 0's
(1024/6) lines of 1's
(1024/6) lines of 0's
or
512 lines of 1's
171 lines of 0's
170 lines of 1's
171 lines of 0's
There is some rounding above, since 1024/6 is 170.6666....
So create a .csv text file that look as follows:
1
1
1
... upto 512 total 1's
0
0
0
... upto 171 total 0's
1
1
1
... upto 170 total 1's
0
0
0
... upto 171 total 0's
For more details, please check the link:
https://www.spooky2.com/forums/viewtopic.php?f=71&t=9781
Comments
Please sign in to leave a comment.