11-04-2010 08:24 AM
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 ?
11-04-2010 08:54 AM
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
11-05-2010 01:23 AM
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?
11-05-2010 01:33 AM
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
11-05-2010 02:55 AM
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).
11-05-2010 04:17 AM
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