Can you explain more learly what you are trying to do?
LabVIEW is a program which runs on digital computers. It operates on digital values.
If you want to convert some continuous voltage signal to a digital representation, you need some kind of hardware - an electronic circuit - to do that conversion. NI offers a wide variety of A/D conversion devices, software drivers for them, and LabVIEW to control all of those.
I am generating a continuous sinusoid with the waveform generator in Labview. I want to simulate a sample and hold circuit, not actually use separate hardware.
Also both cases of the case structure do the same thing with the boolean: (Flip its state.) That is a Not function and it is moved outside of the case stucture.
(Note, the boolean wire through the case structure may not be necessary. It all depends on whether you want the indicator to change appearance after the sample value is shown. In real life, this would appear to be simultaneous and shouldn't matter. But wiring it through effectively makes the VI behave more like what you have coded up.)
Out of curiosity and for educational reasons I build a simple Sample & Hold simulation for a multiplexed input including the effect of crosstalk due to the S&H cap.
Crosstalk can be seen in the pic on the dark blue Out 4 plot 🙂 and the per channel group delay ...
I was to lasy to add the bit resolution digitizer ....
Have fun 😄