06-30-2006 08:19 AM
07-05-2006 12:52 PM
07-05-2006 02:40 PM
Hi Robert,
Unfortunately, I had posted some incorrect details
. The program is actually hanging at a VISA Write (not a VISA Close as I originally posted). I have attached a screenshot of the block diagram of a greatly simplified sequence.
This vi duplicates the symptom. If I run the vi, it will hang at the VISA Write I have shown. If I run with highlight execution, it exits properly. If I run with NI Spy capturing, it exits properly. Also, if I switch the offending Write to "Do I/O Synchronously", it exits properly. It just seems strange that it locks up without timing out or anything.
Anyway, I hope this information is useful and I apologize for posting some wrong information. Oh, this is using NI 488.2 version 2.30. I'm downloading the latest version now.
Thanks,
Jon
07-05-2006 04:04 PM
What does the FA command do?
Is it possible that you are not waiting long enough for the instrument to do what it needs?
Is it a newer instrument that works well with VISA?
07-05-2006 04:31 PM
Hi nyc,
Thanks for the reply. The instrument is an RF amplifier from IFI...the FA command stands for "full attenuation" and basically shuts off the output. While the instrument has a few quirks to communicate with it, I've been able to use all of it's functions without any trouble. I also issue the FA command several other times throughout the program and it works ok.
In this case, when I run the little vi, it will hang "forever" (I've run out of patience after about 4 minutes). If I open up the block diagram and hit the highlight execution button after it has locked up, the only thing that hasn't executed yet is the VISA Close (please see diagram2.jpg). So I'm assuming it's still trying to do the Write.
It just seems like it's a strange timing problem that just happens to fall in the correct sequence to lock up the pc.
jon
07-05-2006 05:03 PM
07-05-2006 05:03 PM
07-06-2006 08:26 AM
@Dennis Knutson wrote:
I'd like a .spy file to look at as well. When you do VISA Writes synchronously or execution highlighting, you doing the same thing - forcing the writes to occur one after another instead of doing it in parallel. With the GPIB bus, you can't really do the operations in parallel anyway since only one instrument can be addressed at a time. The 488 driver should handle this for you and that's why it would be nice to see the .spy file. A quick fix would be to set the VISA Writes to synchronous mode in this case since it seems to work and you won't see any difference in performance.
Unfortunately, when I run NI-Spy with the vi, it executes correctly. I will try a few different options today, but so far I have been unsuccessful duplicating the problem while spy is running.
nyc,
If I remove the other portions of the code (VISA Opens, Write, and Closes) for the other instruments, it functions ok. In fact, it functions ok if I just remove the other write (the one with the AP-89DM....).
Thanks for all your help and suggestions,
Jon
07-06-2006 08:50 AM
What is that AP-89DMR2 command? Is that legitimate?
What happens if you run that part of it alone?
07-06-2006 08:58 AM - edited 07-06-2006 08:58 AM
Message Edited by jasonhill on 07-06-2006 08:58 AM