LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Getting error 43 with file open+.vi

Few days ago my VI was able to operate smoothly without error. When I execute my VI again today without modifying anything, I received error 43.

I understand the VI is downloaded to the RT system and the function vi Read from Spreadsheet.vi (which has sub vi file open+.vi) causes the problem because there is no hard memories in RT.

Is there any solution to read the file in my computer and send the instruction to the RT system rather than having RT system download my vi? Please advise thanks.
0 Kudos
Message 1 of 6
(3,596 Views)
Sorry it should be open file+.vi not file open+.vi.
0 Kudos
Message 2 of 6
(3,587 Views)
Hello,

There are some solutions to what you want to do. The first one is to read from the spread sheet and write directly to the RT VI, using the VI Server VIs. You need to open an Application Reference where you will specify the address of the RT box, then an open VI reference that will make reference to the VI running on the RT. And then through methods and properties you can write the values to it. Another option is to use the Call By Reference instead of the properties and methods.
The other solution is to write and read data from the RT to the Host or vice versa by using TCP communication.
If you run your RT VI through the Communication Wizard, it will create 3 different VIs. One with the TCL that will be running at time critical loop your VI. Then a NPL which will be a VI with normal priority for communication. This is where you will have the TCP communication. The third VI will be a Host VI that will also have the User Interface and the TCP communication to the RT.
Hope this helps.

Ricardo
0 Kudos
Message 3 of 6
(3,578 Views)
Thanks

I am a new to RT communication. Could you please elaborate more details or link me to an example or tutorial page? Thanks
0 Kudos
Message 4 of 6
(3,570 Views)
Hello,

Here is a link to Using the LabVIEW Real-Time Communication Wizard.
For an example on VI server go in LabVIEW to Help, Find Example, then to Search and type VI server.
One of the last results in VI server is a VI for RT called VI Server Manager Application.
That is a good example of loading and managing your RT VI.
Hope this helps.

Ricardo S.
National Instruments
0 Kudos
Message 5 of 6
(3,560 Views)
Hi all ... I think i've approximatively the same problem here:

I try to open a .ini file which contains keys used to configure my application. I read some keys in this file and write the values in global variables. This file is on the remote system. When i run my application from my host PC (in the target sytem) i get sometimes the same error ...

My question is the following: When my application will be finished, i will download it on the controller and it will run alone.. will i get the same error ??? If yes where does it come from and what could i do to prevent this to happend ???

Thanks a lot !
0 Kudos
Message 6 of 6
(3,521 Views)