Jump to content

* * * * * 5 votes

LabVIEW, Websockets, and SVG

  • Please log in to reply
61 replies to this topic

#61 ShaunR


    LabVIEW Archetype

  • Members
  • PipPipPipPipPipPip
  • 2,604 posts
  • Version:LabVIEW 2009
  • Since:1994

Posted 07 October 2012 - 04:38 PM

Hi there!
So I tried this Websocket on a cRio.
The only thing that needs to be changed is the EOF,
I used the \r\n constant instead of CR\LF.

But theres one more problem that I am currently facing,
I cant access the svg file via web publish in the cRio. The svg file looks fine if I access to it via ftp.
But if I put it in the www folder and access via http, it comes out as text instead of graphics.
I tried a lot of method including creating a html file that calls the svg.
So far, none of them worked.

Currently using LabVIEW 2011 and Chrome ver 22.

He also has a website dedicated to this at http://blog.evexiall...=37#comment-54.
Might be worth asking the question there also.

A positive attitude may not solve all your problems, but it will annoy enough people to make it worth the effort. (Herm Albright 1876-1944).

Founder and general mischief maker on www.lvs-tools.co.uk.
SQlite aficionado and websocket zealot.
If it 'aint in LabVIEW, then you 'aint got a clue!

#62 madtofan


    I've come back for more.

  • Members
  • 2 posts
  • Version:LabVIEW 2011
  • Since:2010

Posted 08 October 2012 - 09:40 AM

my bad.
I didnt notice the mime.types part

so i went into the cRio ni-rt/system/webserver/ folder and added "image/svg+xml svg svgz" into the mime.types file.
now it pops up fine.

thanks! :D