Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Hello, I need someone to help me on this program labview. when I try this program, it tells me that there's an error and I have not found. I also need someone explains to me soon as possible (urgent) thank you

Hello, I need someone to help me on this program labview.
when I try this program, it tells me that there's an error and I have not found.
I also need someone explains to me soon as possible (urgent) thank you

0 Kudos
Message 1 of 17
(4,821 Views)
What sort of error? No one can explain an error if you don't provide the error code and message.
0 Kudos
Message 2 of 17
(4,814 Views)

LabVIEW: File not found. The file might have been moved or deleted, or the file path might be incorrectly formatted for the operating system. For example, use \ as path separators on Windows, : on Mac OS, and / on Linux. Verify that the path is correct using the command prompt or file explorer. ========================= NI-488: Nonexistent GPIB interface.

this isthe text error

0 Kudos
Message 3 of 17
(4,810 Views)
The error message hides the code so I don't know what you are doing. You should not be using the low level GPIB functions (use VISA) and you should not be using a stacked sequence structure. Are you using an NI GPIB controller board?
0 Kudos
Message 6 of 17
(4,798 Views)
You should also provide the make and model of the instrument. Did you try Help> Find Instrument Drivers?
0 Kudos
Message 7 of 17
(4,796 Views)
The reason I asked for an image is that I'm using a phone. And, unless you make the recommended changes and answer my questions, I will not respond again.
0 Kudos
Message 9 of 17
(4,788 Views)

As Dennis has stated you need to provide more specific information if you want to get help.

 

It seems likely that the GPIB controller was disconnected or was not recognized by LabVIEW.

 

Your program has a lot of problems. Dennis mentioned GPIB low level functions and the sequence structure.

 

You also have code which is not connected to anything, unnecessary local variables, duplicate code, greedy loop, and others. 

 

I do not know your instrument but it is likely that you are not sending the correct commands to it. Do you want to do * RST on every iteration of the loop? Well, to does not matter because you create a string with that command but do not ever do anything with it. The output of the Append True/False String is not wired. In the case structure the strings in the two cases appear to differ only by a space.Is one of thes an error?  In one case the string is wired to the string input and in the other it is wired to the format string input. It is not a valid format string so that seems to be an error. Why have the case structure if the strings are identical or differ only by a space? Does a 17 ms timeout make sense? Many GPIB instruments are slwoer than that.

 

Here is an image of a cleaned up version.

 

Lynn

 

cleaned up.png

0 Kudos
Message 10 of 17
(4,770 Views)