Check out our Database and File IO Code Repository Files or visit the LabVIEW Wiki Database and File IO articles.
Tags |
(This content has not been tagged yet)
|
![]() |
Aug 25 2008, 12:57 PM
Post
#1
|
|||
|
Active Member Posts: 19 Joined: 8-March 06 From: INDIA Member No.: 4372 Using LabVIEW Since:2003 LV:8.5.1 ,8.2.1 ,7.1.1
|
My application is a remote cRIO based data logger. I use the 9014 controller with 2GB memory. My total sampling rate is around 3MBps. I use a WLAN module to communicate between the cRIO and my PC. I have tried sending the data over TCP/IP during acquisition but I am not able to support the 3 MBps data rate between RT and Windows. So I have decided to go with local logging on the RT. As my test duration is small in the order of 20 to 25 minutes the memory on the controller is sufficient. I get file sizes of around 1.5 GB after each test. I then transfer the files using FTP to my Windows PC. This process is painfully slow. It requires more than 45 min for me to copy the files from RT to Windows using the Windows File Explorer. Using the internet toolkit FTP vis have not helped much. The time taken to tranfer the files in this case is also around 45 min.
The problem is for a 20 min test I need to wait for double to time after the test to analyse my results. I was looking for a more efficient way to perform this operation. My thinking right now is to implement a TCP/IP based file copy module which would compress file sections on the RT before transmitting and decompress on the Windows PC. I was wondering if members can point me to some useful information on this method. Also any other suggestions regarding the implementation are most welcome Regards, Justin Thomas
|
||
|
|
|||
| Ad |
Aug 25 2008, 12:57 PM
Post
#
|
||
|
|
|
||
|
|
|||
Aug 25 2008, 02:05 PM
Post
#2
|
|||
|
Extremely Active Premium Member ![]() Posts: 412 Joined: 8-July 05 From: Tullahoma, Tennessee, USA Member No.: 2547 Using LabVIEW Since:2000 LV:8.20 ,7.0 ,8.0.1
|
You don't specify which WLAN module you are using, so maybe it has the bottleneck. Have you tested the throughput at the location in question via another method? Have you tried a different FTP client (i.e. Filezilla )
|
||
|
|
|||
Aug 25 2008, 02:37 PM
Post
#3
|
|||
![]() CCT It Premium Member ![]() Posts: 1393 Joined: 13-June 05 From: Woerden, Netherlands Member No.: 2399 Using LabVIEW Since:2001 LV:8.5.1 ,6.1 ,8.2.1
My Blog
My Gallery
|
I have also seen that the RT-FTP engine can be slow (even on PXI based, ethernet connections).
So setting up your own data-service might be the best idea. Ton --------------------
|
||
|
|
|||
Aug 25 2008, 05:21 PM
Post
#4
|
|||
![]() Very Active Member Posts: 76 Joined: 23-March 04 From: Wallingford, CT USA Member No.: 319 Using LabVIEW Since:2001 LV:8.5.1 ,8.2.1 ,7.0
|
1.5 GB / 45 min = 0.0333 GB/min or 555 KB/sec. I have never seen a file transfer with RT FTP of 555 KB/sec wired or wireless with my cRIO. I only get 450 KB/sec over a wired network.
This post has been edited by David Wisti: Aug 25 2008, 05:22 PM
|
||
|
|
|||
Aug 25 2008, 07:48 PM
Post
#5
|
|||
![]() Extremely Active Member Posts: 529 Joined: 2-August 05 Member No.: 2680 Using LabVIEW Since:1996 LV:8.5.1 ,8.6 ,.
|
I get file sizes of around 1.5 GB after each test. I then transfer the files using FTP to my Windows PC. This process is painfully slow. It requires more than 45 min for me to copy the files from RT to Windows using the Windows File Explorer. Using the internet toolkit FTP vis have not helped much. The time taken to tranfer the files in this case is also around 45 min. The problem is for a 20 min test I need to wait for double to time after the test to analyse my results. I was looking for a more efficient way to perform this operation. If it takes 45 min with Windows ftp, it will probably take that long using any other method. Can you use Gig-E with your controller? Have you tried chunking the files into smaller sizes? I'm not sure if this will make a difference, but worth a shot. Just copy over a few large files and see if that changes things. Are you using binary files? (They might be smaller in size). N.
|
||
|
|
|||
Aug 25 2008, 08:35 PM
Post
#6
|
|||
![]() I'm a LAVA, not a fighter. V I Engineering, Inc. ![]() Posts: 3853 Joined: 13-October 03 From: Michigan, USA Member No.: 181 Using LabVIEW Since:1993 LV:8.5 ,. ,.
My Blog
|
Have you tried chunking the files into smaller sizes? I'm not sure if this will make a difference, but worth a shot. Just copy over a few large files and see if that changes things. Good point - and it can work in the converse too - lots and lots of little files may take longer than one big file... -------------------- ![]()
|
||
|
|
|||
Aug 26 2008, 05:04 AM
Post
#7
|
|||
|
Active Member Posts: 19 Joined: 8-March 06 From: INDIA Member No.: 4372 Using LabVIEW Since:2003 LV:8.5.1 ,8.2.1 ,7.1.1
|
Have you tried chunking the files into smaller sizes? I'm not sure if this will make a difference, but worth a shot. Just copy over a few large files and see if that changes things. N. My file sizes are around 50 MB. Earlier I tried with a single file but the transfer was not possible always. I get a timeout error on the Windows Explorer. I have not tried the same with LabVIEW. I tried chunking the files into smaller sizes around 5 MB each but did not get any significant improvement. Are you using binary files? (They might be smaller in size). N. Yes I am using Binary files, basically logging raw data acquired from the cRIO modules Can you use Gig-E with your controller? N. I don't think the cRIO controller has a GigE port its a 10/100 port. Anyways I need to use wireless so cannot think of GigE as an option
|
||
|
|
|||
Aug 26 2008, 12:02 PM
Post
#8
|
|||
![]() Active Member Posts: 23 Joined: 28-July 08 From: CT Member No.: 12118 Using LabVIEW Since:2005 LV:8.5.1 ,. ,.
|
My application is a remote cRIO based data logger. I use the 9014 controller with 2GB memory. My total sampling rate is around 3MBps. I use a WLAN module to communicate between the cRIO and my PC. I have tried sending the data over TCP/IP during acquisition but I am not able to support the 3 MBps data rate between RT and Windows. So I have decided to go with local logging on the RT. As my test duration is small in the order of 20 to 25 minutes the memory on the controller is sufficient. I get file sizes of around 1.5 GB after each test. I then transfer the files using FTP to my Windows PC. This process is painfully slow. It requires more than 45 min for me to copy the files from RT to Windows using the Windows File Explorer. Using the internet toolkit FTP vis have not helped much. The time taken to tranfer the files in this case is also around 45 min. The problem is for a 20 min test I need to wait for double to time after the test to analyse my results. I was looking for a more efficient way to perform this operation. My thinking right now is to implement a TCP/IP based file copy module which would compress file sections on the RT before transmitting and decompress on the Windows PC. I was wondering if members can point me to some useful information on this method. Also any other suggestions regarding the implementation are most welcome Regards, Justin Thomas Hey Justin -- Create small files.. Transfer the finished ones while you are measuring, that way, at the end of your 20-25 minute test, you have your data as well. -Scott
|
||
|
|
|||
Aug 26 2008, 12:50 PM
Post
#9
|
|||
|
Certified Kool-Aid Kid Premium Member ![]() Posts: 1189 Joined: 6-December 02 From: Pittsburgh PA USA Member No.: 29 Using LabVIEW Since:1998 LV:7.1 ,. ,.
|
Given that your hardware path is fixed, the best advice I can offer is to experiment with TCP/IP transfers and try different sized packets.
Using PC's and old 100 Mb ethernet I have read that people have attained 5Mb/second transfer rates when they found the right size packet (try 65,000 to start). Ben
|
||
|
|
|||
![]() ![]() |
| Time is now: 9th January 2009 - 03:40 AM |