04-18-2024 09:12 PM
Please refrain from creating multiple posts for the same topic. Consolidating into one thread provides full history of the options you have tried and guidance provided.
https://forums.ni.com/t5/LabVIEW/Writing-dynamic-pulse-signal-to-DAQmx-write-buffer/td-p/4367934
https://forums.ni.com/t5/LabVIEW/PWM-duty-cycle-output/m-p/4367124#M1283061
04-19-2024 01:20 AM
Hi Matthews,
@21Matthews wrote:
My code currently runs my waveform and collects data points for 2 seconds before sending data to the "DAQmx write" function. When I highlight the execution, it looks like only the latter second of data is written into the buffer, which then plays for 2 seconds.
Your code does EXACTLY what you have programmed to do: use the waveform generated of the last iteration of your FOR loop!
Hint: there's a AppendWaveform function that you can use to append one waveform to the other…
04-19-2024 07:44 AM
This post is duplicated with Re: DAQmx functions - update frequency