74HC595 Library Porting | 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
74HC595 Library Porting
August 25, 2015
5:37 pm
Avatar
elecsiam
Member
Members
Forum Posts: 6
Member Since:
August 25, 2015
sp_UserOfflineSmall Offline
Hi ,

This is my first post here.

I am currently evaluating the compiler to see whether it fits my purpose or not, before buying it.

Now,i try to porting library 74HC595 but my *.vi not have work.

Currently my library in addon folder.
 
What about my mistake in code.
 
Thank you all for your attention
August 26, 2015
4:23 am
Avatar
filipealtoe
Admin
Forum Posts: 98
Member Since:
March 12, 2015
sp_UserOfflineSmall Offline

Hello;

Can you save your VIs as LabVIEW 2014 VIs and reattach?

Thanks

Filipe

Cheers
Filipe

August 26, 2015
10:50 am
Avatar
elecsiam
Member
Members
Forum Posts: 6
Member Since:
August 25, 2015
sp_UserOfflineSmall Offline

Hi Filipe,

New attact file for Labview 2014.

August 26, 2015
1:53 pm
Avatar
filipealtoe
Admin
Forum Posts: 98
Member Since:
March 12, 2015
sp_UserOfflineSmall Offline

Thanks for posting the LV2014 VIs. One thing I noticed is that you don't have your APIs password protected. Did you specifically change that so I could see inside the VIs or your original code also didn't have them password protected. The compiler requires them to be password protected. Please refer to the full user guide showing the step by step process on how to create API VIs that we included as part of the User Manual, if you already didn't look at that.

In looking at your code, the two API methods in the Translator.vi are single lined functions. So, it is hard for me to know what may be wrong with that without more details. Have you used the Arduino Code Display Tool that is part of the Compiler to see the C-code that is being generated by your VIs. Also, I didn't see a test VI attempting to call the two API VIs you created. You should create a test VI and run that through the Arduino Code Display Tool to start debugging your work.

Filipe

Cheers
Filipe

August 26, 2015
2:01 pm
Avatar
elecsiam
Member
Members
Forum Posts: 6
Member Since:
August 25, 2015
sp_UserOfflineSmall Offline

Oh. I forgot it about password protect.

Thank you for your reply.

I will solve again in tomorrow.

 

Thank you very much.

August 27, 2015
3:46 pm
Avatar
elecsiam
Member
Members
Forum Posts: 6
Member Since:
August 25, 2015
sp_UserOfflineSmall Offline

Hi.

I add password and try to run arduino Code but show error in attact picture.

 

How to solved it.

error.pngImage EnlargerAddon.pngImage Enlarger

sp_PlupAttachments Attachments
August 27, 2015
4:06 pm
Avatar
Steffan
Admin
Forum Posts: 408
Member Since:
March 12, 2015
sp_UserOfflineSmall Offline

The license part of the error is a little misleading.  The issue is the Translator.vi is not found.  This needs to be part of the lvlib you created, which looks like it is.  Where are you putting your addon?  Did you follow this important piece of information?  The library needs to be placed in the addons folder.  Also, the Translator.vi does not need to be password protected.

IMPORTANT: It is extremely important to point out that, like the Digilent Analog Shield set of API VIs that were created to illustrate how existing Arduino libraries can be ported into the Arduino Compatible Compiler for LabVIEW, any user created set of API VIs need to reside in the directory: "[LABVIEWDIR]\vi.lib\Aledyne-TSXperts\Arduino Compatible Compiler for LabVIEW\addons". This indicates to the compiler that those VIs are user created, and they corresponding C-code can be displayed by the Arduino Code Display Tool, explained in step 5 below.

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