12-10-2018 09:11 AM
Hello Everyone,
I am working on Scope, Waveform Generator, and Amplifier. I am using DLL which is provided by Manufacturer.
My problem is in Self Test and All of my devices have the same problem. While self-test working, the device returns false request but ı see on the screen the self-test continue and it pass after 5-10 second.
How can ı do solve my problem? It looks like a timeout problem I think. I know VI_ATTR_TMO_VALUE attribute is about timeout attribute. But ı couldn't find Attribute ID.
Solved! Go to Solution.
12-10-2018 02:35 PM
Seeing how this instrument does accept SCPI commands, try to send the following:
*OPC?\n
To verify that the system is not currently waiting on any other commands. It should respond with a "1" then send the
*TST?\n
12-11-2018 12:17 AM
@Minions wrote:
Seeing how this instrument does accept SCPI commands, try to send the following:
*OPC?\nTo verify that the system is not currently waiting on any other commands. It should respond with a "1" then send the
*TST?\n
When .ı send command on NI MAX, *OPC?\n returns 1, and *TST?\n returns 0. Everthing is normal. I am working on TestStand. Self Test function returns respond before the finish self test function.
12-11-2018 01:39 AM
I saw a note in code. That is "* Please set VI_ATTR_TMO_VALUE to 30000 ms or greater." How can ı change VI_ATTR_TMO_VALUE attribute.
12-11-2018 02:10 AM
I solved this problem.
viSetAttribute (io, VI_ATTR_TMO_VALUE, 30000);
I added this code to my device source code.