11-21-2022 09:44 AM
I was trying to run a current-potential test but it shows an error 7 with the text GBIP interface does not exist.
I have added the image for the error and the code. Please suggest a way to solve this issue.
Solved! Go to Solution.
11-21-2022 10:38 AM - edited 11-21-2022 10:46 AM
The error message shows two possible reasons:
I would agree that it is unfortunate that both error have the same code. If you have no experience with GPIB, you have no context information and both errors seem equally likely.
They are not, though.
I am certain that your file name (D:\UserData\Vinit ... ) is somehow wrong.
PS: Can you read the text in your second image? No, me neither. Next time, can you take your screenshots using a higher resolution camera? I suggest oversampling by a factor of 4 - so, if this is a 800x600 monitor, try to get a camera with at least 3200x2400 pixel, at least for the area where the monitor is visible. Or take the screenshot from the inside (https://answers.microsoft.com/en-us/windows/forum/all/how-do-you-take-screenshots-in-windows-7-and-w...), that way there are no sampling errors when generating the image.
11-21-2022 11:17 AM
The file name cannot be wrong as I am selecting the file by going through the path and not typing the name in the box.
Thank you
11-21-2022 01:09 PM
@Vinit96 wrote:
... I am selecting the file by going through the path ...
I see.
Try deleting these two teal wires:
See if this solves the GPIB Error.
11-21-2022 01:11 PM
Hi Vinit,
@Vinit96 wrote:
The file name cannot be wrong as I am selecting the file by going through the path and not typing the name in the box.
All that filepath mangling using string functions (using a "Data path" subVI, PathToString, ConcatString with a backslash, StringToPath) indicate something completely different!
When you have problems with your code you should attach code, either your VI or a simplified example VI demonstrating the same problem…
11-21-2022 01:35 PM
@LLindenbauer wrote:
@Vinit96 wrote:
... I am selecting the file by going through the path ...
I see.
Try deleting these two teal wires:
See if this solves the GPIB Error.
You also need use the Open/Create/Replace File function open the file reference. With that function, you can set it to "Create Or Replace" to actually create the file. By default, it just opens the file (I believe it is the same for the Write Text File). So if the file does not exist, that will throw an error code 7.
11-21-2022 02:10 PM - edited 11-21-2022 02:14 PM
@crossrulz wrote:
@LLindenbauer wrote:
@Vinit96 wrote:
... I am selecting the file by going through the path ...
I see.
Try deleting these two teal wires:
See if this solves the GPIB Error.
You also need use the Open/Create/Replace File function open the file reference. With that function, you can set it to "Create Or Replace" to actually create the file. By default, it just opens the file (I believe it is the same for the Write Text File). So if the file does not exist, that will throw an error code 7.
It should be fine. WTF creates the file if it is missing. Omitting the input causes a file selection menu to open, which bypasses the problematic path mangling (https://www.ni.com/docs/en-US/bundle/labview/page/glang/write_characters_to_file.html). My money is on the folder not existing (and therefore no file can be created), but that cannot be fixed as long as we chase the GPIB interface and cannot see what happens to that path.
11-21-2022 06:14 PM
@Vinit96 wrote:
The file name cannot be wrong as I am selecting the file by going through the path and not typing the name in the box.
Thank you
Well, it's simple to confirm that the save functions are indeed the problem. Just turn off the Save Data switch. If the error goes away, that's where your error is. (Or learn the debugging tools that will allow you to see exactly what function is generating the error.)
I'm guessing that is the case since that dialog is the one that appears when automatically handling errors that are not handled by user code, not the simple error handler function in the upper section of code.
11-28-2022 06:54 AM
Thank you it works, I had to put an option to create the file and then everything was fine