question

SindhuH-2474 avatar image
0 Votes"
SindhuH-2474 asked SindhuH-2474 commented

Real-time data acquisition of other forms even when they are not visible

Hello everybody,

I have been working on a project, where I have plenty of sensors and actuators with real-time data acquisition and data manipulation. Likewise, we have various subsystems with multiple sensors and actuators. And all those subsystems communicate to each other and are a one-whole system that needs to be hosted on Windows Form with data-acquisition hardware.

The software requires to function wherein the user will be displayed the subsystem he/she chooses where the data acquisition can be viewed and can give various set points and monitor the data. Nevertheless, it doesn't mean that the subsystem which is not chosen to view on the screen stops acquiring the data, even in the background it needs to constantly acquire the data.

Please correct me if I am wrong, but as per my understanding and exposure to Windows Forms, when we use Form1.Show() means only Form1 keeps running, while other Forms are waiting and "not running" in the background. I need help in choosing a method of architecture to successfully run my software, without disturbing the continuous data acquisition.

Ps: Will implementing Tabs inside a form help me? Although it helps in switching between different Subsystems, I m worried the tabs will slow down the performance of the software.

Thank you in advance.

windows-forms
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Fundamentally I think your data acquisition should not be tied to any UI view. That would mean that at the simplest it should probably be done on a background worker thread, but if you need to still capture data in the event of your viewer application crashing, or being closed by the user, you should look into having it as a separate service process.
If your sensors follow any standards, there are probably existing 3'rd party applications or libraries that will help you.

1 Vote 1 ·

1 Answer

SindhuH-2474 avatar image
0 Votes"
SindhuH-2474 answered SindhuH-2474 commented

@DavidLowndes-6766 .
Thank you for the response. You totally understood my issue. And, can you please suggest a separate service process with respect to my UI program ?

· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

I don't have any suggestions, but you could start reading here.


1 Vote 1 ·
SindhuH-2474 avatar image SindhuH-2474 DavidLowndes-6766 ·

thank you

0 Votes 0 ·