03-16-2014 01:13 PM
I have several Type-K thermocouples reading into LabVIEW through ADAM 4018 and Digi PortServer TS 4 MEI via ethernet . I would like to start sending the data every minute to Xively.com feed. I am just now starting to build a .vi in LabVIEW 2011. Has anyone else attemped this and had success?
03-16-2014 02:38 PM - edited 03-16-2014 02:39 PM
I was able to do a successful manual put with this setup. now to break it appart and make it to where I can have varibles in the data.
03-16-2014 09:14 PM
Ok updated again. feed id, api_key, feed title, datastreams data package seperated. I belive this will become a sub.vi to the main that will structure the datastream package of data.
03-17-2014 05:24 AM
If you're using LabVIEW 2013, there is a flatten to JSON function which will accept a cluster and produce a correctly formatted JSON string for body data. Really handy for working with web services!
You might need to play around with it a bit but I think in your case, a cluster containing the following should work:
id - string
tags - array of strings?
unit - cluster of symbol (string), label (string)
current_value - numeric
03-18-2014 03:25 PM
Yes if I had LabVIEW 2013 that would be nice to use but as I stated earlier I have LabVIEW 2011 that I am using.
03-18-2014 03:29 PM
Ok so I have it putting the data from one line onto Xively no prob. going to work out how to format miltiple strings. here is what the Main VI looks like. I turned the vi from above into a subvi that is called every 30sec to PUT data on Xively.
03-20-2014 01:37 PM
03-22-2014 11:48 AM
I did start getting a fun error if the internet ichups on the server.
I would like to make something that if it errors like this it will not stop the vi and automaticly continue.
03-23-2014 06:59 PM