Close

PC Software: Analog Output

A project log for STM32G4 DAQ

A DAQ with 8 Diff/16 Sin. Ended +/- 12V input channels and four +/- 12V output channels using the STM32G4

notblackmagicNotBlackMagic 09/22/2020 at 21:570 Comments

The last week was spent on improving the signal generation functions of the PC Software. All signals are now generated with a variable number of sample points that scales with the signal frequency. A minimum of 20 points is used, at the highest signal frequency of 100 kHz, and this scales up to a maximum of 100 points for signal frequencies of 10 kHz or lower. The figure bellow shows a sine wave with the increased number of points, here 100, as well as a new type of signal that the PC Software can now generate, square waves.

Besides the improved sine wave generation and the added square wave signals, a ramp signal generation was also added. The ramp center point, highest point, can be configured with the duty cycle parameter. The Figure bellow shows an example of a generated Ramp signal as well as another square wave:

Both the above images are taken with the DAQ sampling its analog outputs.

The current PC Software is available on my GitHub page. For more information and more figures visit my website.

Discussions