Skip to main content

All Questions

Tagged with
4 votes
2 answers
232 views

Is wrapping a hardware resource using polymorphism going too far?

I am writing a simulation engine consisting of a number of components, each of which operates on a fixed set of shared buffers. In practice, the simulation will run entirely on the GPU. When ...
sebf's user avatar
  • 285
5 votes
4 answers
8k views

Avoiding hangs when calling a native API

Background We have a piece of programmable hardware here at work that we integrate into almost all of our systems. This piece of hardware came with a native Windows DLL (for which we do not have the ...
Snoop's user avatar
  • 2,738
2 votes
1 answer
317 views

In a polled interface, is it okay for an object representing hardware to start a task responsible for the polling?

I am a hardware/test engineer currently writing a C# application for a device that does not have any event/interrupt mechanisms. Because of this I am forced to poll the device's internal control ...
Snoop's user avatar
  • 2,738
3 votes
3 answers
3k views

How can I send a signal to a program via external hardware

I am trying to find a piece of hardware that will signal a program to start a timer when it is moving and stop when it stops. The hardware can just be a ball that moves and is connected to the ...
Christopher's user avatar