LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Listening for a file transfer

A computer without LabVIEW sends a file to a MAC with LABVIEW ver 8.5.  How do I use LABVIEW to know that the file is being sent or has arrived?

Thanks.
0 Kudos
Message 1 of 15
(4,156 Views)
Do you know where the file is located? Is the file created on the Mac or transfered from elsewhere? Do you know the filename?

In Advanced File Functions look for Check if File or Folder Exists.vi.

With more information it will be easier to give more specific suggestion.

Lynn
0 Kudos
Message 2 of 15
(4,149 Views)
The file is being sent from another machine; I may know its name. However, I want to be told it has been sent not look to see if its there.
0 Kudos
Message 3 of 15
(4,145 Views)
In what manner is the file being sent?
Jim

LV 2020
0 Kudos
Message 4 of 15
(4,142 Views)
If you don't necessarily know the name, then use the List Folder function to get the list of files in the folder where the file gets placed, and compare the list to the last time you checked (a simple Equal for the arrays). If there's a difference you know a file has been placed there.

If you can provide more details on how the file is sent a more direct/appropriate answer can be provided.
0 Kudos
Message 5 of 15
(4,139 Views)
The file is being ftped.
0 Kudos
Message 6 of 15
(4,134 Views)
Related to this thread.
0 Kudos
Message 7 of 15
(4,119 Views)
Huh?
0 Kudos
Message 8 of 15
(4,117 Views)
Yes they are related, so what. If I can't detected a ping, can I detect something else coming into the ethernet port?
0 Kudos
Message 9 of 15
(4,114 Views)
Relax. I was providing a reference to the other thread for context since they seem to be the same discussion, and it wastes time for people to be answering questions to two different threads on the (more or less) same subject without knowing the whole story.

Trying to detect "something" coming into the ethernet port is too vague of a question. Any computer connected to a network will always have something coming into the ethernet port. I doubt very much whether you want to be analyzing every single packet that comes in to determine that you've had a file uploaded. Unless the other computer can send you a message I would suggest simply monitoring the directory to look for changes in the list of files like I suggested. In Windows there's an API function that you can hook into that will provide notification of a file system change. There may be something like that for a Mac, but I ain't got a Mac so I can't say what that is.
Message 10 of 15
(4,105 Views)