Change of PWM frequency possible? | Arduino Compatible Compiler for LabVIEW Discussions | Forum

Avatar
Please consider registering
guest
sp_LogInOut Log In sp_Registration Register
Register | Lost password?
Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
sp_Feed Topic RSS sp_TopicIcon
Change of PWM frequency possible?
June 23, 2015
11:55 am
Avatar
ML
New Member
Members
Forum Posts: 1
Member Since:
June 23, 2015
sp_UserOfflineSmall Offline

Hello at all,

I got an Arduino Uno and LabView 2014. I compiled the Arduino with my code so that Pin 9 outputs a PWM Signal.

Now the Frequency is set by default to 500Hz.

Is it possible to change the frequency of the PWM port (Pin 9) of the Arduino Uno with LabView?

I want to change it too 200Hz.

 Any ideas are welcome.

Thanks in advance.

ML

June 23, 2015
1:34 pm
Avatar
Steffan
Admin
Forum Posts: 408
Member Since:
March 12, 2015
sp_UserOfflineSmall Offline

Take a look at the VI Documentation for Analog Write.  Also documented here, the PWM frequency using this method is fixed to 490Hz.  What you can do is use a timer interrupt and toggle a Digital I/O to get 200Hz.  Take a look at the "Interrupt - Timer.vi" example.  Hope that helps.

Forum Timezone: UTC 0
Most Users Ever Online: 100
Currently Online:
29
Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
miche91: 33
scottj: 28
scadao: 23
Member Stats:
Guest Posters: 5
Members: 202
Moderators: 0
Admins: 3
Forum Stats:
Groups: 1
Forums: 2
Topics: 266
Posts: 1222
Newest Members:
pujacontrol
Administrators: geadmin: 22, filipealtoe: 96, Steffan: 356