Encoder Counts | 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
Encoder Counts
January 17, 2017
5:03 am
Avatar
ajitc
Guest
Guests

 Hello,

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 1.0.0.21

January 17, 2017
10:08 am
Avatar
ajitc
Guest
Guests

Hello,

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
Avatar
Steffan
Admin
Forum Posts: 408
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: 100
Currently Online:
26
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