how can I log data as an xml file?

For general discussion related FlowStone
Post Reply
User avatar
Subquantum
Posts: 24
Joined: Tue Mar 11, 2014 10:20 pm
Location: USA

how can I log data as an xml file?

Post 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.
Exo
Posts: 426
Joined: Wed Aug 04, 2010 8:58 pm
Location: UK
Contact:

Re: how can I log data as an xml file?

Post 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.
Flowstone Guru. Blog and download site for Flowstone.
Best VST Plugins. Initial Audio.
tulamide
Posts: 2714
Joined: Sat Jun 21, 2014 2:48 pm
Location: Germany

Re: how can I log data as an xml file?

Post 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 code
Tutorials
GitHub download

EDIT: Here's a simpler download via RubyGems: https://rubygems.org/gems/nokogiri
"There lies the dog buried" (German saying translated literally)
User avatar
Subquantum
Posts: 24
Joined: Tue Mar 11, 2014 10:20 pm
Location: USA

Re: how can I log data as an xml file?

Post 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.
Post Reply