{"action":"created","issue":{"url":"https://api.github.com/repos/hgrecco/pyvisa/issues/216","repository_url":"https://api.github.com/repos/hgrecco/pyvisa","labels_url":"https://api.github.com/repos/hgrecco/pyvisa/issues/216/labels{/name}","comments_url":"https://api.github.com/repos/hgrecco/pyvisa/issues/216/comments","events_url":"https://api.github.com/repos/hgrecco/pyvisa/issues/216/events","html_url":"https://github.com/hgrecco/pyvisa/issues/216","id":159926277,"number":216,"title":"write function not taking variables","user":{"login":"rakansha","id":12885341,"avatar_url":"https://avatars.githubusercontent.com/u/12885341?v=3","gravatar_id":"","url":"https://api.github.com/users/rakansha","html_url":"https://github.com/rakansha","followers_url":"https://api.github.com/users/rakansha/followers","following_url":"https://api.github.com/users/rakansha/following{/other_user}","gists_url":"https://api.github.com/users/rakansha/gists{/gist_id}","starred_url":"https://api.github.com/users/rakansha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rakansha/subscriptions","organizations_url":"https://api.github.com/users/rakansha/orgs","repos_url":"https://api.github.com/users/rakansha/repos","events_url":"https://api.github.com/users/rakansha/events{/privacy}","received_events_url":"https://api.github.com/users/rakansha/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-06-13T11:12:58Z","updated_at":"2016-06-13T13:29:51Z","closed_at":null,"body":"I am using py visa to control wavestation 2052 from my Ubuntu 16.04\r\nmy code is:\r\n\r\n**import visa\r\nimport time\r\nrm=visa.ResourceManager('@py')\r\nlecroy=rm.open_resource('USB0::1535::2593::LCRY2362C02004::0::INSTR')\r\nlecroy.write('C2:OUTP ON')\r\nlecroy.write('C2:OUTP ON,LOAD,HZ')\r\nmyfreq=[50,60,70,80,90,100,120,130,140,150]\r\nfor number in myfreq:\r\n                     lecroy.write('C2:BSWV TYPE,SINE,FRQ,number,AMP,0.2')\r\n                     time.sleep(20) **\r\n\r\n\r\nNow it would just change the frequency of channel 2 to 1uHz.\r\nAnd this happens everytime I send a variable. Say I assigned i=89, and sent i as an argument to lecroy.write('C2:BSWV TYPE,SINE,FRQ,i,AMP,0.2'), the same thing happens\r\nif I send 89 directly or any number directly, it gets reflected and thats not a problem but sending variable is always setting the frequency to 1u and nothing happens after that.\r\nCan anyone help? I need to automate this process of changing frequency to test my amplifiers"},"comment":{"url":"https://api.github.com/repos/hgrecco/pyvisa/issues/comments/225580799","html_url":"https://github.com/hgrecco/pyvisa/issues/216#issuecomment-225580799","issue_url":"https://api.github.com/repos/hgrecco/pyvisa/issues/216","id":225580799,"user":{"login":"rakansha","id":12885341,"avatar_url":"https://avatars.githubusercontent.com/u/12885341?v=3","gravatar_id":"","url":"https://api.github.com/users/rakansha","html_url":"https://github.com/rakansha","followers_url":"https://api.github.com/users/rakansha/followers","following_url":"https://api.github.com/users/rakansha/following{/other_user}","gists_url":"https://api.github.com/users/rakansha/gists{/gist_id}","starred_url":"https://api.github.com/users/rakansha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rakansha/subscriptions","organizations_url":"https://api.github.com/users/rakansha/orgs","repos_url":"https://api.github.com/users/rakansha/repos","events_url":"https://api.github.com/users/rakansha/events{/privacy}","received_events_url":"https://api.github.com/users/rakansha/received_events","type":"User","site_admin":false},"created_at":"2016-06-13T13:29:51Z","updated_at":"2016-06-13T13:29:51Z","body":"Thanks!!!! It worked"}}
{"actor":{"display_login":"rakansha"}}