U3 and PWM
Posted 26 October 2009 - 01:47 PM
Posted 26 October 2009 - 02:18 PM
Posted 26 October 2009 - 05:12 PM
1) Use the test panel in LJControlPanel to try turning on the PWM output and viewing it on your scope.
2) Try the example TimerPWM.ctl mentioned in Section 10.5.1 of the DF-LJ App Guide.
3) Your pin offset command has a typo in the function name ("AddReuest"). Not sure why you don't get an error, but will ask AzeoTech to take a look.
I confirmed operation with the LJControlPanel, and then checked out the typo. That was indeed the problem. Thanks for the suggestions!
Posted 24 July 2012 - 08:36 AM
Posted 24 July 2012 - 03:07 PM
Start by reading about PWM16 in Section 188.8.131.52:
Then go into the test panel in LJControlPanel and try using it.
Then go to matlab and start with an example that uses a timer.
I try whit the Labjack panel but I couldn't program the signal, I new whit this. And I already read the section of the manual that talk about the PWM signal but I'm still having problems
how can I configure it the pwm signal with the Labjack panel??
Posted 24 July 2012 - 03:49 PM
In the 4th bullet you configure a timer, so that should give you a feel for that.
You need to look at Section 184.108.40.206 and determine the settings you want for TimerClockBase, TimerClockDivisor, and Timer Value. For 50 Hz, I suggest TimerClockBase = 48MHz /Div and TimerClockDivisor = 40, which will give you a frequency around 52 Hz.
Timer Value should be set as desired to get your duty cycle. Start with perhaps 62000.
You want "# of Timers Enabled" to be 1, and "Pin Offset" of 4. That will put your timer on FIO4.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users