LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I access data using URL ?

I am trying to access an XML file store on a network. Does CVI have any libraries that support URL functions ?
0 Kudos
Message 1 of 2
(3,021 Views)

Which type of access are you referring to? CVI provides several ways to access data on networks and on Internet.

Normal file functions can work on network drives, for example:

 char file[MAX_PATHNAME_LEN];
 FILE *fh = NULL;

 sprintf (file, "\134\134%s\134%s\134myFile.txt", myServer, myPath);
 // results in "\\myServer\myPath\myFile.txt"
 fh = fopen (file, "rb+");

and so on...

But you can use other technologies to access those data: DataSocket for example permits you to download and upload files from servers, next there is a whole Internet lbrary for accessing remote data and finally CVI supports windows API functions for managing files stored on ftp or http servers.

So, you have several ways for accessing your data... I hope these hints can help you a little, if not please give us some detail more on your problem so that someone can help you in a more specific way.

Roberto



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
Message 2 of 2
(3,004 Views)