From 11:00 PM CST Friday, Feb 14th - 6:30 PM CST Saturday, Feb 15th, 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: 

Conversion of waveform(DBL) to 1D array of double

Solved!
Go to solution

Helo 

I got the samples of I and Q arrays in Waveform (DBL). Now i want to convert I and Q in to complex form using Re/Im to Complex in the complex palette. When I connected the arrays directly to the block, its giving me a connection error which says that

"You have connected two terminals of different types.

The type of the source is Waveform(DBL)

The type of the sink is 1D array of double(64 bit real~15 digit precision) "

How to eliminate this ?

 

I have posted the document showing the problem. 

 

Thanks in advance. 

0 Kudos
Message 1 of 4
(34,605 Views)
Solution
Accepted by topic author venki_tav
Use the proper function to extract the 1D array from the waveform datatype. The waveform data type consists of a starting time, a dt, and an array of values. To get the array of values you want to use the Get Waveform Components function in the Waveform palette.
Message Edited by smercurio_fc on 11-11-2008 02:15 PM
Message 2 of 4
(34,601 Views)

First off, I'm new to posting in these forums, so apologies if I should have created a new thread instead of replying to this old thread.

 

I've run into this situation, too. The code I'm using is based on the Producer-Consumer loop example posted here.

 

Currently, only the signals from DAQmx are being passed to the Spreadsheet VI in the Consumer Loop whereas I want both the timestamp and signals. When I have the waveform wire connected to the Get Waveform Components function, I get a broken wire saying it's not of the same data type. So how would I be able to get the timestamp/t0?

 

0 Kudos
Message 3 of 4
(16,775 Views)

You have an array of waveforms, so if all have the same time information, just insert an "index array" before getting "t0".

Message 4 of 4
(16,765 Views)