babu Posted September 12, 2009 Share Posted September 12, 2009 Hello,Please help me out with this issue.. i m using Autoit V_3.2.12.1 and i am trying to use "_viExecCommand()" to set a parameter in my signal generator as shown below_viExecCommand("GPIB::19::0",":FREQ 5.5 GHZ")when i execute the above autoit script, the command got executed but everytime it is throwing a error message and crashes after that step.but this doesn't happens with "*IDN?" command, so i don't know whether is there anything we need to set "Read" or "write" parameters in the syntax.i've attached a screen shot below. so kindly check someone reply me asap.. Thanks.Note: if i execute the same command ":FREQ 5.5GHZ" using Ni communicator.exe, it is working. Link to comment Share on other sites More sharing options...
PsaltyDS Posted September 13, 2009 Share Posted September 13, 2009 Hello, Please help me out with this issue.. i m using Autoit V_3.2.12.1 and i am trying to use "_viExecCommand()" to set a parameter in my signal generator as shown below _viExecCommand("GPIB::19::0",":FREQ 5.5 GHZ") when i execute the above autoit script, the command got executed but everytime it is throwing a error message and crashes after that step. but this doesn't happens with "*IDN?" command, so i don't know whether is there anything we need to set "Read" or "write" parameters in the syntax. i've attached a screen shot below. so kindly check someone reply me asap.. Thanks. Note: if i execute the same command ":FREQ 5.5GHZ" using Ni communicator.exe, it is working. You are using an out-of-date version of AutoIt. The Visa.au3 UDF hasn't changed in that time, but DllCall() has. So you should try it with the current version of AutoIt. No idea what the problem is, but here is a troubleshooting step. Add this line to the top of your script: #AutoIt3Wrapper_run_debug_mode=Y Then run it from the SciTE console to see the output. This should allow tracing the problem into which function of Visa.au3 is running when it fails. It's probably one of the visa32.dll calls within the _viPrintf() function of Visa.au3. Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law Link to comment Share on other sites More sharing options...
babu Posted September 14, 2009 Author Share Posted September 14, 2009 You are using an out-of-date version of AutoIt. The Visa.au3 UDF hasn't changed in that time, but DllCall() has. So you should try it with the current version of AutoIt. No idea what the problem is, but here is a troubleshooting step. Add this line to the top of your script: #AutoIt3Wrapper_run_debug_mode=Y Then run it from the SciTE console to see the output. This should allow tracing the problem into which function of Visa.au3 is running when it fails. It's probably one of the visa32.dll calls within the _viPrintf() function of Visa.au3. Hi, Thanks for your help, i tried with latest version of Autoit and i am not facing this issue. And sure i will also try the second idea of yours.. Thanks a lot. Babu, Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now