Multiple serial ports open


sagha

Recommended Posts

Posted

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?

Posted

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.

Posted

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.

Posted

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.

Posted

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

Archived

This topic is now archived and is closed to further replies.