I noticed that you can upload a custom pattern with a CSV file in the pattern generator in Scopy. Does anyone know what the format for the CSV is? I'd like to create some custom patterns, perhaps something like: 10kHz square wave on for 1ms, then off for 1ms, then 10kHz on for 2ms, then off for 4ms.
Is it even possible to make the this specific of a pattern? If not, is there other software compatible with the ADALM2000 that can create this kind of pattern?
Yes it is possible. There are 2 formats that are compatible, the first format is whatever is provided by the logic analyzer on export. You can load an exported logic analyzer plot into the pattern generator. (example2.csv) - gist.githubusercontent.com/.../example2.csv
The second format which is a lot simpler, each column represents the channel relative to the channel group, while each line is the sample. example.csv is an example of the pattern you requested. In Scopy, for the Import pattern, you select the file, click import, and then set the sample rate. - gist.githubusercontent.com/.../example.csv
If you have multiple channels that you want to import, make sure you apply the Import pattern to a channel group rather than a single channel. This will make sure that the import pattern is applied on all channels in the group.
I came upon this post and wish to add some information as well as piggy back another question.
First: The output of the pattern generator, while at idle, outputs something between 0V and 3.3V. This is an indeterminate logic state and causes problems with whatever logic the output of the ADAL2000 is connected to if you don't provide a pulldown resistor. Wanted to mention this and see if its an oversight in the firmware, or an intentional feature. Second: How do you get the pattern to line up and repeat with a pattern.csv file?For example: I have the frequency set to 1kHz. I use DIO0 and import and load a pattern.csv file, which looks like:
010Then I hit "SINGLE" to output a single shot of this pattern. What the oscilloscope reads is a 1ms high pulse as expected, followed by 4ms low pulse, then after this 4ms is up the output goes high and stays high for something like 500ms. Why is this so? My expected output is a single high pulse of 1ms, but instead there are transitions as described above. Why does the output of DIO, after the pattern is read out, go high and stay high for such a long time? Am I doing something wrong, or is this something in the firmware that's amiss?
Yes, the high Impedance state of the logic output is an intentional feature. We don't know what you're connecting the pattern generator to - having the lines connected to logic 0 might mess things up for some circuits. This is why we set the output to high impedance so you can configure it yourself with a pulldown resistor.
As for the second part
- I didn't get the exact timings you were mentioning - can you post a picture with the measurements ? However the problem might be due to a limitation of the pattern generator - the number of samples must be even and a multiple of 4. If it's less than that, the pattern generator automatically pads with zeroes. That is why you probably see the longer LOW pulses. Try repeating the pattern a couple of times or increasing the sample rate to achieve the condition.