LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Type not supported in current target.

Solved!
Go to solution

Hi I am trying to write a simple FPGA program to read in an array and output it one number at a time. But i get errors saying Type not supported in Current Target. What am i doing wrong. my code is belowfpga.png

0 Kudos
Message 1 of 18
(9,437 Views)
Solution
Accepted by zepp2

FPGA does not supporting floating point numbers (like DBL). You'll have to use integers or fixed point numbers.

You're converting the DBL to I16 anyway, so make the array I16.

 

Message 2 of 18
(9,435 Views)

Thanks works prefectly

0 Kudos
Message 3 of 18
(9,429 Views)

Just a quick update to this old thread. LabVIEW 2012 added support for single precision floating point; if that precision is sufficient for your application it may be a better/faster option than converting to fixed point.

0 Kudos
Message 4 of 18
(9,223 Views)

Could you please help me with my VI, I am trying to do a loop but the FPGA gives me the error!

 

Thanks

0 Kudos
Message 5 of 18
(8,374 Views)

Double Precision Floating Point (DBL) numbers are not allowed in the FPGA.  For your Divide By 2 inside of the loop, I recommend using a Logical Shift with a y value of -1 (shift to the right 1 bit, which is a very cheap way to do a divide by 2 of an integer in FPGA).

 

For the Divide going into AO0, I recommend using Quotient & Remainder instead.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 6 of 18
(8,362 Views)

My friend, I changed based on your guides but it is not working can you plesae see the VI

0 Kudos
Message 7 of 18
(8,345 Views)

Define "it is not working".  The VI won't compile?  Your outputs are wrong?


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 8 of 18
(8,338 Views)

I can not compile since it is saying "Type not supported in current target." the problem is that the loop is generating DBL numbers, I think so!!!

0 Kudos
Message 9 of 18
(8,331 Views)

The last update does not have any DBL.  When I put the VI into an FPGA project, it works just fine.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 10 of 18
(8,325 Views)