LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Doing the same task for different data.. Do I need Queues? How to use them if yes?

Hello all,

 

I have created a VI which is getting data from some FTP server and then after comparing with the HDD specified folder copy the missing data from the FTP ... Description is also in the VI. There are few things I need to ask.

 

1) The email sending VI gives error 1172..What could be the reason .. is it firewall.. or is there any mistake in the code?

2) As you people are experts so I really like any suggestion to improve the VI..

3) The most important .. Currently this VI can only perform the whole task for one FTP folder. Actually my task is I need to check for 4 different FTP folder on different servers..its not 4 different folder in one FTP .. its 4 different FTP.Now my question is how I can do this: First it compare and copy from FTP1.Then FTP2... and so on.. How can I change the data for the cluster for different FTPs? Do I need to use queues? If yes how because I don't have any experience with queues.

I will really appreciate is someone can either provide me the relevant example or can give me some idea.

 

The main VI is the 'TASK START'.VI please find the attached files.

 

Thanks

Regards,

Naqqash

Naqqash
0 Kudos
Message 1 of 4
(2,572 Views)

Hi Naqqash,

 

I looked up the error 1172 and it seems to be a problem with using proxies which could be occurring in the internet connection or could be a problem with setting up the send from email account. The only way this would be related to the code would be if you had the wrong port number programmed in or something to that effect, the LabVIEW sequencing won't cause that error by itself.

 

As for checking the different FTP servers, the way that you have it set up I believe would cause problems with trying to contact different servers since it seems you have to type in the names, logins, and passwords each time. I built an example that uses enums and constants to perform the basic task of calling 4 different FTPs in a row, which you could integrate into your program. If you didn't want to store that information as constants and instead wanted a popup dialog for each FTP login you could use the Prompt User For Input.vi express vi and program in 3 text boxes for the required information.

 

Hope that helps!

Peter W.

Message 2 of 4
(2,554 Views)

Hi Peter,

 

Thank you very much for your reply. I have understood your idea but there are few problems.

 

Please see the attached "Final test.vi".. actually my top level vi should be like this.. due to this reason I need to develop the cluster like one with name "Settings" as shown in Enum FTP events.vi.. In this cluster all the data types are not constants (but can be set as constants)  and further all of them are not of same type so whenever I try to create as you created I have got error, wire broken..so what do you think i should do.. In this cluster there are different types of data .. string, path, numeric, array and a cluster with name file properties also... can't figure out what to do..I know things are little scattered and wiered but due to lack of experience, I guess, I am now a little bit confused for this matter. I

hope guys here in the forum will help me as you guys always did.

Naqqash
Download All
0 Kudos
Message 3 of 4
(2,529 Views)

I was using "bundle by name" which was a mistake ( which I don't know why in my case) but when I used simple bundle it ok now..

Naqqash
0 Kudos
Message 4 of 4
(2,524 Views)