Additional Libraries | 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 4 characters - maximum search word length is 84 characters

sp_Feed Topic RSS sp_TopicIcon
Additional Libraries
June 6, 2016
11:04 pm
Avatar
LubomirJagos
Member
Forum Posts: 21
Member Since:
August 4, 2015
sp_UserOfflineSmall Offline

Hi everybody,

last time I was quite busy, but I finally had some time to put together what I did since last summer and packed it into nice packages. Arduino Compiler for LabVIEW is really really great, but still strong tool need some libraries to really shine 😀 I was playing with it with different boards and I was missing some basic libraries like for WiFi for ESP modules, or some math libraries, so I interfaced some basic libraries for now:

  • basic matrix computation
  • arduino math library
  • computation with complex numbers (this looks maybe useless but no one ever knows, still it's better to have)
  • TFT library for graphic display
  • WiFi functions (this to be able using these abilities for programming ESP modules, I tested it with it, but no with Arduino)
  • SoftwareSerial library to be able use additional free serial lines (there is never enough UART lines)
  • LCD wrapper for using 4 wires to control LCD (I have one display, so why to throw it away when it's so nice 😀 )
  • DHTxx library for humidity and temperature measurements (this is part of ESP library)

I put all my code into github, so you are able to download packages for easy installation with palletes and also code to modify it or for inspiration for your. Until now I haven't write any clear documentation, but I put comments into code and also put there functional examples (at least I was able to run them repeatedly).

Here is link to repositray with all latest packages:

And here are links for all repositaries with source code:

So enugh writing, here are some screenshots.

  • this is after installation of all packages
MyAddonsPalleteTop.pngImage Enlarger
  • library for computation with complex numbers
Arduino-ComplexNumbers-Pallete.pngImage Enlarger
  • LCD library for 4 wire connection
Arduino-LCD-wrapper-Pallete.pngImage Enlarger
  • Arduino Math library for doing serious math :)
Arduino-Math-Pallete.pngImage Enlarger
  • basic matrix operations, imagine, that this could be done on 8 bit controller 😀
Arduino-MatrixMath-Pallete.pngImage Enlarger
  • SoftwareSerial, 3 separate for use, if you need one more just do it!
Arduino-SoftwareSerial-Pallete.pngImage Enlarger
  • TFT library (using graphic in LabVIEW looks really interesting)
Arduino-TFT-Pallete.pngImage Enlarger
  • DHT sensor star now available in LabVIEW
ESP-DHT-Pallete.pngImage Enlarger
  • ESP WiFi library, it's really running!
ESP-Pallete-top.pngImage Enlarger
  • client functions
ESP-Pallete-Client.pngImage Enlarger
  • UDP functions
ESP-UDP-Pallete.pngImage Enlarger

So this is it. Nothing is perfect, I really tried to put into VI some documentation to make it easier for use (also for me). I copy most of it from Arduino page, because this is really almost interface 1:1, it means, that each VI is almost equal to one line arduino code. Hope that you would be able to run examples. I have give them logical names, so if you would try to use wifi demo where is server node and client node, there would be one example named like 'base station' and another 'client ...'

Hope that this help you with your applications, if there would be something not running please write it here :)

Note:

  Maybe there would see some subpalletes marked as 'Advanced Tests' or 'Examples', this is equal, they are full running demos for deploy to boards, virtual folders marked as 'tests' are only tests to see if terminal are assign in correct order during compiling, they are not needed anymore, but I left them in library (I don't use to discard old code, rather version it or comment it or hide it somewhere 😀 )

June 7, 2016
8:32 pm
Avatar
tronron
Member
Forum Posts: 16
Member Since:
August 5, 2015
sp_UserOfflineSmall Offline

Amazing work Lubomir! Thank you for sharing!

June 7, 2016
10:07 pm
Avatar
miche91
Member
Forum Posts: 33
Member Since:
May 11, 2016
sp_UserOfflineSmall Offline

LubomirJagos said
Hi everybody,

last time I was quite busy, but I finally had some time to put together what I did since last summer and packed it into nice packages. Arduino Compiler for LabVIEW is really really great, but still strong tool need some libraries to really shine 😀 I was playing with it with different boards and I was missing some basic libraries like for WiFi for ESP modules, or some math libraries, so I interfaced some basic libraries for now:

  • basic matrix computation
  • arduino math library
  • computation with complex numbers (this looks maybe useless but no one ever knows, still it's better to have)
  • TFT library for graphic display
  • WiFi functions (this to be able using these abilities for programming ESP modules, I tested it with it, but no with Arduino)
  • SoftwareSerial library to be able use additional free serial lines (there is never enough UART lines)
  • LCD wrapper for using 4 wires to control LCD (I have one display, so why to throw it away when it's so nice 😀 )
  • DHTxx library for humidity and temperature measurements (this is part of ESP library)

I put all my code into github, so you are able to download packages for easy installation with palletes and also code to modify it or for inspiration for your. Until now I haven't write any clear documentation, but I put comments into code and also put there functional examples (at least I was able to run them repeatedly).

Here is link to repositray with all latest packages:

And here are links for all repositaries with source code:

So enugh writing, here are some screenshots.

  • this is after installation of all packages
MyAddonsPalleteTop.pngImage Enlarger
  • library for computation with complex numbers
Arduino-ComplexNumbers-Pallete.pngImage Enlarger
  • LCD library for 4 wire connection
Arduino-LCD-wrapper-Pallete.pngImage Enlarger
  • Arduino Math library for doing serious math :)
Arduino-Math-Pallete.pngImage Enlarger
  • basic matrix operations, imagine, that this could be done on 8 bit controller 😀
Arduino-MatrixMath-Pallete.pngImage Enlarger
  • SoftwareSerial, 3 separate for use, if you need one more just do it!
Arduino-SoftwareSerial-Pallete.pngImage Enlarger
  • TFT library (using graphic in LabVIEW looks really interesting)
Arduino-TFT-Pallete.pngImage Enlarger
  • DHT sensor star now available in LabVIEW
ESP-DHT-Pallete.pngImage Enlarger
  • ESP WiFi library, it's really running!
ESP-Pallete-top.pngImage Enlarger
  • client functions
ESP-Pallete-Client.pngImage Enlarger
  • UDP functions
ESP-UDP-Pallete.pngImage Enlarger

So this is it. Nothing is perfect, I really tried to put into VI some documentation to make it easier for use (also for me). I copy most of it from Arduino page, because this is really almost interface 1:1, it means, that each VI is almost equal to one line arduino code. Hope that you would be able to run examples. I have give them logical names, so if you would try to use wifi demo where is server node and client node, there would be one example named like 'base station' and another 'client ...'

Hope that this help you with your applications, if there would be something not running please write it here :)

Note:

  Maybe there would see some subpalletes marked as 'Advanced Tests' or 'Examples', this is equal, they are full running demos for deploy to boards, virtual folders marked as 'tests' are only tests to see if terminal are assign in correct order during compiling, they are not needed anymore, but I left them in library (I don't use to discard old code, rather version it or comment it or hide it somewhere 😀 )

Amazing!!!

thank you very much, this is very helpfull!!!

is possible to write a formula to arduino as in "formula" function in normal labview?

 

thanks again

June 9, 2016
9:08 pm
Avatar
tronron
Member
Forum Posts: 16
Member Since:
August 5, 2015
sp_UserOfflineSmall Offline

tronron said
Amazing work Lubomir! Thank you for sharing!

Is it possible to add a function to report the RSSI of the connected network in your ESP8266 library?

June 21, 2016
6:01 am
Avatar
senthilkumaranms
Member
Forum Posts: 9
Member Since:
June 21, 2016
sp_UserOfflineSmall Offline

Which TFT devices it supports? attached image is the one of the TFT device available in market which uses IL9327 driver. 

12.JPGImage Enlarger

Attachments
June 21, 2016
10:38 am
Avatar
LubomirJagos
Member
Forum Posts: 21
Member Since:
August 4, 2015
sp_UserOfflineSmall Offline

Hi senthilkumaranms,

I was using this TFT display: https://www.google.sk/search?q=1.8+tft+lcd&client=firefox-b-ab&source=lnms&tbm=isch&sa=X&ved=0ahUKEwjao6HL9bjNAhVGNhoKHQ0NB-kQ_AUICCgB&biw=1165&bih=705#imgrc=WxJkxPWyH6TUwM%3A

My library is just wrapping basic arduino library TFT.h in my case display is connected to arduino through SPI. So basically every display which works with this adafruit library: https://github.com/adafruit/Adafruit-GFX-Library is able to work with my library.

Your display seems to be programmed with this library https://github.com/adafruit/TFTLCD-Library so in this case no.

June 23, 2016
2:46 pm
Avatar
scottj
Member
Forum Posts: 28
Member Since:
April 17, 2016
sp_UserOfflineSmall Offline

Thank you for your excellent work!

August 1, 2016
6:40 pm
Avatar
waveman_62
New Member
Forum Posts: 1
Member Since:
July 31, 2016
sp_UserOfflineSmall Offline

Hello everybody!

First I have to say Lubomir did a great job. Thank you. But I got a problem using the LCD-VIs of this great package. It is a 16x2 Display with 4-Pin Interface. I tested some other functions in different test-VIs, they seem ok, but when using a function of the LiquidCrystalWrapper I get this error while creating downloadable code. It does not even start to compile or download. What can it be? Can anybody help me? I also attached the VI which created the error. Just clearing the display as an early test.

LCD-Error.jpgImage Enlarger

LCD-VI.JPGImage Enlarger

Thank you.

Attachments
August 4, 2016
8:46 am
Avatar
LubomirJagos
Member
Forum Posts: 21
Member Since:
August 4, 2015
sp_UserOfflineSmall Offline

Hi waveman_62,

I'll take look for it, I presented this libraries in our local competition at university and I think, that I had same problem, it's my mistake during putting this library together.

September 8, 2016
10:56 pm
Avatar
merin
Member
Forum Posts: 5
Member Since:
October 14, 2015
sp_UserOfflineSmall Offline

Hi LubomirJagos,

 

Thank you so much for sharing. Can you also please share the password for the vi's so as to access the front panel.

 

Thanks a lot

Merin

April 11, 2017
11:03 pm
Avatar
LubomirJagos
Member
Forum Posts: 21
Member Since:
August 4, 2015
sp_UserOfflineSmall Offline

Hi all,

I was asked for password from more people, sorry for really really late answer, I abandoned my packages for while, but still I'm busy with finishing studies and signal processing and similar stuff, still thinking about LabVIEW, I also found some part time job in LabVIEW, I really want to improve and make more packages, but there's no time for it for now.

So here are passwords for all packages if you want to see how it's made:
Math = 'math'
Complex Numbers = 'complex'
TFT = 'tft'
SoftwareSerial = 'template'
Matrix Math = 'matrix'
LCD display = 'lcd'
ESP8266 = 'esp'

Sorry for not posting anything, I'm prepared to try compiler for RasPi and now I know that will be great, just because python and LabVIEW 😀 such a nice combination 😀

April 12, 2017
4:37 pm
Avatar
zerosteel
New Member
Forum Posts: 1
Member Since:
April 12, 2017
sp_UserOfflineSmall Offline

LubomirJagos said
Hi all,

I was asked for password from more people, sorry for really really late answer, I abandoned my packages for while, but still I'm busy with finishing studies and signal processing and similar stuff, still thinking about LabVIEW, I also found some part time job in LabVIEW, I really want to improve and make more packages, but there's no time for it for now.
So here are passwords for all packages if you want to see how it's made:
Math = 'math'
Complex Numbers = 'complex'
TFT = 'tft'
SoftwareSerial = 'template'
Matrix Math = 'matrix'
LCD display = 'lcd'
ESP8266 = 'esp'

Sorry for not posting anything, I'm prepared to try compiler for RasPi and now I know that will be great, just because python and LabVIEW 😀 such a nice combination 😀

When I open the block diagrams I get an unfinished VI with unwired indicators and controls, is this what I am supposed to see?

April 13, 2017
12:07 am
Avatar
LubomirJagos
Member
Forum Posts: 21
Member Since:
August 4, 2015
sp_UserOfflineSmall Offline

zerosteel: can you post image what you see? I reinstalled my computer two weeks ago and after I installed LabVIEW and my packages through VI package manager and they looks ok.
addon_block_diagram.pngImage Enlarger

Maybe project explorer is showing some dependencies errors or something, can you post printscreen? On my side they looks fine.

Attachments
November 7, 2017
8:45 pm
Avatar
vendersgade
Member
Forum Posts: 5
Member Since:
October 31, 2017
sp_UserOfflineSmall Offline

LubomirJagos

I just wanted to say thanks for this great set of VIs. I recently had to use the exp() function, however, its not part of the Arduino toolkit. Luckily you included it in your package. Thanks for sharing. Next I will test the software serial function, that looks just like what I need for a future small project.

Greetings from Copenhagen,

/søren

December 11, 2017
2:21 am
Avatar
scadao
Member
Forum Posts: 19
Member Since:
June 5, 2015
sp_UserOfflineSmall Offline

Chinese Windows 7 system, Arduino IDE 1.6.9

TFT VI compilation error?

 

1.0.0.21, Arduino/Genuino Mega or Mega 2560
正在加载配置...
正在初始化包...
正在准备开发板...
正在验证...
C:\Users\Administrator\AppData\Local\Temp\58e9973bb6e2e908c6c199f5a9d39075.tmp\temp\temp.ino:5:19: fatal error: empty.h: No such file or directory

#include "empty.h"

^

compilation terminated.

exit status 1
为开发板 Arduino/Genuino Mega or Mega 2560 编译时出错。

Forum Timezone: UTC 0

Most Users Ever Online: 33

Currently Online:
2 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

John: 18

RTSLVU: 15

Dan6077: 11

Member Stats:

Guest Posters: 0

Members: 80

Moderators: 0

Admins: 3

Forum Stats:

Groups: 1

Forums: 2

Topics: 58

Posts: 289

Newest Members: Marielop, engladcub, AbbaLearilky, LeiylaWes, pavlik76Sed

Administrators: geadmin: 5, filipealtoe: 35, Steffan: 89