LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Question regarding the conversion of data types

Hello There,

 

I'm sure there's a simple answer to this but i'm having an extrordinary amount of trouble discovering it...

 

Essentially what im attempting to do is read a number of analogue inputs (usually 4), apply a band pass filter to them all and then save the time base waveform data AND frequency spectrum to a measurment file.

 

The trouble is after i've applied the filter, i have two different data types which i need to join together to then feed into the "write to measurment file" module.

 

I've tried a few things to convert the data type to match but have been on the whole unsucsessful.

 

Is there a simple solution to this which i've overlooked?

 

I've attached a picture of the VI block diagram to illustrate the problem - i've left thespectral measurment block disconnected from the write to measurment file module to show the different data types.

0 Kudos
Message 1 of 3
(2,835 Views)

More specifically,

 

The error message i recieve is:

 

"you have connected two terminals of different types.  The type of source is 1D array of cluster of 3 elements. The type of sink is Dynamic Data"

 

Hope this is clearer.

 

James

0 Kudos
Message 2 of 3
(2,812 Views)

James,

 I don't have a direct answer for you because it depends how you have those express vi's configured. Basically what you need to do is convert the output data of those vi's to something the 'to Dynamic Data Type' (located at Functions pallette Express>>Sig Manip>>To DDT) vi can understand before you feed it into the 'Write to Measurement File .vi'.

 

Hope this helps.

Now Using LabVIEW 2019SP1 and TestStand 2019
0 Kudos
Message 3 of 3
(2,785 Views)