06-08-2012 03:52 PM
Hello,
I am using LabVIEW 2011.
I am trying to move a very large file [309MB and larger] from a TEK DSA72004 oscilloscope to a PC using the VISA READ command across GPIB. I am using the TEK command
“FILESystem: PRInt "C:\temp\Trace20120608151917CH1.dat", GPIb”. This command works with a smaller file size.
I have tried setting the “Timeout” property node to varies timeouts even up to 20 minutes and I still get a “-1073807339 Timeout expired before operation completed”.
Does anybody have any suggestions for reading a very large file?
Thank you
06-11-2012 12:53 PM
Hi Mark,
The maximum value of the timeout is 4294967295 milliseconds, which is roughly 50 days. You can try increasing the timeout further to see if a longer time will allow you to successfully read the entire file. Be aware that reading this way will store the entirety of the data into the single string variable which may cause issues. Are there any options on the device for sending the data in multiple chunks rather than all at once?
06-11-2012 01:21 PM
Hello Justin
I did not see a any method to parse the file in the “MSO/DPO5000, DPO7000/C, DPO70000/B/C/D, DSA70000/B/C/D, and SO70000/C Series Digital Oscilloscopes Programmer Manual”. I did send TEK an inquiry but I have not heard back from them yet.
Does LabVIEW have any size limits on the reads? With 50 days I should have enough time to read any file. It just may be that GPIB is not the best way to save the data.
Thank you.
06-11-2012 02:51 PM
06-11-2012 03:04 PM
Hello
I have done what you suggest in other applications, read the data in chunks which works great. In this case, if the "Read Buffer" is set for 100 bytes the routine "times out". I may not have given my self enough time (50 days) or the buffer is not large enough but then I probably would have received some type of error. I do not know what the GPIB transfer rate is, that would tell me how long I would have wait for the data to transfer.
Thank you
06-11-2012 03:12 PM
06-11-2012 05:24 PM
Hello
You may be right. The command sequence works fine for a smaller file size.
Thank you.