ccreevey Posted February 22, 2023 Share Posted February 22, 2023 Hello I am wondering if there is a possibility of creating 2 DAQfactory programs that can communicate with each other. Break down: I have one software which controls a hydraulic pump and recording Displacement and pressure, and another software which is recording various other sensors and is a separate unit. I would like the pump software and the daq to know that both are running and which allows the displacement and the pressure to be recorded also in the daq software so that it recorded roughly the same time. Also the pump may not be connected every time. Is there a flag or something I can set? Thanks Cameron Quote Link to comment Share on other sites More sharing options...
ccreevey Posted February 28, 2023 Author Share Posted February 28, 2023 is it somehow possible with systems.connections? Quote Link to comment Share on other sites More sharing options...
AzeoTech Posted February 28, 2023 Share Posted February 28, 2023 It can be done one way or another, but first, are these two programs running on the same computer? If so, why run two separate programs? If not, why? Are they located far apart? Are they connected to the same LAN? Quote Link to comment Share on other sites More sharing options...
ccreevey Posted March 1, 2023 Author Share Posted March 1, 2023 Hello, They are on the same computer. The pump program will only be ran on one computer but the daq software could be running on 4 computers, and the pump could be connected to any of the 4. Just to simplify the user side of it all really, using the pump run the pump software and if extra inputs are needed use the daq software, if not just the daq software. Thanks Cameron Quote Link to comment Share on other sites More sharing options...
AzeoTech Posted March 1, 2023 Share Posted March 1, 2023 Unless you have a case where the pump is on one computer and the rest of the DAQ is on another, you'll find it a whole lot easier to maintain if you write a single program. You can always disable the pump part using a flag. Quote Link to comment Share on other sites More sharing options...
ccreevey Posted March 6, 2023 Author Share Posted March 6, 2023 If I still wanted two programs how would I do it? Does one program need to have the connection name or both, and what is the connection name? The file name or something else? set the IP address to localhost 127.0.0.1? Quote Link to comment Share on other sites More sharing options...
AzeoTech Posted March 6, 2023 Share Posted March 6, 2023 You'd have to enable broadcasting on one, and then create a Connection on the other using 127.0.0.1. Alternatively, you could create a Modbus Slave on one with an Ethernet Server and then use the modbus master on the other. If you don't have a lot of channels, I'd considered that. Note that you'd have to have Pro or Developer in either case as the lower versions do not support network connectivity, and as far as DAQFactory is concerned, localhost is still using the network. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.