01-11-2008 04:44 PM
01-11-2008 05:34 PM
01-11-2008 10:40 PM
You can use the Call Library Function node to interact with the C++ code modules, that re built as a DLL & the required functions exported.
Try searching the NI site for "Calling C++ from LabVIEW & vice-versa, and also some other combinations...
01-11-2008 11:40 PM
01-14-2008 01:18 AM
As has been already suggested, I'v written a pipe library for LabVIEW for Windows and made it available at www.openg.org. It's not released and still considered beta but it seems to work for what I needed it.
@dj143 wrote:I'm working with a C++ programmer that has an application that I need to obtain data from and send the data to my LabVIEW application. I assume that this would be a server/client relationship where I would be the client. The C++ programmer feels that we should be able to do this by using what is called "named pipes." I'm not sure how to approach this because I'm not an experienced programmer (which is why I use LabVIEW).In case it's relevant, I also have access to LabWindows/CVI v.8.1.1. I don't know anything about LabWindows, athough I'm willing to learn if I need to. I have the LabWindows product available because it is part of my quarterly NI Developer Suite update.I'd appreciate it if someone would steer me in the right direction by way of a knowledge base or other documentation. I'm currently using the Professional version of LabVIEW, v.8.5 and Win XP.Thanks,Dave
12-15-2011 06:17 AM
HI, Rolf
Do you have a new version of OGpipe? I found the OGPIPE read from Pipe__ogtk.vi can't read data from Named pipe. but the OGPIPE Write To Pipe__ogtk.vi can write data to named pipe. Now I need to using named pipe communicate with a C software, control the software to do measurement then read data from this software. I have download a pipeclient form internet ,this client can send a aommand to pipe and then read string from pipe, but I don't know how to using labview to do it ,Could your give me some help? Thanks! Our company also have some labview projects for CIT NV. I'm working in philips lighting.
12-15-2011 10:31 AM
@ronke wrote:
HI, Rolf
Do you have a new version of OGpipe? I found the OGPIPE read from Pipe__ogtk.vi can't read data from Named pipe. but the OGPIPE Write To Pipe__ogtk.vi can write data to named pipe. Now I need to using named pipe communicate with a C software, control the software to do measurement then read data from this software. I have download a pipeclient form internet ,this client can send a aommand to pipe and then read string from pipe, but I don't know how to using labview to do it ,Could your give me some help? Thanks! Our company also have some labview projects for CIT NV. I'm working in philips lighting.
Nothing like coming to the party late. I hope that the OP has solved his problem and hasn't been waiting nearly 4 years for an answer. Anyway, thanks for posting a possible solution for people who may face this issue now.
12-16-2011 12:50 AM
I have to admit that I'm at the moment not very intimate with the internal workings of the OpenG pipe library. From what I can remember pipes are unidirectional entities so if you want to read and write, you have to open one pipe for each direction (under different names). I guess the shared library could have handled that internally and offer the user the option to also do bidirectional operation, but that is not what I have gone with at the time of development. The named pipe support was in fact a sorts of afterthought as I was concentrating on standard IO redirection for command line tools and there only unidirectional operation was possible.
So there might be a problem to use the OpenG pipe library with your specific use case at this time. I'm rather busy at the moment and don't really have much time to look deeper into this. But if it is for a specific project you have don't hesitate to contact me or our office in Hasselt to talk about possible options.
12-16-2011 01:29 AM
Attached is the C# cource with PipeClient and PipeServer, I saw this sourcecode using Kernel32.dll to communicate with pipe. Hope someone can solve this problem or write a dll for LabVIEW.
12-16-2011 01:39 AM
Below is technical reference.
http://www.switchonthecode.com/tutorials/interprocess-communication-using-named-pipes-in-csharp