From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

convert serial data into analog waveform

Hi,

I'm reading in some analog signals with labview 8.5 from some sensors through an ADconverter which then sends the serial data through a virtual COM port into labview. I'm using the VISA drivers to get this done. Works pretty good, but now I'd like to perform some signal processing on this data. I want to do some filtering and measuring on my signals such as phase, amplitude, frequency. Problem is most signal processing vi's are suitable for analog or digital waveforms, while I'm dealing with unsigned word. So how do I convert this unsigned word signal into an analog waveform signal? I figured out I need some sort of timing information, corresponding with every unsigned word I acquire. How do I add this timing info to the unsigned word to assemble the analog signal I need? Or am I missing a clue here? I'm pretty new to labview...

 

best regards

Maarten

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

Look at Build Waveform on the Waveform palette.  It bundles together an array of data (which you would have built from your incoming data), a T0 timestamp of the starting time, and a dT which is the time period between samples.  The result is the waveform datatype cluster.

0 Kudos
Message 2 of 4
(3,025 Views)

thanks for the help!

I tried the 'build waveform' already, but I couldn't figure out how to assemble the data array and what timestamp to use?

 

best regards

Maarten

 

 

0 Kudos
Message 3 of 4
(3,008 Views)

Use build array to build new elements onto the end of the array and store it in a shift register from iteration to iteration.

 

For t0, use the time when you take your first sample.

0 Kudos
Message 4 of 4
(2,995 Views)