08-22-2012 05:42 AM
1) Does Labview have Try Catch functions, exception handling?
2) Can Labview access a file or download a file using http or https?
3) How can labview read data from an ex ternal server http or https?
This is in labview 2009 or 2011
08-22-2012 06:14 AM - edited 08-22-2012 06:18 AM
08-22-2012 06:17 AM - edited 08-22-2012 06:19 AM
Hi E,
1. you can chain together your VIs with the error wires, such that if an error occurs in one of them, none of the following VIs will execute. That's like throwing an exception - it interrupts the execution chain. You then "catch" that exception by putting an error handler wherever necessary, but not necessarily in every single VI.Hope You wouldn't put try..catch inside every single .NET function, instead you handle the exception at the level at which is most appropriate. Same thing can be done in LabVIEW.
Also see this.
2. The attached example downloads a picture with http "GET" command.
3.see this thread:
http://forums.ni.com/t5/LabVIEW/Read-a-text-file-from-Labview-web-server-http/td-p/267434
Yes!!The same thing pointed out by nijims.
08-22-2012 07:53 AM
Thank you for your reply.
08-22-2012 07:54 AM
Thank you for your reply