From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, 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: 

1d array of double complex to 1d array of word

Solved!
Go to solution

I am receiving an error message: "The type of the source is 1D array of double complex [~15 digit precision]. The type of the sink is 1D array of word [16-bit integer (-32768 to 32767)]." 

 

How can I convert 1-D array of double complex to 1-D array of word. 

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

Hi Joseph,

 

the main question is: Why do you want to convert an 1D array of CDB to an array of I16? Where do you get this error message?

Where does the CDB come from and where do you need those I16 values?

 

How to you want to convert one to the other? Does it make sense to convert "0.1234 + i 0.5678" to an I16 of "0" or "1"?

So what's the point of this conversion at all?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 4
(3,612 Views)

I need to scale the input signal (cluster of three elements) to DAC codes for NI PXI. That's why I need some solution for this problem. Can you guide me what is the best way to handle it. Please see attached screen shot also.

 

u1.jpg

0 Kudos
Message 3 of 4
(3,600 Views)
Solution
Accepted by topic author josephkirmani

Hi Joseph,

 

what is the best way to handle it

I don't claim to show the BEST way:

check.png

As mentioned before: you need to define HOW you want to convert CDB data to I16…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 4 of 4
(3,579 Views)