6:26 pm
June 21, 2016
9:32 am
June 21, 2016
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
while compiling I have got few different types of error, now I am stuck with following error
How to resolve it?
9:07 am
June 21, 2016
8:11 am
June 21, 2016
2:22 pm
March 12, 2015
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()
{
}
9:10 am
June 21, 2016
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.
13
1 Guest(s)