Using the 'Digital Write Square Wave' VI works for generating a square wave on any chosen channel of the Arduino Mega2560 successfully. However, I have a need for multiple waves simultaneously.
Ideally, I'd like to do different frequencies on different channels. If that isn't possible, same frequency on different channels would be something I can live with. Is this possible?
I tried calling the digital write square wave.vi multiple times, but only the first one works. The remaining ones don't throw any error but don't seem to generate the required waveforms either.
The Generate N PWM signals works for generating multiple waveforms, but unfortunately all of those waveforms are at a single hardcoded frequency and only the duty cycle can be varied.