Example Code

#HashtagVI

Code and Documents

Attachment

DISCLAIMER: I renounce all responsibility for any headaches which may be caused by the number of hashtags in the below example. 

Have you ever seen a piece of writing and thought "that'd make an amazing hashtag?" #labview #awesome #WhyDoesItTakeSoLongToWriteHashtagsLikeThis?

Fear not, the #HashtagVI is here!

Simply copy and paste any piece of text into the string control and it will turn it into #YourOwnPersonalHashtagFormattedLikeThis

If you press the "Turn on Twitter Truncation" button, it'll even limit your hashtag to a length of 140 characters with a handy ellipse at the end for you!

You could also see this as a handy example of the interchangeability of strings and byte arrays and how to manipulate both. 

Notes: Made with LabVIEW 2013.  Made purely for entertainment, and the front panel looks like that because I like bright colours.

Chiara A
Applications Engineer with NI UK & Ireland

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Contributors