I would suggest you make your SWITCH on and off voltages within you operating range such as 2V and 3V not 0V and 5V. Also, check the ON and OFF resistances of the switch - by default they are 1 ohm and 1M ohm which may not be what you want.
Also, I am not sure what you are expecting. You have no discharge path so the capacitor will charge up to 5V and stay there.
I would suggest you make your SWITCH on and off voltages within you operating range such as 2V and 3V not 0V and 5V. Also, check the ON and OFF resistances of the switch - by default they are 1 ohm and 1M ohm which may not be what you want.
Also, I am not sure what you are expecting. You have no discharge path so the capacitor will charge up to 5V and stay there.
how to make the switch on off..can you give me an example of circuit how to switch off and on... i just want to see the rise of voltage when in discharge..acctually i want to simulate the circuit below..but i can not simulate it..
To duplicate that you need two switches in order to create a changeover switch. Set the two switched with opposite threshold voltages so one is on when the other is off. Alternatively you could use two different clocks, which would be necessary if you wanted to ensure they didn't overlap.
To duplicate that you need two switches in order to create a changeover switch. Set the two switched with opposite threshold voltages so one is on when the other is off. Alternatively you could use two different clocks, which would be necessary if you wanted to ensure they didn't overlap.
The same type of switch that you used, I think. One has the parameters "RON=1 ROFF=1Meg VON=3 VOFF=2", the other "RON=1 ROFF=1Meg VON=2 VOFF=3" so that one is ON when the other is OFF.
Your circuit is incorrect. The switch needs to connect between the input (1k resistor) and and the first capacitor. You have the switch connected to ground instead. Rotate your switch 90 degrees anticlockwise. The same applies to your second switch.
The switch has 4 connections. Two are for the control signal and two are for the "switch" itself. You need to connect the switch between the input and the output - R1 and C1 in your circuit. However, you have connected the switch between C1 and ground. At the moment you have connected the input signal from R1 to the control signal input, not the switch.
Think of it as a relay. The control signal is the relay coil, the switch is the relay contacts. You have the coil between the input and the control signal V2. The coil needs to go between the control signal and ground.
What do you see? A fixed voltage the same as the DC input voltage? That is what I would expect. With no discharge path for the capacitors, once they are charged they stay charged. The "leakage" resistance through the switches will be enough for the simulator to decide that the initial equilibrium state ("DC operating point") is with the capacitors charged. You could "skip the DC operating point" - SKIPBP I think Pspice calls it.