Click here to Skip to main content
16,011,120 members
Home / Discussions / C#
   

C#

 
GeneralRe: Can we create a new browser? Pin
coding freaks10-Mar-10 17:44
coding freaks10-Mar-10 17:44 
GeneralRe: Can we create a new browser? Pin
Not Active10-Mar-10 17:53
mentorNot Active10-Mar-10 17:53 
GeneralRe: Can we create a new browser? Pin
coding freaks10-Mar-10 19:44
coding freaks10-Mar-10 19:44 
AnswerRe: Can we create a new browser? Pin
AspDotNetDev10-Mar-10 21:06
protectorAspDotNetDev10-Mar-10 21:06 
GeneralRe: Can we create a new browser? Pin
coding freaks11-Mar-10 4:02
coding freaks11-Mar-10 4:02 
GeneralRe: Can we create a new browser? Pin
AspDotNetDev11-Mar-10 9:19
protectorAspDotNetDev11-Mar-10 9:19 
QuestionHow can I control sampling rate from C#, i.e of times I read a variable in a sec Pin
longnights10-Mar-10 16:12
longnights10-Mar-10 16:12 
AnswerRe: How can I control sampling rate from C#, i.e of times I read a variable in a sec Pin
Luc Pattyn10-Mar-10 16:27
sitebuilderLuc Pattyn10-Mar-10 16:27 
Three ways in C#:

1. you can use a timer to get an event at some rather low frequency (well below 1 kHz); it wouldn't be very reliable, there would be some jitter (you might want to read my timers article).

2. you can choose a realtime thread priority, and cause a busy loop to monopolize one CPU core to read a parallel pin at high frequency (hundreds of kHz); the exact frequency would depend on the number of instructions in your loop and your CPU frequency.

3. you can provide an external clock, then choose a realtime thread priority, and cause a busy loop to monopolize one CPU core to read a parallel pin at high frequency (hundreds of kHz). By waiting on the external clock, your code would be independent of the exact instructions and your CPU frequency.

Other ways would include writing a specialized driver (not in C# though).

None of the above is likely to be acceptable as far as behavior and results quality go. If you want to create say an oscilloscope, you need more external hardware, including some memory, so the communication doesn't have to be real-time at all.

Smile | :)
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]

I only read code that is properly formatted, adding PRE tags is the easiest way to obtain that.

QuestionHow C# should communicate with access db file ? Pin
biscoito10-Mar-10 13:04
biscoito10-Mar-10 13:04 
AnswerRe: How C# should communicate with access db file ? Pin
Not Active10-Mar-10 15:17
mentorNot Active10-Mar-10 15:17 
GeneralRe: How C# should communicate with access db file ? Pin
coding freaks10-Mar-10 16:17
coding freaks10-Mar-10 16:17 
GeneralRe: How C# should communicate with access db file ? Pin
Luc Pattyn10-Mar-10 16:29
sitebuilderLuc Pattyn10-Mar-10 16:29 
GeneralRe: How C# should communicate with access db file ? Pin
Not Active10-Mar-10 16:38
mentorNot Active10-Mar-10 16:38 
GeneralRe: How C# should communicate with access db file ? Pin
coding freaks10-Mar-10 16:42
coding freaks10-Mar-10 16:42 
GeneralRe: How C# should communicate with access db file ? Pin
Not Active10-Mar-10 16:46
mentorNot Active10-Mar-10 16:46 
GeneralRe: How C# should communicate with access db file ? Pin
coding freaks10-Mar-10 16:52
coding freaks10-Mar-10 16:52 
GeneralRe: How C# should communicate with access db file ? Pin
Not Active10-Mar-10 16:57
mentorNot Active10-Mar-10 16:57 
GeneralRe: How C# should communicate with access db file ? Pin
coding freaks10-Mar-10 16:59
coding freaks10-Mar-10 16:59 
GeneralRe: How C# should communicate with access db file ? Pin
coding freaks10-Mar-10 17:17
coding freaks10-Mar-10 17:17 
GeneralRe: How C# should communicate with access db file ? Pin
Not Active10-Mar-10 17:30
mentorNot Active10-Mar-10 17:30 
GeneralRe: How C# should communicate with access db file ? Pin
coding freaks10-Mar-10 19:58
coding freaks10-Mar-10 19:58 
GeneralRe: How C# should communicate with access db file ? Pin
Dave Kreskowiak10-Mar-10 17:56
mveDave Kreskowiak10-Mar-10 17:56 
GeneralRe: How C# should communicate with access db file ? Pin
coding freaks10-Mar-10 20:01
coding freaks10-Mar-10 20:01 
GeneralRe: How C# should communicate with access db file ? Pin
Dave Kreskowiak10-Mar-10 17:42
mveDave Kreskowiak10-Mar-10 17:42 
GeneralRe: How C# should communicate with access db file ? Pin
coding freaks10-Mar-10 20:02
coding freaks10-Mar-10 20:02 

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.