LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to generate signal using NI - HSDIO?

Solved!
Go to solution

HI,

 

I need to create two different square pulse signals. I don't know how to set their frequencies, number of cycles, and PRFs using NI-HSDIO.

 

Thank you!!

0 Kudos
Message 1 of 4
(3,653 Views)

On the Labview top menu bar, click on Help - Find Examples.  On the NI Example FInder, click on Search tab.  Enter HSDIO in the Enter keyword(s) box.  Press Enter.  You will see a whole lot of examples.  On my system, 69 examples show up.  Pick one that closely matches what you want to do and study the vi.

This should be your first coarse of action instead of asking questions here.  Once you start writing your vi, then you can post it here and ask for help.

 

- tbob

Inventor of the WORM Global
0 Kudos
Message 2 of 4
(3,641 Views)
I already looked at the examples. I just don't understand how to create square pulse using HSDIO. I am not sure if I need to generate a square pulse signal and control all the parameters using HSDIO or HSDIO already had a signal I just need to control certain parameters.
0 Kudos
Message 3 of 4
(3,624 Views)
Solution
Accepted by Gordooo3

You need to create a set of data to send to the HSDIO.  It only generates what you send to it.  Let us assume you want to output a square wave on just one channel.  Set up the HSDIO for the proper channel, timing, trigger, etc.  Look at the function HSDIO Write Named Waveform.  It says named waveform, but you can use the polymorphic selector (the box underneath the function) to select other data types besides waveform, namely a 1D array of numeric (U32, U16, etc).  You have to create a data arry that would resemble a square wave.  Or you could use the waveform input and create a square waveform. 

 

The easiest is the waveform because Labview has waveform generator functions available.  See the picture below.  If you wanted to use the 1D array, you would build an array or alternating 1s and 0s to produce a square wave. The picture below is just partial code.  you have to add the rest of the HSDIO setup functions.

 

Wfm-HSDIO.png

 

 

- tbob

Inventor of the WORM Global
0 Kudos
Message 4 of 4
(3,614 Views)