LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Serial Problem

I am communicating to a GPS Receiver via RS232 port of my PC. I am using LabVIEW 8. This is the scenario; I have my PC (call it PC1) which is building the application. I have another PC (call it PC2) which I deploy my application.
 
In PC1 i created and build the application. I test the execution file in the PC1 and its getting the Serial data with no problem. Now, I made a copy of the execution file for the PC2. The application will run but it will not read the serial data.
But if i will try to check the serial data on the PC2 by opening the Utility software, I can see the serial data. That means there is no problem in the Serial port of PC2.
But why when I ran the execution file it will  not get the serial data and when i stop the application it will show Error data as follows;
 
-1073807202
Property Node, Visa Configure Serial Port
 
Can anyone please teach me where is wrong. Thank you very much.
0 Kudos
Message 1 of 5
(3,039 Views)

Are the COM ports the same on PC1 and PC2?  If the application was written using COM1 on PC1 your software is trying to use that COM port on PC2.  COM1 on PC2 may be configured for something else.  PC2 may have COM2 available but not COM1.  You may need to have a control in you application for the COM port to use or use a configuration file to tell the software what COM port to use.

 

I hope this helps.

 

AJL

0 Kudos
Message 2 of 5
(3,034 Views)

If you search the LV help for this error code, you'll find this:

A code library required by VISA could not be located or loaded.

Is the VISA runtime included, if you install your SW on PC2?

Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
0 Kudos
Message 3 of 5
(3,034 Views)


@becktho wrote:

Is the VISA runtime included, if you install your SW on PC2?



More info here on the VISA runtime installation.
0 Kudos
Message 4 of 5
(3,021 Views)

To Thomas, AJL, and Warren,

That was a great advise. Thank you very much always for your kind assistance.

That was the missing link, I did not install the VISA Runtime Engine on the PC2 even if I put a check on the VISA Runtime when building execution file. The COM Port 1 is correct.

I guess this is one of the difference between LabVIEW 7.1 and 8 also. In LabVIEW 7.1 i never install the VISA Runtime engine on the PC2.

The execution file now works fine. Thanks a lot.

0 Kudos
Message 5 of 5
(2,995 Views)