I have two different MCC boards, USB-1808 & USB-QUAD08 which connected together to a PC with USB. With my C# programming, I deployed object oriented method by creating two objects, namely class DAQ, each object for one boards. In each object, they have own Thread to execute DaqInScan / CInScan in continuous and background mode. In each thread, it will called GetStatus() function to process the data required. From main thread, it will access the data from each object to combine them together using timer.
Is the method mentioned above suitable? Because I notice the number of scan count for each thread are different much. For example:
(i) At t = 1s,
USB1808 : 200 scans
USBQUAD08 : 195 scans
(ii) At t = 2s,
USB1808 : 402 scans
USBQUAD08: 398 scans
....
(iii) At t = 10s,
USB1808 : 1988 scans
USBQUAD08: 1978 scans
If I would like to combine the data from each board corresponding to each scan index (example shown below), it seem like not so suitable.
(i) At t = 1s,
1st dataset = USB1808 data [0] + USBQUAD08 data [0]
2nd dataset = USB1808 data[1] + USBQUAD08 data[1]
...
195th dataset = USB1808 data [194] + USBQUAD08 data [194]
--> At this point, there are another 5 scans data in USB1808.
Question
Ricky Ooi
I have two different MCC boards, USB-1808 & USB-QUAD08 which connected together to a PC with USB. With my C# programming, I deployed object oriented method by creating two objects, namely class DAQ, each object for one boards. In each object, they have own Thread to execute DaqInScan / CInScan in continuous and background mode. In each thread, it will called GetStatus() function to process the data required. From main thread, it will access the data from each object to combine them together using timer.
Is the method mentioned above suitable? Because I notice the number of scan count for each thread are different much. For example:
(i) At t = 1s,
USB1808 : 200 scans
USBQUAD08 : 195 scans
(ii) At t = 2s,
USB1808 : 402 scans
USBQUAD08: 398 scans
....
(iii) At t = 10s,
Edited by Ricky OoiUSB1808 : 1988 scans
USBQUAD08: 1978 scans
If I would like to combine the data from each board corresponding to each scan index (example shown below), it seem like not so suitable.
(i) At t = 1s,
1st dataset = USB1808 data [0] + USBQUAD08 data [0]
2nd dataset = USB1808 data[1] + USBQUAD08 data[1]
...
195th dataset = USB1808 data [194] + USBQUAD08 data [194]
--> At this point, there are another 5 scans data in USB1808.
Link to comment
Share on other sites
3 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now