Sample code for what? If you are using Measurement Studio, there are examples in the MeasurementStudio\vb\examples directory. There are many VB examples with the Measurement Studio tools on Developer's Zone (http://zone.ni.com) in the Resource Library. You can get tons of general VB examples from MSDN at http://msdn.microsoft.com.
Best Regards,
Chris Matthews
Measurement Studio Support Manager