07-28-2020 03:40 PM
I am currently trying to write a LabVIEW program that partially automates and EMI test. I have already made a VI that is able to take a screenshot of the spectrum graph that appears on the signal analyzer, but I need to make a VI that helps set up the requirements of EMI test. The VI I am currently making keeps pulling up the same error. I have attached the errors I am receiving as well as the program I have written. If anybody knows anything that might be able to help it would be greatly appreciated.
07-30-2020 03:41 PM
Hi, @VMTZ00,
Thank you for attaching your VI!
Just looking over your VI, there are a few things that could use some cleaning up and reorganization. I'm not going to give you a list - there are style guides and learning resources available all over this website that you can refer to. So I won't say anything more on that.
...except for this one thing.
Taken out of context and cleaned up, that Case Structure looks like this:
Since "True" will never equal "False", only the "False" case of the Case Structure will ever execute. Just a heads up.
On to your original question.
@VMTZ00 wrote:
I am currently trying to write a LabVIEW program that partially automates and EMI test. I have already made a VI that is able to take a screenshot of the spectrum graph that appears on the signal analyzer, but I need to make a VI that helps set up the requirements of EMI test. The VI I am currently making keeps pulling up the same error. I have attached the errors I am receiving as well as the program I have written. If anybody knows anything that might be able to help it would be greatly appreciated.
Since I do not have the "Rohde and Schwarz Spectrum Analyzer" VIs, nor the device you're trying to connect (nor do I currently need them), I can't test your VI.
However, based on your error, the issue is in Initialize.vi, the first one in the long chain of "Rohde and Schwarz Spectrum Analyzer" VIs. It looks like the VISA connection was lost (or maybe never established?).
You might try the following:
Beyond that, I recommend you consult your instrument's manual, any resources you can get regarding the "Rohde and Schwarz Spectrum Analyzer" VIs, and do an internet search to find VISA troubleshooting information. (There is a LOT of info you can find. Both on ni.com and elsewhere.)
Best of luck,
joeorbob