07-16-2008 07:40 AM
07-17-2008 10:01 AM
Hello Amarjeet,
If you are scanning for instruments from an NI GPIB board using NI-488.2, we can let you know what is happening under the hood and what is failing. If you are getting no instruments on th bus, this means that the NAT7210 is not responding to its address. Either it is not addressed correctly or was not initialized correctly by the firmware. There is also a possibility of a hardware problem. Please try writing and then reading the CNT0 register to make sure that your software is accessing the chip correctly.
The scan for instruments checks every primary address (pad) and secondary address (sad) to see if there are any instruments there. It starts at pad 0 and addresses it to listen. After a short time, it checks to see if the NRFD line has transitioned to accept data as expected. If the NRFD line does not transition, then the controller knows that there are no instruments at that address. It then repeats this process for every pad and sad.
If the scan is not showing any instruments, this means that it isn't responding to its address. After initialization and setting the address, it will respond to the addressing and should show up in the list of instruments. You should focus on these parts of your firmware if you can access the registers correctly.
Thanks,
Steven T.
07-17-2008 10:25 AM
07-19-2008 07:53 AM
08-25-2008 09:54 AM
Hello, Mr Amarjit
Do you have some news about your project. I'm working on interfacing a NAT7210 with a Microcontroller and I have some peoblems.
The detection is OK.
But when I send differents commands, the first time the command is OK and the second time I have an error ENOL and I need to send again the command.
At the moment, I don't know if it's a software or hardware problem. What do you use for drivers? SN75161 + SN75160 ?
Best regards
Fabrice
08-26-2008 04:42 PM
Hi Fabrice,
This thread is over a month old, and hopefully Mr Amarjit responds. But in the meantime, could you give us a little bit more information about the behavior that you are seeing? What are the commands you are sending? Does it always happen on the second command? What happens with a different set of commands?
08-27-2008 06:41 AM
But since many times, we have problems of communication under "NI 488.2 communicator":
- If I send a request for example "ID?" + read everything is Ok - If I send only commands, the second time I send the command I have an error ENOL. In attached file you can find a copy of a screen of NI spy NI-488.2 communicator and the schematic of my card. Best regards, Fabrice08-28-2008 06:16 PM
Hi neo19,
Give me some time to take a look at this. I will let you know if I need further information, thanks!
09-02-2008 05:24 PM
neo19,
Thanks for the information. In the Programmer's reference manual of the TNT4882, there is some information about how to do transfers (applies to incoming and outgoing). One of the steps is that the instrument needs to wait until it is addressed before changing to its read or write routine.
Does your program/firmware do this?
From your description it looks like your program goes into listener mode correctly and receives the message. However, it looks like it may parse the command, find that the command expects a response, and goes straight into a talker (write) routine. It should queue up the response and save the response in memory in case it gets addressed as talker in the future.
If this is not the case, you should verify in your firmware that the instrument gets addressed as listener multiple times and is able to read the data each time. Please reply back with any additional information. There could be additional steps to narrow this down.
Thanks,
Steven T.
09-03-2008 08:02 AM
Hello Steven,
In my software, as you can see in attached files, the micro-controller wait until the instrument is addressed (TA? or LA?).
I debug the software step by step and when I send a command LA=1 and when I send a read it's TA=1.
What do you think about it?
Fabrice