08-12-2005 06:19 AM - edited 08-12-2005 06:19 AM
Message Edited by tbihn on 08-12-2005 06:21 AM
08-15-2005 05:40 PM
Hi Tom!
One thing you can try is to find your GPIB device in Measurement and Automation Explorer (MAX), scan for instruments, and try to communicate with the instrument directly. This will bypass the software, so if your card is truly having trouble sending the information as you suspect, you should see communication problems here too. If it does communicate through MAX, then there is a conflict with the software or code you are using. If it doesn't work, this does not Did this code ever work before or is it a new program? From the message you have pasted, it looks like it is cutting off the "000" on the 8000. I am not sure how your instruments works, but it may be looking for a "0" as an end of line/string, so it cuts off the rest of the command. Does the SENS:SWE... command work with another number that does not include "0"? Another thing you can try is to open NI Spy before you open and start your program. It sometimes displays the EOS/EOI that is expected, so you can check it here. You may also try your commands using the Interactive Control. Click on the link for more information. If you are still having difficulty, just let me know and I will look into it further. I saw your other post and will respond to it with some additional information for you soon. Best of luck to you and again, let me know if you have any more questions!
Chris R.
Applications Engineer
National Instruments
08-15-2005 06:08 PM
08-17-2005 05:33 PM
Hi Tom,
You should be able to use polling, which is already built into the driver. The card will receive a notification that something is ready to receive/send data and it will poll each instrument to find out which one it is. There is no wait needed. I found a a few KnowledgeBases and Tutorials on polling that may help you: Service Request and Serial Polling, Serial Polling and SRQ Servicing, and Serial, GPIB, and Serial Communication. I searched for "poll" within the documents and found some information on polling. I hope this helps, but if not, please let me know and I will look into it further for you. Best of luck and have a great day!
Chris R.
Applications Engineer
National Instruments