LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Communicating LabVIEW with GPS-X

Hi,

I have two computers. In one computer I have installed GPS-X and in another one I have my LabVIEW. These computers are connected in network. I want to send a txt file from LabVIEW to GPS-X. How can I do it? Some idea?

Thanks,

ToNi.
0 Kudos
Message 1 of 13
(4,182 Views)
I think the best solution is using datasockets.... Where can I find an example?

Thanks,

ToNi.
0 Kudos
Message 2 of 13
(4,170 Views)
Hi Toni,

I´ve been searching information about GPS-X, and only I´ve seen that GPS-X is a software program for the modeling and simulation of municipal and industry wastewater treatment plants.

I want to understand that the txt file that you want to send on the network was created with data that you get with Labview´s application and now, you want to load it on GPS-X software to simulate a wastewater treatment plant, don´t you??.

If this is true, if you want to use DataSocket, you should have installed LabVIEW on PC where you have GPS-X and launch an application of Labview to read the txt file, for example, from ftp server(http server, OPC Servers, windows network) where you can upload the txt file and then download it.

This VI would have to be made with:
1. Datasocket Open: You should type the ftp where you have saved the txt file and indicate to DSocket Open "Read" this file.
2. Datasocket Read
3. Datasocket Close

In some part of your VI you may save the data in other file in order to open it from GPS-X.

There are other ways to send information on network:

1. ActiveX: You´d have to see if GPS-X is ActiveX Client to programmatically access to the method and properties of Labview´s object (you can see more information on labview´s help).
2. DDE

Diego M.
0 Kudos
Message 3 of 13
(4,156 Views)
Hola Toni,

other link about Labview as an ActiveX Server on: http://digital.ni.com/public.nsf/websearch/0AA13C1B5D6C215F862565BC006E072F?OpenDocument

Regards

Diego M.
0 Kudos
Message 4 of 13
(4,153 Views)
Hi,

>I want to understand that the txt file that you want to send on the network was created with >data that you get with Labview´s application and now, you want to load it on GPS-X software >to simulate a wastewater treatment plant, don´t you??.

Yes, I do. I want from one computer where Labview is installed, create a txt file that was created with data that I got with LabVIEW's application, and then I want to send it on the network to another computer where GPS-X is installed. Then I place the txt file in a directory where GPS-X searches the txt file for simulate a wastewater treatment plant.

>If this is true, if you want to use DataSocket, you should have installed LabVIEW on PC >where you have GPS-X and launch an application of Labview to read the txt file, for example, >from ftp server(http server, OPC Servers, windows network) where you can upload the txt file >and then download it.

Ok, I understand you. I need to have a Labview's client-server application. I install the server on the computer I installed Labview and the client in the computer where I install the GPS-X.

>This VI would have to be made with:
>1. Datasocket Open: You should type the ftp where you have saved the txt file and indicate >to DSocket Open "Read" this file.
>2. Datasocket Read
>3. Datasocket Close


>In some part of your VI you may save the data in other file in order to open it from GPS-X.
>There are other ways to send information on network:

>1. ActiveX: You´d have to see if GPS-X is ActiveX Client to programmatically access to the >method and properties of Labview´s object (you can see more information on labview´s help).
>2. DDE

What are the diferences between using ActiveX or DataSockets? I want the most efficient method. What is the most efficient method to do it?

Thanks,

ToNi.
0 Kudos
Message 5 of 13
(4,138 Views)
Hi again,

basically ActiveX is a diverse set of technologies based on COM. The COM standard allows developers to create code and applications from a multitude of different languages (LabVIEW, Visual Basic, GPS-X?, you´ll have to see if GPS-X supports ActiveX) and build a defined interface to that code, making it easily accessible by other applications. Applications can access the functionality of other applications through the standard interface.

Datasocket is an Internet programming technology that simplifies data exchange between computers and applications. With DataSocket, you can efficiently pass data over the Internet and respond to multiple users without the complexity of low-level TCP programming..

I believe that the best for you will be ActiveX if you GPS-X can be ActiveX client and to have access to the methods and properties of LabVIEW (ActiveX Server).

Regards

Diego M.
0 Kudos
Message 6 of 13
(4,127 Views)
Am I missing something? You say that you want to have your LabVIEW application create a txt file on one computer, then send it to a directory on the other computer, where your GPS-X application will read it? Could you just have the LabVIEW application create the file, over the network, on the other system? Or just have it copy the file from one system to the other? The COM (ActiveX) discussion seems more appropriate to having LabVIEW directly insert data into GPS-X. We ActiveX to write into EXCEL files, for instance, mostly because the EXCEL file format changes, so using EXCEL guarantees access to the format, but when all we want is a file that EXCEL can read, we use CSV ro tab delimited. Similarly, if you are trying to write a GPS-X specific format file, or transfer directly into GSP-X then using data-sockets, ActiveX, etc., maybe needed, but if GPS-X is just looking at a specific directory for a "txt" file to appear, then just copying it seems the easier method.

Putnam Monroe
Putnam
Certified LabVIEW Developer

Senior Test Engineer North Shore Technology, Inc.
Currently using LV 2012-LabVIEW 2018, RT8.5


LabVIEW Champion



0 Kudos
Message 7 of 13
(4,123 Views)
Yes you are right, but I can't use copy method because this txt file is updated each x seconds and then GPS-X can get the txt file in the specific directory for simulating a process.

I don't know wheter GPS-X is a ActiveX client, I will see it. If so, then I try to implement it with ActiveX.

Do you Know where can I find an ActiveX example?

Thanks,

ToNi.
0 Kudos
Message 8 of 13
(4,116 Views)
Hi again,

I want to build a labview activex client and server. Labview activex client is in one computer and server is in another computer. I want to sent a txt file from one computer to another using ActiveX (or datasockets) but I don't know how to do it....

Can anyone helps me? Where Can I find an activex server/client example?

Thanks,

ToNi.
0 Kudos
Message 9 of 13
(4,113 Views)
Hi,

I have done a little example to write a txt file to a computer on the network. This example works if the computer where I want to write the txt file is local (belongs to local network) but... how can modify this example in order to write the txt file in a computer outside my local network (on a remote network through a host)?

If it is not possible, I could do a client/server application with datasockets. Then I will put the client on my machine and the server on the remote computer... but then How can I do the remote computer waits for a datasocket connection from client? How can I detect when my computer (client) connects to remote computer (server), in other words, how can I do the server knows that the client has connected to him?

Thanks,

ToNi.
0 Kudos
Message 10 of 13
(4,094 Views)