05-18-2022 12:04 PM
I use USB-6341 board. Is it possible to generate a pulse train such as PWM output and stop this pulse train after certain number of pulses generated. So lets say each time I call a function, one of the DAQ output will produce a pulse train of 1000 pulses and then stop.
Is it possible to achieve that without using a counter input?
And secondly when I try to generate pulse by using VS C# examples I get the following error:
Best regards,
05-18-2022 02:17 PM
I don't know any of the C# syntax, but yes, that's absolutely possible.
In LabVIEW, I'd call the function to configure task timing and specify "implicit timing", "finite samples", and set # samples = 1000.
The error message seems to be referring to your duty cycle value. Duty cycle needs to be a fractional value between 0 and 1 (non-inclusive), not a percentage value from 0 to 100.
-Kevin P
05-19-2022 08:39 AM
As you see in my case it is in the range 0.5. But I still get this error.
05-19-2022 08:57 AM
The error message claims that you're requesting a duty cycle of 5. I have no way of knowing what goes on in the code between those 2 screencaps, so my starting assumption is that the error message is likely to be telling the truth, and the problem lies somewhere in that in-between code.
-Kevin P