Generate different types of output functions
Hello,
I am using the tab Function Generator to create output signals (0-10V). The types of signal I am using are sinusoidal or step-based. Using the GUI, it seems we can generate cyclic signals using simple parameters (e.g. frequency). I would like to build a sequence of signals (e.g. x sinus then y steps, repeated n times). Each signal would be defined using a couple points (time, voltage). Do you think a python script could help in doing this ?
Customer Support Engineer
Dear Anicet,
Thank you for your question. Can you more briefly describe the signal? How many periods for each signal, voltage of each signal, frequency of each signal, when repeat and how many repeats, etc. An drawing would be also much appreciating.
Best regards
Matic Pevec
@Matic Pevec
Hi Matic,
The AO signal aims at using an air distributor. The output pressure varies linearly as a function of the input voltage (0-10V). A typical sequence would be:
- 1000 sinusoidal signals (freq: 0.25Hz, amplitude min: 1V, amplitude max: 5V)
- 10 square signals (ramp up to 10V in 200 ms, 10-s plateau, ramp down to 1V in 200ms)
- 2 last points repeated 100 times
- 1000 sinusoidal signals (freq: 0.25Hz, amplitude min: 1V, amplitude max: 5V)
Using other ports (AI) would aim at measuring other variables (e.g. voltage basically) whose value could interrupt or modify the previous described sequence for example.
A sequential function chart based approach would be very valuable.
Thanks,
Anicet
Customer Support Engineer
Dear Anicet,
So the signal should continue sequentially in the following order
... 1000 sinus - 10 square ... 1000 sinus - 10 square .... etc. up to 100 times
I'm wondering if the square signal needs ramp-up of 200ms or it could be perfect square?
Need the Square signal perfect continuation from Sinus?