![]() |
|
|
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.
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.
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.
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. ![]()
Christian - This is my FAV VI EVER! Way to feed the addiction.