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 3 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
Members
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
Members
Forum Posts: 21
Member Since:
August 5, 2015
sp_UserOfflineSmall Offline

Amazing work Lubomir! Thank you for sharing!

June 7, 2016
10:07 pm
Avatar
miche91
Member
Members
Forum Posts: 35
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
Members
Forum Posts: 21
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
Members
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

sp_PlupAttachments Attachments
June 21, 2016
10:38 am
Avatar
LubomirJagos
Member
Members
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.....yH6TUwM%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/Ad.....FX-Library is able to work with my library.

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

June 23, 2016
2:46 pm
Avatar
scottj
Member
Members
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
Members
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.

sp_PlupAttachments Attachments
August 4, 2016
8:46 am
Avatar
LubomirJagos
Member
Members
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
Members
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
Members
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
Members
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
Members
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.

sp_PlupAttachments Attachments
November 7, 2017
8:45 pm
Avatar
vendersgade
Member
Members
Forum Posts: 7
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
Members
Forum Posts: 24
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 编译时出错。

December 26, 2019
3:17 pm
Avatar
Alan Kitching
Member
Members
Forum Posts: 9
Member Since:
August 16, 2019
sp_UserOfflineSmall Offline

Hi Lubomir.

Many thanks for all the effort!

Alan K.

August 4, 2022
3:32 am
Avatar
aliang
Member
Members
Forum Posts: 10
Member Since:
February 2, 2022
sp_UserOfflineSmall Offline

Thank you Lubomir, your really made my day:)

May 11, 2024
2:45 am
Avatar
cesmarvas
Member
Members
Forum Posts: 7
Member Since:
December 4, 2018
sp_UserOfflineSmall Offline

Hello Lubomir

You can make a library for MQTT Communication.

thank you so much

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