Jump to content

rberger

Members
  • Posts

    2
  • Joined

  • Last visited

Posts posted by rberger

  1. I don't think so - like all reference-based programming, you should open and close the reference outside of the loop. That said, as the connection is completely under your control (ie: remote can close it), I'd also check the connection inside the loop if you find that you're having difficulty reading the page.

    Lets say one opens a datasocket connection before entering the while loop. The datasocket read VI has a polymorphic input as the current open connection or URL input. What if within the SAME connection I want to view different HTML page after each iteration of the while loop? You would think I could just pass a string input denoting the URL but the read VI wants a connection input with each iteration of the loop if opening a datasocket connection before entering the loop. So do I just use the read VI in the loop passing a different URL string input & assume LabVIEW is smart enough to close the connection after existing the VI so I don't get memory leak?

  2. Chris,

    This is nice. It also supports FTP URLs. However, I tried it on Linux and I get Error 1181 - "Protocol unrecognized by DataSocket" :(

    -Jim

    My app will have to read a web page & parse HTML contents continuosly. Do you folks suggest opening a datasocket session, reading the contents and explicity closing the datasocket connection with each loop iteration?

    Thanks

    Robert

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.