Signal Generators

cancel
Showing results for 
Search instead for 
Did you mean: 

how to create a waveform from an array with arbitrary sample rate

Solved!
Go to solution

hi I know that sounds a bit silly,

suppose that I have created a simple array of DBL numbers with a For structure, with size say 16. now I want to create a DBL Waveform with these 16 numbers at an arbitrary sample rate. so if I use 1 Ksample/sec for sample rate, I wanna have a waveform with 16 milliseconds duration.

 

pls help me, I need it too much

TNX

0 Kudos
Message 1 of 2
(6,078 Views)
Solution
Accepted by topic author ehbas

Hello,

 

You need to use the Build Waveform function as listed here: https://www.ni.com/docs/en-US/bundle/labview-api-ref/page/functions/build-waveform.html . You would wire in your array to the Y input and then wire in your sample rate to the dt input.

 

-Zach

0 Kudos
Message 2 of 2
(6,057 Views)