sagha Posted March 4, 2019 Share Posted March 4, 2019 In my project, I'd like to read the serial streams of more than one serial COM port at a time. I tried to make two separate serial objects in the device configuration, but I cannot open more than one at time. Is it possible to open two COM ports in DAQFactory in one project simultaneously? Quote Link to comment Share on other sites More sharing options...
AzeoTech Posted March 12, 2019 Share Posted March 12, 2019 Yes you can definitely do this. What problem are you seeing when you try this? Note that if you want to create two devices that use the same serial port you should only create one port and assign it to both devices. Quote Link to comment Share on other sites More sharing options...
sagha Posted March 12, 2019 Author Share Posted March 12, 2019 Hi. The problem I'm seeing is this: I have two devices plugged into USB ports of my computer that are acting as serial ports, device A and device B. Device A connects as COM2 (for example) and device B connects as COM3. In my DAQFactory project, I make one device called mydeviceA and assign it to COM2. I make a second device, mydeviceB and assign it to COM3. When I go back to the menu settings for mydeviceA (to look at the raw serial stream, for example), I see that it has also been assigned to COM3. What I would like is for mydeviceA to read/write the stream from COM2 and mydeviceB to read/write the stream from COM3 all from the same project. Thanks. Quote Link to comment Share on other sites More sharing options...
AzeoTech Posted March 14, 2019 Share Posted March 14, 2019 Something is off then. My guess is the assignments aren't correct. Why don't you post or email us your .ctl doc so I can check. Many customers run multiple com ports so the program is certainly capable of it. Quote Link to comment Share on other sites More sharing options...
sagha Posted March 20, 2019 Author Share Posted March 20, 2019 Hi. Thanks for the response. I was going to send you a copy of my code, after reproducing the error but now it seems to work fine! I don't know what I did differently, but I'm able to open separate COM ports on the same DAQFactory project. Simone 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.