Terrabits / rohdeschwarz

Rohde & Schwarz python instrument control toolbox
https://vna.rs-us.net/python/
Other
37 stars 18 forks source link

vna.file.download_file() Doesn't seem to work #9

Open Ams0x57 opened 5 years ago

Ams0x57 commented 5 years ago

Forgive me if I am making an obvious mistake here but has anyone confirmed if this function works? I am simply trying to download a csv file from vna into my pc. vna infio: Rohde&Schwarz,ZNLE6-2Port connection type: cross coupled network cable vna.open_tcp('169.254.199.84',5025)

this is my download attempt: vna.file.download_file("C:\\Users\\Instrument\\Desktop\\mt_folder\\my_folder2\\10.csv", "C:\\Users\\me\\Desktop\\some_folder\\VNA_Python_Test\\test_download\\10.csv") Following error is produced: total_file_size = int(results.pop(0).strip()) ValueError: invalid literal for int() with base 10: "'10.csv'"