I have added the reference NationalInstruments.common.dll and NationalInstruments.daqmx.dll in the project.
"Imports NationalInstruments.daqmx" in the code.
the message shows AnalogWaveform is not defined.The solution is Imports NationalInstruments or use NationalInstruments.AnalogWaveform instead of AnalogWaveform.
But in the example code,the error will not happen.