Measuring Pulse Width? | 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
Measuring Pulse Width?
January 1, 2020
2:58 pm
Avatar
Alan Kitching
Member
Members
Forum Posts: 9
Member Since:
August 16, 2019
sp_UserOfflineSmall Offline

Hi.

I would like to be able to measure servo pulse width (1 - 2mS).

I have found that in Arduino native code there are at least three ways to do this, but when I try to replicate any of these using functions from the Arduino Compiler pallet in LabVIEW I have not been able to make it work.

Can anyone help with this please?

Alan K.

January 2, 2020
6:52 am
Avatar
Steffan
Admin
Forum Posts: 408
Member Since:
March 12, 2015
sp_UserOfflineSmall Offline

You would probably want to use a digital interrupt on the servo line and measure the time difference in microsecond from each hit of the interrupt.  There are some other posts about this I found like the following that may help you:

https://www.geverywhere.com/fo.....upts-time/

Forum Timezone: UTC 0
Most Users Ever Online: 100
Currently Online:
6
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