Click here to Skip to main content
15,887,135 members
Home / Discussions / C#
   

C#

 
AnswerRe: Using .Equals on a generic type constrained by struct. Pin
Not Active1-Nov-09 17:08
mentorNot Active1-Nov-09 17:08 
AnswerRe: Using .Equals on a generic type constrained by struct. Pin
Christian Graus1-Nov-09 17:57
protectorChristian Graus1-Nov-09 17:57 
GeneralRe: Using .Equals on a generic type constrained by struct. Pin
CaptainSeeSharp1-Nov-09 18:07
CaptainSeeSharp1-Nov-09 18:07 
GeneralRe: Using .Equals on a generic type constrained by struct. Pin
Christian Graus1-Nov-09 18:39
protectorChristian Graus1-Nov-09 18:39 
AnswerRe: Using .Equals on a generic type constrained by struct. Pin
N a v a n e e t h1-Nov-09 22:33
N a v a n e e t h1-Nov-09 22:33 
QuestionZedGraph date help Pin
Aljaz1111-Nov-09 12:46
Aljaz1111-Nov-09 12:46 
AnswerRe: ZedGraph date help Pin
Christian Graus1-Nov-09 13:01
protectorChristian Graus1-Nov-09 13:01 
Questionled to rs232 [modified] Pin
_Q12_1-Nov-09 12:35
_Q12_1-Nov-09 12:35 
I have a problem. BIG one.
I have a LED connected to pin 3 and 5 at serial port (rs232).
Here is the code I make, who blink that led at an interval from a timer.
private  SerialPort o_port = new SerialPort("COM3", 9600, Parity.Odd, 8, StopBits.One);

private void button1_Click(object sender, EventArgs e)
        {
           timer1.Enabled = true;
        }

         private void timer1_Tick(object sender, EventArgs e)
        {
//when this timer tick = 1000ms, my LED stay ***OFF*** 1s and it turn on 
//for just 5ms....and the cycle repeat at every tick.
            o_port.WriteLine("transmit data");
        }

private void numericUpDown1_ValueChanged(object sender, EventArgs e)
        {
//this is for changing the speed for my blinking LED.
            timer1.Interval = (int) numericUpDown1.Value;
            labelInterval.Text = timer1.Interval.ToString();
        }


What I want, is a modality to manipulate the ON state for the LED. In other words the sending data to pin 3.
I must link the "transmit data" to a timer event, and to keep it transmit for the duration of that timer event.
How to do that? hmmm.
Is there a special property who can be set to transmit a loop of data until some time is passed? Like flooding?
Thanks.
~Teodor~

modified on Sunday, November 1, 2009 6:41 PM

AnswerRe: led to rs232 Pin
Christian Graus1-Nov-09 12:42
protectorChristian Graus1-Nov-09 12:42 
GeneralRe: led to rs232 Pin
_Q12_1-Nov-09 12:56
_Q12_1-Nov-09 12:56 
GeneralRe: led to rs232 Pin
Christian Graus1-Nov-09 13:02
protectorChristian Graus1-Nov-09 13:02 
GeneralRe: led to rs232 Pin
_Q12_1-Nov-09 13:10
_Q12_1-Nov-09 13:10 
GeneralRe: led to rs232 Pin
Christian Graus1-Nov-09 13:33
protectorChristian Graus1-Nov-09 13:33 
AnswerRe: led to rs232 Pin
Alan N1-Nov-09 13:25
Alan N1-Nov-09 13:25 
AnswerRe: led to rs232 Pin
Luc Pattyn1-Nov-09 13:28
sitebuilderLuc Pattyn1-Nov-09 13:28 
GeneralRe: led to rs232 Pin
_Q12_1-Nov-09 13:53
_Q12_1-Nov-09 13:53 
GeneralRe: led to rs232 Pin
Luc Pattyn1-Nov-09 14:15
sitebuilderLuc Pattyn1-Nov-09 14:15 
GeneralRe: led to rs232 Pin
_Q12_1-Nov-09 14:43
_Q12_1-Nov-09 14:43 
GeneralRe: led to rs232 Pin
_Q12_1-Nov-09 16:18
_Q12_1-Nov-09 16:18 
Questionmain form is not activated Pin
Maddie from Dartford1-Nov-09 12:05
Maddie from Dartford1-Nov-09 12:05 
AnswerRe: main form is not activated Pin
Christian Graus1-Nov-09 12:07
protectorChristian Graus1-Nov-09 12:07 
QuestionMaking custom control subscribe to external event ? Need Approach advise... Pin
idan_bismut1-Nov-09 9:30
idan_bismut1-Nov-09 9:30 
AnswerRe: Making custom control subscribe to external event ? Need Approach advise... Pin
Christian Graus1-Nov-09 9:42
protectorChristian Graus1-Nov-09 9:42 
AnswerRe: Making custom control subscribe to external event ? Need Approach advise... Pin
DaveyM691-Nov-09 10:52
professionalDaveyM691-Nov-09 10:52 
Questionhow to create a chart Pin
h.pordel1-Nov-09 9:20
h.pordel1-Nov-09 9:20 

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.