03-28-2022 02:47 AM
Hello everyone,
I am trying to generate a sinusoidal signal that changes frequency every 3 seconds. The frequencies to be scanned are previously provided by the user in a table that will be read step by step.
My problem comes from the graph which displays the curves with a too fast scrolling, where the units of the X axis are not in second.
Unfortunately, I don't have an oscilloscope to check the output, I want to rely on the graph display for now.
Do you have a solution for me, or another method to do this signal generation
Thanks in advance, for your time,
Solved! Go to Solution.
03-28-2022 03:33 AM
You have 2 (3?) main problems with your VI:
03-28-2022 03:51 AM - edited 03-28-2022 03:52 AM
Here's a possibly simpler version, using only non-Express nodes:
I chose 0.1s blocks to update the graph, and used a Property Node to change some aspects of the graph - in particular, I set the "X-Scale Multiplier" to the dt value (so that the x scale would show time in seconds, instead of the index of the plot) and the "History" to an empty array (you can delete this part and see the difference, if you like).
The input to the Sine node is 2*pi*f*t, and the output of that node is multiplied by the amplitude to give Y = A*sin(wt).