5:03 am
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
26
1 Guest(s)