Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

How come I get only teh first line of the file on File transfers.

When xferring files from Non-CIC(AT-GPIB) to CIC(PCI-GPIB), only the first line of the file gets transferred. The Non-CIC gets a CMPL with no error and the CIC still writing and timeout after 10 seconds.
0 Kudos
Message 1 of 5
(3,556 Views)
Hi Lari,

You may want to check into your program to determine why the listener thinks it is done. Termination characters is the first thing that comes to mind.

Run NI-SPY to figure out what is really happening.

Hope this helps out!

Best Regards,
Aaron K.
Application Engineer
National Instruments
0 Kudos
Message 2 of 5
(3,556 Views)
Hi AaronK,

I think I finally got it to working but with a minor problem -- the Non-CIC doesn't know that the file transfer is already done. The CIC is already CMPL while my Non-CIC is still reading until it TMO but it read the whole file. These are my settings:

- Send EOI at end of Write (Enabled for both)
- Terminate Read on EOS (Disabled for Both)
- Set EOI with EOS on Write (Disabled for Both)

Thanks so much again for the help

Lari
0 Kudos
Message 3 of 5
(3,556 Views)
Glad to hear it Lari!

To solve that problem, the first thing that comes to mind would be to try to use the atn line or have the CIC force the listener to stop.

Hope everything else runs smoothly.

Aaron K.
Application Engineer
National Instruments
0 Kudos
Message 4 of 5
(3,556 Views)
Hi AaronK,

I still can't seem to recover from that TMO. After the CIC finishes the IBWRTF, I then send an IBCMD "\x14" to terminate and clear the device and eventually hoping would trigger an END but still got a TMO on the Non-CIC. I guess this is the only way I know how to force a stop to listen. Is there any way how to force the listener to stop. What about the ATN line you mentioned - how do you use the ATN line in this case.

Thanks,
Lari
0 Kudos
Message 5 of 5
(3,556 Views)