07-20-2011 12:52 PM
Hello,
Anyone have any luck saving and reading configuration files for a Tektronix DPO scope? I've used the following vi in the past, and it has worked on. For this scope, I am getting an error on the read from file portion, and was told it may be due to a buffer overflow issue. The size of the configuration file is much larger than what I've seen before. I tried to alter the buffer size using the visa functions but so far no luck.
To creat the configuration file, I am writing *LRN command. This is working fine and the program is able to save the entirety of the configuration file (at least it appars so).
When reading the configuration file to the scope, the byte return count is the same as the file size, but the scope returns an error. Hoping someone out there has experienced this issue before.
Thanks.
07-21-2011 08:06 PM
Hi newbie217x,
What error codes are you getting? Could you give us a screen shot? I don't see a buffer size function in your code. Have you tried to use the VISA Set I/O buffer size function? I've listed a link below for your reference.
http://digital.ni.com/public.nsf/allkb/7416B8A1418E77B5862564E4000FD44B?OpenDocument
Regards,
Josh L.
07-25-2011 04:04 PM
Found the reason for error. There is a tektrnoix command called verbose that needs to be set to FALSE before the file read can take place.
I haven't seen this before on DPO 4000 scopes, but had to put in this fix for a DPO 5034.
Hope this code helps anyone else who has had problems loading a configuration file.