LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I create and sample and hold circuit in Labview?

Solved!
Go to solution

Henrik, THIS is the one I meant to reply to.  I'm not sure what I did wrong.  I need it to be Friday though.  My brain usually doesn't shut down this early in the week!

0 Kudos
Message 11 of 12
(290 Views)

Oh.. after looking at my old code ....

So, I made some simplifications of a multiplexed input.

You define a samplerate SR, now for each channel 12 more 'subsamples' are calculated (so the simulation has a samplerate SR*12*<No of channels>) 

during one nominal SR duration all channels are succesiv sampled , beginning with a switch delay (switch charge ingnored) of one subsample, 10 subsample while the capacitor of the S&H is charged from its current state to the value actual channel value following a RC time constant. The C is the C from the S&H and the R is build by the MUX resistance and the output impedance of the source. (all the same in my sim.. still room for improvements ;), so I simply used one RC timeconstant for all channels) , during the last remaining subsample the value stored.

 

So one can see the settletime error and crosstalk due to the remaining charge in S&H capacitor  and the source impedance   and the different phase delays of the channels due to the muxing

 

 

 

Greetings from Germany
Henrik

LV since v3.1

“ground” is a convenient fantasy

'˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'


0 Kudos
Message 12 of 12
(240 Views)