DQMH Consortium Toolkits Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

Data acquisition modules for serial channels

Hi,

I'm developing a test system which includes 50 serial channels. My question is, should I use a separate data acquisition module for each serial channel? If yes, this will result in 50 data acquisition modules. Thus increasing project size.

0 Kudos
Message 1 of 4
(357 Views)

If all 50 channels are on the same device, I think one serial module that handles all 50 channels is the more typical approach.

 

If the 50 channels are spread across multiple devices, then the successful approach I've seen is to have a clonable module that handles the communication with a single device, and then a singleton "manager" module that manages the cloneable instances for each device.

Message 2 of 4
(332 Views)

The device is one but each channel (serial port) has a different baud rate and a different number of read/write bytes.

(If all 50 channels are on the same device, I think one serial module that handles all 50 channels is the more typical approach.)

0 Kudos
Message 3 of 4
(313 Views)

Gotcha. Then in that case, I think my second suggestion makes sense. A top-level Serial Manager module that spawns instances of a Serial Channel cloneable module. The Manager module manages all the devices and starts/stops clone instances as appropriate. You'll likely want some sort of configuration management whereby your Manager module can load a configuration file that defines each Serial Channel.

 

I've seen applications that spawn hundreds/thousands of DQMH clone instances, so 50 shouldn't be an issue.

Message 4 of 4
(307 Views)