porting example documentation | 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
porting example documentation
June 28, 2016
6:26 pm
Avatar
senthilkumaranms
Member
Members
Forum Posts: 9
Member Since:
June 21, 2016
sp_UserOfflineSmall Offline

I am getting following error when I compile test.vi. translator.vi is there in my folder and it is part of the lvlib. can someone help me whats the reason?

 

Error.PNGImage Enlarger

sp_PlupAttachments Attachments
June 29, 2016
9:32 am
Avatar
senthilkumaranms
Member
Members
Forum Posts: 9
Member Since:
June 21, 2016
sp_UserOfflineSmall Offline

Please see attached the code that I developed for porting HX711 board. as per the instructions in user manual,  I have created following API vis

HX711(byte dout, byte pd_sck, byte gain = 128);
long read();
HX711::power_down()

 

while compiling I have got few different types of error, now I am stuck with following error

Notexecutable.PNGImage Enlarger

How to resolve it?

sp_PlupAttachments Attachments
June 30, 2016
9:07 am
Avatar
senthilkumaranms
Member
Members
Forum Posts: 9
Member Since:
June 21, 2016
sp_UserOfflineSmall Offline

Can somebody look in to the issue in porting?

July 1, 2016
8:11 am
Avatar
senthilkumaranms
Member
Members
Forum Posts: 9
Member Since:
June 21, 2016
sp_UserOfflineSmall Offline

Did I ask the support at incorrect topic? why ACCL engineers are not responding?

July 1, 2016
2:22 pm
Avatar
Steffan
Admin
Forum Posts: 408
Member Since:
March 12, 2015
sp_UserOfflineSmall Offline

Sorry for the late reply on this.  As stated in the user manual this is an advanced feature and support is mainly from the community.  There are a couple issues though.  First you need to make sure your folder name is the same as the library name.  I changed your folder name to "HX711" then it attempted to compile.  The rest of the issues are in your C code translation.  You should be able to view the C code using the Compiler>Arduino Code option with your Test.vi loaded.  This produces the following C code, which does not compile in the Arduino IDE.  You are not creating the HX711 object properly and the inputs are not mapped correctly.  I suggest you take a look at the HX711 examples for the proper C code and review the ACC4LV manual on porting for proper input and output mapping.

 

#include "LVArray.h"
#include "A4Lhelper.h"
#include "HX711.h"
void setup()
{
unsigned char Const182;
unsigned char Const156;
unsigned char Const131;
Const182 = 128;
Const156 = 23;
Const131 = 22;
HX711.HX711(Const156, Const182, error_in__no_error__212);

}

void loop()
{
}

July 5, 2016
9:10 am
Avatar
senthilkumaranms
Member
Members
Forum Posts: 9
Member Since:
June 21, 2016
sp_UserOfflineSmall Offline

Thank you. problem resolved. code compiled in Arduino.

In the user manual, Folder name has to be same as the library name Instruction is not mentioned.

support community on porting is yet to grow it seems until that queries which are related to ACCL side has to be addressed by ACCL engineers. Now with my experience I can support this community in porting.

July 7, 2016
10:44 pm
Avatar
Steffan
Admin
Forum Posts: 408
Member Since:
March 12, 2015
sp_UserOfflineSmall Offline

Thank you for the feedback.  We have made an update to the documentation explaining the folder naming, which will be distributed in the next release.  We will also consider modifying the addon capabilities to allow any naming convention of the lvlib within the folder.

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