10-27-2008 03:44 PM
Hello,
I am currently using a Keithley 2400 both as a current source and as a measuring device. The program I am running is based on the Keithly 24xx drivers (http://sine.ni.com/apps/utf8/niid_web_display.download_page?p_id_guid=25B255F3AA83660EE0440003BA7CCD71).
The program works perfectly for about 30 seconds of data collection, then shows Error 113 Undefined Header, then begins to work again after a brief interruption. The error will then appear randomly after that. Does anyone know what is causing this error and how to stop it? My code can be found attached to the message
I ran NI SPY and the following was highlighted red: >
697. viWaitOnEvent (GPIB0::16::INSTR (0x02D08828), IO_COMPLETION, 0, 0, 0x00000000)
> Process ID: 0x00000874 Thread ID: 0x00000D10
> Start Time: 15:31:10.343 Call Duration 00:00:00.000
> Status: 0xBFFF0015 (VI_ERROR_TMO)
from 697 to 708
The lines before it were:
695. VISA Write ("GPIB0::16::INSTR", ":ARM:COUN 1;:TRIG:COU...")
Process ID: 0x00000874 Thread ID: 0x00000FA4
Start Time: 15:31:10.328 Call Duration 00:00:00.000
Status: 0 (VI_SUCCESS)
696. VISA Write ("GPIB0::16::INSTR", "ARM:SOUR IMM;:ARM:TIM...")
Process ID: 0x00000874 Thread ID: 0x00000FA4
Start Time: 15:31:10.328 Call Duration 00:00:00.015
Status: 0 (VI_SUCCESS)
the lines after it were:
709. viWaitOnEvent (GPIB0::16::INSTR (0x02D08828), IO_COMPLETION, 0, IO_COMPLETION, 0x02DA2878)
Process ID: 0x00000874 Thread ID: 0x00000D10
Start Time: 15:31:10.343 Call Duration 00:00:00.000
Status: 0 (VI_SUCCESS)
710. Completing viWriteAsync (GPIB0::16::INSTR (0x02D08828), 0x04045CD1, "ARM:SOUR IMM;:ARM:TIM...", 65)
Process ID: 0x00000874 Thread ID: 0x00000D10
Start Time: 15:31:10.343 Call Duration 00:00:00.000
Status: 0 (VI_SUCCESS)
10-28-2008 01:45 AM
10-28-2008 05:27 PM
Hello,
Looks like you are receiving a Timeout error (BFFF0015) on the viWaitOnEvent function. Can you please post the .spy file for the NI Spy Capture? Also, can you run your code under highlight execution and let me know where exactly the error is occurring?
Timeout Errors
Why do I Receive Timeout Error -1073807339 on VISA Write?
Thank you,
10-28-2008 08:44 PM
10-28-2008 08:44 PM
10-30-2008 03:06 PM
Simran,
I changed the timer from 10000 to 100000 in the initializer and the error occured only twice when I ran the code. When I decreased the timer it continued to happen, but at the same pace. While this doesn't completely solve the problem, it does make the program much more usable. Thanks for the help.
- Daniel