08-02-2012 03:51 AM
I would like to control Tektronix TDS3014B through GPIB-ENET/100 by using my PC. The connection between
TDS3014B and PC went well and I installed the driver of TDS3000. However, the error occurs in Error Query VI
in using a sample VI. The error occurs when the command ‘EVMSG?’ is written by VISA write VI in Error Query VI.
Curiously, the error doesn’t occur in writing ‘EVMSG?’ on MAX. Can anyone prease tell me how to solve this problem?
I would be grateful for your support.
vanila
08-02-2012 04:59 AM
More details might help us answer your question.
Which error do you encounter?
Since you already figured out that writing the command outside your code works fine the problem is most likely within your code.
Please post your vi so we have a chance to see what's the matter.
Regards Florian
08-02-2012 10:57 PM
Dear Florian
Thank you very much for your response.
The sample VI was downloaded along with the driver and I didn’t diddle it.
(http://sine.ni.com/apps/utf8/niid_web_display.model_page?p_model_id=164)
The Error Query VI where the error occured is shown in the attached file ‘error_q’.
The error cord is 1073807302 and it means ‘Unable to start operation because setup
is invalid(due to attributes being set to an inconsistent state).’ The error occurs at VISA
write VI as shown in attached file.
It would be nice if you could give me advice.
Regards,
vanila
08-02-2012 11:13 PM
08-03-2012 01:56 AM
In the screenshot it looks to me as if the error does occur in tktds3k Error Query VI.
If it only reported an error that had already been detected it would not throw an error into the error wire at visa write.
If the error message says the visa setup is incorrect it might be just that. The Error Query VI if run alone doesn't setup the properties of the visa connection at all.
If you want to use it like that you may have to setup baud rate, parity, etc.
Regards Florian
08-03-2012 03:12 AM
Dear Dennis and Florian
Thank you very much for your comments.
I am using the driver ‘Plug and Play (project-style)’ and ‘Auto setup waveform acquire.VI as a sample VI.
To tell the truth, the error was resolved by changing I/O operation of VISA write and read VIs from asynchronous
to synchronous I/O. However, I can’t understand why the error occurs in the case of asynchronous I/O.
Regards
vanila