LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Transfer infomation from between two programs

Hi

 

This is the idea.

I have a program which deals with displaying info which it gets from another program.

The another program is an engine to recieve values from a profibus or devicenet or serial port.

Is there a way i can transfer information from the engine to the Display program ?

 

Help share your knowlegde
0 Kudos
Message 1 of 6
(3,766 Views)

There are several options, e.g. TCP, UDP, or Network Variables. CVI ships with various examples of data provider and client, simply use Help / Find Examples

0 Kudos
Message 2 of 6
(3,759 Views)

The two programs would run on one pc.

The user would select the type of comm engine.

The engine in the background and the display as the user interface.

 

Is there a way of transfering information between the two programs on one pc?

Help share your knowlegde
0 Kudos
Message 3 of 6
(3,736 Views)

A rather simple approach could be streaming the data to one or more files - and reading it back from file, with any format or NI's TDM. Other possibilities include the DDE and the Active X library - so you see there are really many possiblities Smiley Happy

0 Kudos
Message 4 of 6
(3,734 Views)

There's only to add that all solutions proposed you by Wolfgang imply that you can modify your engine application. In this case, and mostly if you plan to run both programs on the same machine, it's my opinion that you should try using Network variables (provided you are using a relatively recent CVI system - ver. 8.5 or upper).



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 5 of 6
(3,723 Views)

You might also want to check out the shared memory examples that ship with CVI. I have used TCP/IP and UDP to transfer large amounts of data between applications on one PC quite efficiently - those protocols are not restricted to use between different machines.

 

JR

0 Kudos
Message 6 of 6
(3,707 Views)