02-26-2010 05:19 AM
Thanks you very much, I will start modifying it and see how get on 🙂
02-26-2010 09:16 AM - edited 02-26-2010 09:19 AM
I cant seem to run that VI.
Error -200077 occurred at Property Node DAQmx Timing (arg 3) in DAQmx Timing (Sample Clock).vi:2->PWM-Counter Output.vi
Possible reason(s):
Measurements: Requested value is not a supported value for this property.
Property: SampQuant.SampMode
You Have Requested: Hardware Timed Single Point
You Can Select: Finite Samples, Continuous Samples
Task Name: _unnamedTask<17>
I guess that my card cannot do some of the clock tasks?
Edit: When i change the Hardware Timed Single Point option i get this error:
Error -200778 occurred at DAQmx Start Task.vi:2
Possible reason(s):
Measurements: Sample Mode is set to a value other than Hardware Timed Single Point. This is the only value supported for counter generations when Sample Timing Type is set to Sample Clock.
Change the Sample Mode or the Sample Timing Type.
Property: SampQuant.SampMode
Corresponding Value: Continuous Samples
Property: SampTimingType
Corresponding Value: Sample Clock
Task Name: _unnamedTask<1A>
02-26-2010 10:22 AM
The code is just an example for a specific device. You have to make modification as you seet fit for your device. As a last resort, you can always generate the PWM in a loop (software based).
Yik
02-27-2010 05:39 AM
Thank you, I think I was getting close to what I need. Your help is much appreciated 🙂
Adam
02-27-2010 01:57 PM
No problem. Let me know what the program look like at the end.
Yik
03-01-2010 07:22 AM
I will do.
Thanks again.
Adam
03-09-2010 04:17 AM
This works but still needs some tuning