Click here to Skip to main content
15,916,398 members
Home / Discussions / Hardware & Devices
   

Hardware & Devices

 
QuestionCant find SQLServerCE dll Pin
sohaib_a13-Aug-09 4:45
sohaib_a13-Aug-09 4:45 
QuestionHow to make a raw PDO device accessible from user mode code in control panel? Pin
sinosoidal10-Aug-09 23:10
sinosoidal10-Aug-09 23:10 
AnswerRe: How to make a raw PDO device accessible from user mode code in control panel? Pin
Randor 11-Aug-09 11:49
professional Randor 11-Aug-09 11:49 
GeneralRe: How to make a raw PDO device accessible from user mode code in control panel? Pin
sinosoidal12-Aug-09 1:55
sinosoidal12-Aug-09 1:55 
GeneralRe: How to make a raw PDO device accessible from user mode code in control panel? Pin
Randor 12-Aug-09 10:28
professional Randor 12-Aug-09 10:28 
QuestionHow make my system run fast? Pin
CoderForEver10-Aug-09 9:09
CoderForEver10-Aug-09 9:09 
QuestionBest way to send a signal to a piece of hardware Pin
Wjousts10-Aug-09 8:55
Wjousts10-Aug-09 8:55 
AnswerRe: Best way to send a signal to a piece of hardware Pin
Luc Pattyn10-Aug-09 9:23
sitebuilderLuc Pattyn10-Aug-09 9:23 
Hi,

if all you need is one or a few signals (in or out, doesn't matter), the easiest and cheapest way would be through the control pins of a serial port, either a regular one or a USB-to-RS232C cable one.

Use the SerialPort class to open the port, and some of its properties to either read or write the control pins.

remarks:
- RS232C does not use TTL voltage levels; voltages may go anywhere from +15V to -15V so you may have to add resistors and a diode or zener diode.
- a better alternative would use an opto-coupler between your serial port and your target hardware.
- exact timing is not possible under Windows; generating a pulse that typically lasts some 30 milliseconds or more, should not be a problem. On average. When you're unlucky, your app will start the pulse and be kicked out for something more urgent Windows wants to do. You can reduce probability of this happening drastically by temporarily raising thread priority to real-time!
- serial ports based on USB-to-RS232C cable are bound to offer less control on timing, as they have to put their data and events in USB packets first.

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.

GeneralRe: Best way to send a signal to a piece of hardware Pin
Wjousts10-Aug-09 10:25
Wjousts10-Aug-09 10:25 
GeneralRe: Best way to send a signal to a piece of hardware Pin
Luc Pattyn10-Aug-09 10:51
sitebuilderLuc Pattyn10-Aug-09 10:51 
AnswerRe: Best way to send a signal to a piece of hardware Pin
supercat912-Aug-09 6:55
supercat912-Aug-09 6:55 
QuestionMonitoring CPU Pin
red_moon10-Aug-09 6:59
red_moon10-Aug-09 6:59 
AnswerRe: Monitoring CPU Pin
Luc Pattyn10-Aug-09 7:38
sitebuilderLuc Pattyn10-Aug-09 7:38 
QuestionWrite in pendrives's boot sector Pin
J.K.Sharma6-Aug-09 22:54
J.K.Sharma6-Aug-09 22:54 
QuestionSound device disable !! Pin
Hum Dum6-Aug-09 0:48
Hum Dum6-Aug-09 0:48 
QuestionControlling Ports, Device I/O Range and Device Memory Range Pin
eddy5115-Aug-09 11:49
eddy5115-Aug-09 11:49 
Questionhow can driver be loaded in dynamic? Pin
buffering834-Aug-09 21:22
buffering834-Aug-09 21:22 
AnswerRe: how can driver be loaded in dynamic? Pin
Randor 5-Aug-09 5:23
professional Randor 5-Aug-09 5:23 
Questioni have question about USB Filter Driver~ [modified] Pin
buffering834-Aug-09 8:33
buffering834-Aug-09 8:33 
AnswerRe: i have question about USB Filter Driver~ Pin
Randor 4-Aug-09 10:44
professional Randor 4-Aug-09 10:44 
GeneralRe: i have question about USB Filter Driver~ Pin
buffering834-Aug-09 20:25
buffering834-Aug-09 20:25 
Questionquestion about mouse filter INF Pin
buffering833-Aug-09 6:23
buffering833-Aug-09 6:23 
AnswerRe: question about mouse filter INF Pin
Randor 3-Aug-09 7:09
professional Randor 3-Aug-09 7:09 
GeneralRe: can i ask one more? Pin
buffering833-Aug-09 8:56
buffering833-Aug-09 8:56 
GeneralRe: can i ask one more? Pin
Randor 3-Aug-09 12:46
professional Randor 3-Aug-09 12:46 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.