Porting API from Arduino Library not success | 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 API from Arduino Library not success
March 12, 2021
7:26 am
Avatar
billy.deng
Member
Members
Forum Posts: 3
Member Since:
November 5, 2020
sp_UserOfflineSmall Offline

I am using LabVIEW2014 32bit version and arduino 1.6.9 IDE. When I following the user manual to porting out API from Third part library not success. can anyone tell me what's the wrong operation with me?

I put demo vi in attachment and place in Example. also I put pwm library together. 

generate arduino code like this and miss the key funciton:    pwmWrite(uint8_t pin, uint8_t val);

#include "LVArray.h"
#include "A4Lhelper.h"
#define __AVR_ATmega2560__
#include <PWM.h>
#include "HBS57_LV.h"
void setup()
{
unsigned char Const438;
unsigned char Const413;
Const438 = 255;
Const413 = 0;

pwmWrite(uint8_t pin, uint8_t val); ---here miss the function.

}

void loop()
{
}

March 12, 2021
5:54 pm
Avatar
Steffan
Admin
Forum Posts: 408
Member Since:
March 12, 2015
sp_UserOfflineSmall Offline

Check your spelling in your translator case structure.  You have spelled "lvlib" incorrectly.  It is "lvib" in all case structures.  Also the MO Open case doesn't have the correct name.  It is "HBS57_LV.lvib_LV:M0 Open" but should be "HBS57_LV.lvlib:M0 Open".

March 13, 2021
2:34 am
Avatar
billy.deng
Member
Members
Forum Posts: 3
Member Since:
November 5, 2020
sp_UserOfflineSmall Offline

Steffan said
Check your spelling in your translator case structure.  You have spelled "lvlib" incorrectly.  It is "lvib" in all case structures.  Also the MO Open case doesn't have the correct name.  It is "HBS57_LV.lvib_LV:M0 Open" but should be "HBS57_LV.lvlib:M0 Open".

  

thanks very much. it works.

Steffan said
Check your spelling in your translator case structure.  You have spelled "lvlib" incorrectly.  It is "lvib" in all case structures.  Also the MO Open case doesn't have the correct name.  It is "HBS57_LV.lvib_LV:M0 Open" but should be "HBS57_LV.lvlib:M0 Open".

  

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