LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Sending data from Linux to Windows

I've written a script in shell language. The script takes a collection of data and saves it to a file - it works. I would like to take that saved file and send it to the Windows box through a wireless connection. I was wondering how I can approach this. I've been told to use socket programming. I've looked it up and believe there is an easier way through LabView to get this done.

Also, has anyone written a program in Windows and have executed it in LabView without using a third party program?
0 Kudos
Message 1 of 4
(2,860 Views)
hi

i have several suggestions:

- set up a ftp-server on your linux-system and get the file from windows with ftp.
ftp can be done with the datasocket read/write functions in labview. this solution
would be quite easy to do, cuz there's no direct io or handshaking needed in your script.

- send the data via a (local) tcp or udp connection. also a possible solution, but
needs more programming and some handshacking between your script and labview.

- transfer the file via common disc space. the easiest way if there is such disc space

best regards
chris
Best regards
chris

CL(A)Dly bending G-Force with LabVIEW

famous last words: "oh my god, it is full of stars!"
0 Kudos
Message 2 of 4
(2,853 Views)
My question about the FTP deal is:

Once the client has connected to the server, the server will collect the signal strength and put it in a file > "rssi+$address.dat"

The server will close the connection as soon as the information is saved.

The client will then go to the internet to pick up the dat file from a pre-assigned slot.

Hmmm...that sounds like it will work.
Anything wrong with this idea before I implement it?

Message Edited by michanga on 03-18-2005 03:26 PM

0 Kudos
Message 3 of 4
(2,846 Views)
hi

well, i think you can't do "low level" ftp-ing with the datasocket functions, you just can put or get some files. how about collecting the data in a tmp-file and renaming that after the data has been collected? the lv app polls for that file by ftp. your lv app could send a report about the successfull get and processing of the data in a status file by ftp to the server. if all went fine, the server deletes the data file and status file and begins a new data file.

ok, sounds bad, but it should work.

best regards and let us know
chris
Best regards
chris

CL(A)Dly bending G-Force with LabVIEW

famous last words: "oh my god, it is full of stars!"
0 Kudos
Message 4 of 4
(2,827 Views)