Hello traceabc,
What kind of hardware are you using? From my understanding, "Sample and Hold" is done in hardware, like in the circuitry of an ADC. So are you trying to mimick the behavior of this circuit via software, or are you just trying to gather samples from your device? As far as reference materials go, the examples available under the LabVIEW example finder are always a great place to start. From LabVIEW, if you go to "Help -> Find Examples" and then "Hardware Input and Output -> DAQmx", you should be able to find a good starting place for your application.
Cheers!
TJ G