06-07-2010 04:10 PM
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!!
Solved! Go to Solution.
06-07-2010 05:11 PM
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.
06-08-2010 07:32 AM
06-08-2010 12:10 PM
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.