xml

XML and streaming data display

ginsu777's picture

so i have been working on/off on this project whenever i want to add a feature or use a new video -- it works good. however, i ran into an issue.

I send a command to the terminal via TCP socket client to run a little program that interfaces with the usb stick receiver. It listens for the data on port 8168, and when its just the HR, it is all fine. however, i use another program to see the data in realtime and it also is getting the cadence and speed data in XML over the same port. my string truncate is seeing different data, and the output is not right.

now, I would like to use that data, but I am unsure as to how to get it, since it all comes over the same port, and my work is all in strings to truncate, etc to then display it. so i am not parsing the XML, and the extra data is now messing up my HR display. I'd like to use that data somehow.

This is complicated by the fact that both Cadence and Speed values I am interested in are reported as "RPM" so using a string components tool is getting complicated.

any ideas?

QC & SOAP

mattgolsen's picture

I was wondering if anyone has any experience with using the MiniSOAP QC plugin when developing compositions, and if they can offer any caveats, example compositions or advice for it?

Card Trick.

dust's picture

here is a sneak peak at a developing composition.

so this is an example of interfacing quartz composer with the iphone via udp tcp socket xml strings. so this a screen shot locally but this works remote although its bet to play with a multi-touch table and iphone ipad. right now its just a standard card deck with no rules but there is both flash quartz composer, iphone, and ipad implementations so it is inherently multi-touch, & multi-player with various devices. right here i'm playing by myself.

this is in 3d but its only a top view as its intended for there to be a group multi-touch table and private mobile viewing for face down cards.

any idea on how to do a good shuffle in qc, random ? not random ?

i got some cool fan gestures that will eventually get into the working model.

Nested Structures with XML Downloader

mattgolsen's picture

I'm having some trouble with a fairly large composition that I've developed originally on Leopard. Part of the composition has a patch that downloads an XML feed from a site, and uses the first portion of the feed which has nested substructures to create labels for data, and the second half of the feed has the actual data. On Leopard it pulls and displays the whole feed with no trouble, but on SL it appears to partially truncate these nested substructures from the feed. See attached files for examples.

Has anyone experienced this or any related weirdness?

XML record limit?

mlanghorst's picture

Hi,

I have made a composition that loads a QT movie, reads an XML with telemetry data and then the telemetry data is synced to the QT movie (based on timecode) and displayed over the video. The purpose is to overlay telemetry data over a camera mounted in a race car.

The telemetry data comes in every 1/100th of a second so over time the xml tends to get large (>500MB). I seem to run into a limit of around 10.000 records (with 9 data points each). If I go over 10.000 the data won't display and just below 10.000 it takes around 30 seconds to load. The data catches up nicely due to the link with the QT timecode but still.. It's bad.

Smaller files with around 5000 records work flawlessly and it will display the 1/100th data without a glitch.

So my next idea was to 'stream' the xml into QC but I gave up on that. Seems that QC can only read the file in it's entirety. Then I thought about using midi or osc but I am wondering if anyone knows how to make a XML file (with around 1 million records) into a midi/osc stream?

Solutions to overcome the QT XML record limit are welcome too of course.

Any help is appreciated.

Marco