03-07-2023 04:03 AM
Hi All,
i am trying to build a sine wave generator, which is able to create frequencies up to 100 kHz, using a Veristand model.
The model i built uses the absolute system time and simply calculates the sine with different input channels like frequency, amplitude, etc.
I think my problem is that the PCL rate maxes out at around 15 kHz so as i am understanding it the model can only be executed at these 15 kHz giving me one value in each execution.
Is there a way to increase the PCL execution rate? Or do you guys have any other ideas for a signal generator that generates such high frequencies?
I am using Veristand 2018 and a PXIe-8880 RT Controller. Further i am using the PXIe-4353, PXIe-6738, PXIe-6356 and PXIe-6378 Cards.
Thanks for your help!
03-07-2023 08:23 AM
Since you need a waveform of 100 kHz, you cannot use a model which runs on software timing to generate the data point.
Use DAQ-Waveform-Function-Generator-Custom-Device instead. This custom device allows you to use the Analog Output of any of your DAQmx devices using the onboard sample clock of the device. You only use the PCL to update the parameters of the waveform during runtime.
03-13-2023 10:26 AM
Thanks for your answer!
But also with this custom device I am not able to generate a good sine at a frequency of 100 kHz. Even with a sample rate of 1e6 Hz and 1e7 samples i only get 10 samples per sine wavelength. I was using the PXI-6378 AO0 output.
Increasing the sample rate and/or the number of samples isn't possible since Veristand wont deploy anymore.
Is there a way to get more samples per wavelength?
Further, as I understood, the custom device uses an AO of the card, which needs to be disabled in Veristand, making the other AO/AI useless. If the card is not disabled i get an error while deploying. Is this based on a mistake I made or is just how it works?