Page 1 of 1
how can I log data as an xml file?
Posted: Sat Sep 27, 2014 10:59 pm
by Subquantum
Is there a way to log data as an xml file like in labview or matlab?
This would be a great function that is commonly used in science and engineering because with excel you can quickly make charts and histograms to publish acquired data.
Re: how can I log data as an xml file?
Posted: Mon Sep 29, 2014 10:56 pm
by Exo
This would be handy yes. But there is no built in way to write xml files.
Of course it could be done but would have to be written from scratch and for speed would probably be best to write a dll for that.
If I had the time I would have a go because I need reading and writing xml files for a future project but I am very thinly spread at the moment so really haven't the time.
Re: how can I log data as an xml file?
Posted: Thu Oct 02, 2014 10:55 pm
by tulamide
Exo wrote:Of course it could be done but would have to be written from scratch and for speed would probably be best to write a dll for that.
There is a ruby solution already written from scratch. I didn't have the time to test it, but it seems to be usable with Flowstone's Ruby. Might give a bit of work to correctly place the files and folders (since gem install is not directly supported by FS). Give it a try:
Basic description including a short sample codeTutorialsGitHub downloadEDIT: Here's a simpler download via RubyGems:
https://rubygems.org/gems/nokogiri
Re: how can I log data as an xml file?
Posted: Sun Oct 05, 2014 7:13 am
by Subquantum
Exo and tulamide,
Thank you both for your replies. I will take a close look at Nokogirgi. Hopefully it works for my needs.