02-21-2008 04:28 AM - edited 02-21-2008 04:30 AM
02-22-2008 09:31 AM
Hello Ahm,
You should not expect to get the same value out of the FIFO that you put into it. The FIFO is the kind of register whose contents is handled by the IEEE 488.2 state machine. In the example you provided, you are setting CFG to 0x00. This means that you are using 8 bit mode (as you already said), but it also means that you are writing to the FIFO and reading from it will not work correctly. If you need to verify your physical connection to the TNT4882, try writing and then reading the CNT registers.
On page 4-7 of the TNT4882 manual, it describes the way to perform a GPIB Data transfer (either direction). There is also some example code that you can use (although your code is already quite similar in style).
http://joule.ni.com/nidu/cds/view/p/id/223/lang/en
You may want to include your transfer initiation code as well as the actual transfer code or you can more closely base your code on the above examples.
Steven T.
02-22-2008 11:13 AM
02-26-2008 09:20 AM
No ideas?