High-Speed Digitizers

cancel
Showing results for 
Search instead for 
Did you mean: 

Coverting a boolean array to a digital waveform

Hello,
 
   I have a 20 bit Boolean array that I need to convert into a digital waveform. Is there a easy way to do that?
 
Regards,
 
Kaspar
Regards,


Kaspar
0 Kudos
Message 1 of 6
(13,652 Views)
In the digital waveform pallette there is a VI named "Boolean Array to Digital.vi" that does what you want.  You can use the pallette search or go to Waveform >> Digital Waveform >> Digital Conversion >> Boolean Array to Digital.vi
 
If you have more digital questions I would suggest posting to either the LabVIEW forum or the Digital I/O forum.
Message 2 of 6
(13,642 Views)
Thanks for getting back to me. ANy future questions will be posted on the Labview forum!
Regards,


Kaspar
0 Kudos
Message 3 of 6
(13,630 Views)

Hello all,

sorry for continuing this "partially off-topic" thread, but I'm encountering a problem on this subject...

Why on earth the "boolean array to digital waveform" needs a 2D array as input? I have a 1D boolean array (example: 1100100000000111), and I need to convert it to a digital waveform in order to use it as input on a DAQmx driver.

Thanks a lot!

Message Edited by xdaf on 12-02-2008 02:13 PM
Message 4 of 6
(13,089 Views)

Hi xdaf,

 

The reason why this VI takes in a 2D array is because this is often used to create digital waveforms with multiple channels and therefore, every row would correspond to data for each channel. To go around this problem, you may simply increase the dimension of your 1D array to a 2D array by feeding it in a Build Array function. Note that although you are increasing it's dimension, you are not adding any new data.

 

 

 

I hope this answers your question.

Message Edited by S_Hong on 12-03-2008 02:03 PM
S_Hong
National Instruments
Applications Engineer
Message 5 of 6
(13,070 Views)
It does, thank you very much.
0 Kudos
Message 6 of 6
(13,060 Views)