Click here to Skip to main content
15,886,919 members
Home / Discussions / C#
   

C#

 
Questionlicense for the installation Pin
fazadef6-May-11 22:14
fazadef6-May-11 22:14 
AnswerRe: license for the installation Pin
ambarishtv7-May-11 2:51
ambarishtv7-May-11 2:51 
GeneralRe: license for the installation Pin
Pravin Patil, Mumbai8-May-11 21:59
Pravin Patil, Mumbai8-May-11 21:59 
GeneralRe: license for the installation Pin
ambarishtv8-May-11 22:47
ambarishtv8-May-11 22:47 
AnswerRe: license for the installation Pin
Pravin Patil, Mumbai8-May-11 21:59
Pravin Patil, Mumbai8-May-11 21:59 
GeneralRe: license for the installation Pin
ambarishtv8-May-11 22:35
ambarishtv8-May-11 22:35 
Questioncontrolling the AND gate with c# Pin
aeman6-May-11 22:11
aeman6-May-11 22:11 
AnswerRe: controlling the AND gate with c# Pin
Luc Pattyn7-May-11 2:18
sitebuilderLuc Pattyn7-May-11 2:18 
No, the details of the question aren't clear at all. This is what I can tell you:
- use SerialPort class to open up the right serial port;
- do not use the data lines (transmit, receive), use some of the control lines;
- available inputs are CD (CDHolding), CTS (CtsHolding), DSR (DsrHolding);
- available outputs are DTR (DtrEnable), RTS (RtsEnable);
- you can simply get or set their state by accessing the corresponding properties (mentioned above, within parentheses).

BTW1: for an LED you would need a series resistor, limiting the current to some 10 to 20 mA. Start with 330 or 470 ohm assuming the power supply voltage is 3.3 or 5V.

BTW2: assuming you're talking about some TTL or CMOS AND gate, you need an external voltage as well; however you probably don't really need a gate at all, and could take advantage of RS232C ports typically being able to sink and source 10mA (and more) on their control pins directly. As RS232C voltages may go up to 15V, you should start with a 1K ohm resistor here.

Smile | :)
Luc Pattyn [Forum Guidelines] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.

AnswerRe: controlling the AND gate with c# Pin
PIEBALDconsult7-May-11 3:31
mvePIEBALDconsult7-May-11 3:31 
GeneralRe: controlling the AND gate with c# Pin
aeman7-May-11 4:15
aeman7-May-11 4:15 
GeneralRe: controlling the AND gate with c# Pin
PIEBALDconsult7-May-11 4:53
mvePIEBALDconsult7-May-11 4:53 
GeneralRe: controlling the AND gate with c# Pin
Luc Pattyn7-May-11 5:34
sitebuilderLuc Pattyn7-May-11 5:34 
GeneralRe: controlling the AND gate with c# Pin
aeman7-May-11 6:16
aeman7-May-11 6:16 
GeneralRe: controlling the AND gate with c# Pin
PIEBALDconsult7-May-11 19:35
mvePIEBALDconsult7-May-11 19:35 
GeneralRe: controlling the AND gate with c# Pin
shivamkalra7-May-11 7:13
shivamkalra7-May-11 7:13 
GeneralRe: controlling the AND gate with c# Pin
Luc Pattyn7-May-11 4:27
sitebuilderLuc Pattyn7-May-11 4:27 
GeneralRe: controlling the AND gate with c# Pin
PIEBALDconsult7-May-11 4:56
mvePIEBALDconsult7-May-11 4:56 
GeneralRe: controlling the AND gate with c# Pin
shivamkalra7-May-11 7:14
shivamkalra7-May-11 7:14 
QuestionGet name of system folder [using C#] Pin
shivamkalra6-May-11 18:51
shivamkalra6-May-11 18:51 
AnswerRe: Get name of system folder [using C#] Pin
Luc Pattyn6-May-11 19:07
sitebuilderLuc Pattyn6-May-11 19:07 
GeneralRe: Get name of system folder [using C#] Pin
DaveAuld6-May-11 21:00
professionalDaveAuld6-May-11 21:00 
GeneralRe: Get name of system folder [using C#] Pin
DaveyM696-May-11 21:07
professionalDaveyM696-May-11 21:07 
GeneralRe: Get name of system folder [using C#] Pin
DaveAuld6-May-11 21:10
professionalDaveAuld6-May-11 21:10 
GeneralRe: Get name of system folder [using C#] Pin
DaveyM696-May-11 21:27
professionalDaveyM696-May-11 21:27 
GeneralRe: Get name of system folder [using C#] Pin
shivamkalra7-May-11 5:22
shivamkalra7-May-11 5:22 

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.