Encoder Counts | Arduino Compatible Compiler for LabVIEW Discussions | Forum


Please consider registering

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
Encoder Counts
January 17, 2017
5:03 am
New Member
Forum Posts: 2
Member Since:
January 16, 2017
sp_UserOfflineSmall Offline


First of all I'll try to explain my application.

I'm acquiring the encoder counts using an encoder interfaced with Arduino Uno board in LabVIEW. After few counts I'll generate a trigger(e.g from a push button) and record the current encoder count value along with some offset which will be used for triggering 3 sensors(e.g LEDs).

I'm able to do this using LINX(LabVIEW MakerHub) in LabVIEW. But the same thing if I'm trying to do it using Arduino Compatible Compiler for LabVIEW, what actually happens is that after generating a trigger via push button, the respective LEDs are turning ON(sequentially) after 4-5 encoder counts instead of the given offset values. I have attached both the VIs.(LINX and Compiler VIs)

I'm new to Arduino Compatible Compiler for LabVIEW so I'm not sure what might be the actual reason to this. I have also tried it using Local and Global variables but getting the same problem.

Also, I need to know that is it possible to make use of queues operation in Arduino Compiler, because I actually want to store multiple encoder counts in Temp Count variable whenever a trigger is generated(from a push button) with its respective offset values for other 3 LEDs. I know that the current code is only capable for storing only 1 variable at a time.

Any help would be really appreciated.

Developing environment:

Windows 10, LabVIEW 2015, Arduino IDE 1.8.1, Arduino Compatible Compiler for LabVIEW

January 17, 2017
10:08 am
New Member
Forum Posts: 2
Member Since:
January 16, 2017
sp_UserOfflineSmall Offline


I figured out that by adding a delay, the Arduino compiler VI now works fine.

But I still want to know whether the queue operation is supported in Arduino compiler?

Or is there some other ways to store multiple values along with use of global variables.

January 18, 2017
6:08 pm
Forum Posts: 304
Member Since:
March 12, 2015
sp_UserOfflineSmall Offline

No, queues are not supported.  Take a look at the user manual and the installed palette which gives a complete list of supported functions.  You could store multiple values using a single dimensional array.

Forum Timezone: UTC 0

Most Users Ever Online: 33

Currently Online:
6 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

John: 18


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