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 4 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
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: 304
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: 33

Currently Online:
2 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

John: 18

RTSLVU: 15

Dan6077: 11

Member Stats:

Guest Posters: 0

Members: 80

Moderators: 0

Admins: 3

Forum Stats:

Groups: 1

Forums: 2

Topics: 58

Posts: 289

Newest Members: Geraldkix, ThomasSoogs, Angelvor, AngelaMuh, Nsneilohone

Administrators: geadmin: 5, filipealtoe: 35, Steffan: 89