NI Home
Cart Cart | Help
Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Currently Being Moderated

Update Twitter status from LabVIEW

VERSION 5

Created on: Jan 30, 2009 1:29 PM by ChristianL - Last Modified:  Dec 7, 2009 1:52 PM by Deirdre

The attached example VI allows you to update your status on Twitter from within a LabVIEW VI or application.

 

Twitter provides a public API which is based on HTTP requests (both GET and POST). The attached VI builds the appropriate HTTP request and sends it to the Twitter server using the TCP functions available in LabVIEW.

 

Updated API and Examples

Twitter.zip: I updated the API VIs and added some examples including an example of controlling a LabVIEW Real-Time application running on CompactRIO using Twitter Direct Messages. The same VI will work on any LabVIEW platform supporting the basic TCP functions.

 

Controlling the LabVIEW application works by polling, which means the application has to periodically check the Twitter server to see if any new Direct Messages are available, which are then processed in the application. Twitter limits each account to 100 requests per hour, so you can only feasibly check for new Direct Messages once a minute. So control of an application means Delayed Control.

 

Additional Resources

To find out more about Twitter, click here.

 

To find LabVIEW community members on Twitter, click here.

 

twitter.PNG

 

Downloads:
Average User Rating
(5 ratings)




Deirdre Deirdre  says:

Christian - This is my FAV VI EVER!  Way to feed the addiction.

Emilie Kopp Emilie Kopp  says:

Awesome idea

Ton Plomp Ton Plomp  says:

I added a Friends timeline download on LAVA.

 

Ton

Deirdre Deirdre  says:

LabVIEW Twitter Crew - make sure to add your Twitter handle/alias to the Twitter Pack

Emilie Kopp Emilie Kopp  says:

Awesome update, Christian. For anyone looking to control an LabVIEW Real-Time system from their iPhone (who doesn't want to run up SMS charges), this is a great alternative.

yokohamaturkey yokohamaturkey  says:

Cool!

But Japanese messages garbled characters !

Like "‚â‚ꂽ` ".

This problrem can be solved by using "Use Text to UTF-8.VI" in "HTTP Request (POST).VI".

Thank you for your vi.

More Like This

  • Retrieving data ...

Incoming Links

More by ChristianL