LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

error 7

I'm using serial port of a notebook (computer2)to interface information from another labview software in the computer1. When i configure this, on the c1's screen appears the following sentence:
" error 7 occured at Open File+.vi:Open File
Possible reasons: LabVIEW: file not found or ni-488: nn-existent board"
Now, This program is ok because the vendor certificates it; the board is ok because without my interface, intrument works correctly.
Please, send me your opinion.
0 Kudos
Message 1 of 3
(2,976 Views)
LabView has a lot of debugging features that you can use to help find your problem.
Two ways to track the problem down are to use the Suspend when Called mode or to use probes.
To use Suspend when Called:
1. From any LabView window, goto File >> Open, then browse to C:\Program Files\National Instruments\LabVIEW 6.1\vi.lib\Utility\FILE.LLB\Open File+.vi.
2. On the menu bar for Open File+.vi, select Operate >> Suspend when Called.
3. Run your application. Anytime Open File+.vi is called, its front panel will be displayed and the VI will be suspended.
4. When Open File+.vi is suspended, you will use two buttons on the left side of the tool bar to control it.
4.1 The dark button on the left is the Run button. Click on it and see if Error Out goes to Error (or True). If an Error Out is displayed after you run the VI, look closely at File Path input. Verify that the path is correct.
4.2 The second button from the left is the Return to Caller button. Click on that after you run Open File+ to continue with your application. You may need to run and continue several times before you find the call with the error (if Open File+ is called multiple times).
5. When you're done debugging, remove Suspend when Called from Open File+.vi.
Another option is to use probes on the diagram of the VI that calls Open File+.vi. Probes are even easier than Suspend when Called if Open File+ is called only once in your application.
1. To find where Open File+ is called, from your application main vi (front panel or diagram), press F.
2. Click on Search for Objects.
3. Set Search Scope to All VIs in Memory.
4. Click on the icon next to Select Object:
5. Click on VIs by Name...
6. Select Open File+.vi and click OK.
7. Click Find. If only one instance is found, the VI will be highlighted on the diagram that calls it. If multiple instances are found, you'll be given a list of locations. Double click on any item in the list to goto that locations. The Search Results window will still be open and on the Windows Taskbar so you can search for the next occurance.
8. Right-click on the wire going to the File Path input and select Probe.
9. Right-click on the wire going to the Error In input and select Probe.
10. Right-click on the wire going to the Error Out output and select Probe.
11. Run your application. Watch the probes and look for Error In = False and Error Out = True. Take a close look at the File Path probe.
Message 2 of 3
(2,976 Views)
Reasons why you can not open a file are:
1: The path to the file does not exist.
2: You have not the right to create the file.

What file name did you use at Open File+.vi?

You say you will use the serial port, do you try to open it with Open File+.vi?

Do I understand it right that the error comes from the certificated program?

So I guess you have entered in a control "COM1" as a file name. I don't believe that LV can handle COM1 as a regular file with the file functions.

If that's not right give a more detailed description of what you are doing.

Waldemar
Waldemar

Using 7.1.1, 8.5.1, 8.6.1, 2009 on XP and RT
Don't forget to give Kudos to good answers and/or questions
Message 3 of 3
(2,976 Views)