Solution
To generate digital waveforms you can convert unsigned binary data into a digital waveform data type (WDT) using the
niHSDIO Convert Binary to WDT VI . It is also possible to convert integer numbers into digital data, then convert the digital data into WDTs shown in the picutes below.
You can either save the HWS Waveform Data in a
Hierarchical Waveform Storage Data File (.hws) file or write the HWS Waveform data on a HSDIO device.
Note: This images are LabVIEW snippets, which includes LabVIEW code that you can reuse in your project. To use a snippet, right-click the image, save it to your computer, and drag the file onto your LabVIEW diagram.
To set a frequency or a data rate of your waveform, write a value into the dt input of the Build Waveform VI and make sure that the Use rate from waveform parameter is set to True.