Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

error 7, looks like GPIB got lost.

FWIW Battle story:   LabView 2011 on a Windows 7 machine being compiled and ported over to a Windows XP sp3 laptop.

 

One might think from the following error message that the GPIB was somehow messed up and getting lost after the first initialization of the GPIB devices that I have connected:

Laptop error

 

After doing a LOT of messing around with the test and diligently removing one GPIB call at a time and recompiling and sending it over to the laptop the test was still failing with the same error and NO reference to any GPIB device in the code…..   the only thing to do was to look elsewhere.

 

So…………..   after some more fooling around with the Windows 7 source code that works properly, I found I could create the following error message by moving the .CSV file that the program uses to translate D/A temperature sensor output to real world degrees centigrade.

 

A Clue.jpg  Finally, a real clue!   BUT what is up with the GPIB?

Still complaining about the GPIB …BUT the actual problem was that the .CSV file was in the wrong location on the lap top even though the .vi that uses it was pointed correctly.   I fixed the location of the CSV on the laptop and the natives rejoiced and danced. 

 

Thanks NI for the concise and exacting error information that made a simple fix so much fun to find.

0 Kudos
Message 1 of 4
(3,457 Views)

This has been discussed numerous times. If you notice - it says possible reason(s). So, error code 7 can be either a GPIB or file error. You can determine which function is actually throwing the error and isolate the problem.

0 Kudos
Message 2 of 4
(3,454 Views)

I have never ran into that error due to GPIB.  The only reason I can think of that you would get that error for GPIB is if the card suddenly decided to disappear.  When I get that error, I always look for missing file(s) first.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 3 of 4
(3,442 Views)
And of course, no one should be using GPIB functions anyway since VISA has been preferred for a very long time.
0 Kudos
Message 4 of 4
(3,440 Views)