04-25-2024 04:33 AM
Hello all,
I am trying to do signal generation (Sin Wave). My board is USB 7856 EOM.
I am attaching a screenshot of my signal as shown in the oscilloscope, I cannot figure out why it is so distorted, is there an issue with the Loop timing or update rate?
The graph looks OK when I simulate it but the analog signal display on my oscilloscope is seen in the attached image and there is some error.
PS I did this based on the "data processing" example found in the LabVIEW example finder, I retained the "Number to boolean" and "boolean to number" conversion as it was in the example. Is that the issue or is there a flaw in my logic?
04-25-2024 07:30 AM
Nothing is attached. Please attach your image and your code.
04-25-2024 07:59 AM
Sorry about that.
I made small changes to the code, I am attaching the VI and my signal as displayed on the oscilloscope, as you can see the sin wave is not good, how do I make it better?, is making the loop faster a solution, if yes, how do I do that manually?
04-25-2024 08:23 AM
The code looks good. What are the values of AO0 freq and Loop time?
04-25-2024 08:27 AM
the frequency is 100 KHz and the loop time is 40 (Ticks), 32 bit
04-25-2024 08:29 AM
I'm trying to change various parameters such as look-up table size as well as bit resolution to reduce the loop time and get a smoother wave, but none of them work. The time is struck at 40.
04-25-2024 11:28 AM
Could this be an analog problem? Are you driving a component (amp, etc.) into saturation (clipping)?
04-25-2024 04:33 PM
I don't know. How do I check if I'm doing this?
Do I check it from the board specifications? (f yes, what exactly should I see)