01-09-2007 09:41 AM
Dear friends,
I am stuck with the task of converting a digital waveform (16 bit values) into
the following waveform:
each sample of the original waveform should be represented by a sequence of
bits (or H and L analog values) in the second waveform,
the duration of the bit sequence should be half (in general arbitrary fraction)
of the sample clock period of the original waveform,
the bit sequence should be padded by zeros so that the total duration of the
bit sequence and the pad equals to the sample clock period of the first
waveform.
I tried to represent these two waveforms in the picture attached.
It would be really great if someone could give me hints/suggestions to this
problem!
Thanks in advance!
01-10-2007 05:01 PM
01-11-2007 09:54 AM
Hi SamboNI,
Thanks for your reply!
I have couple of notes:
I tried to implement your instructions but the LabView gives error message
(please see the screenshot attached).
I guess there should be "Boolean to (1,0)" VI between "Number to
Boolean Array" and "Build Array" VIs (?)
The problem I have is a bit more complex:
I have a digital waveform (16 bit integers). I need to transform the waveform
in the easiest and fastest way into the following form:
Each sample of the original waveform (16 bit integer number, i.e. 5) should be
represented by a sequence of 0s and 1s corresponding to the bit sequence of that number (0000000000000101 for 5) padded
by a sequence of zeros (i.e. 00000) in the final waveform. I will use the
final waveform to drive single line of the 6534 board instead of 16 lines of
this bopard in the case of the original waveform.
More generally:
I need to realize communication protocol with the AD5541
Digital-to Analog converter from Analog Devices (
http://www.analog.com/en/prod/0%2C2877%2CAD5541%2C00.html ) using 6534 NI
board. Therefore I need also build SCLK and CS waveforms and synchronize
them with the DATA waveform I was talking above. Is there a way to do this?
By the way 🙂 - do LabView have standard means to communicate
with devices like AD5541? Does it require a special software module and/or
hardware board?
Thanks in advance!
01-12-2007
05:00 PM
- last edited on
02-25-2025
01:01 PM
by
Content Cleaner
Hi there ampm,
The reason you have a broken arrow there is that the variable being wired into the initialize array is not of type boolean. You should put down a false constant from the boolean palette for that input terminal for "element" if you want to make an array of 0s for padding.
As far as communicating with your device, you could probably use one of the shipping examples such as Cont Write Dig Chan-Burst.vi, Available in the example finder under Hardware Input and Output->DAQmx->Digital Generation. But other than that, I'm not sure of any standards, other than SPI.....
I see that that device uses SPI, so you could potentially use the USB-8451
01-12-2007 05:52 PM
01-17-2007 02:02 PM
01-19-2007 03:58 PM
01-22-2007 06:50 PM
01-23-2007 07:09 AM