07-05-2011 04:57 AM
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 below
Solved! Go to Solution.
07-05-2011 05:08 AM - edited 07-05-2011 05:09 AM
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.
07-05-2011 05:13 AM
Thanks works prefectly
01-02-2013 11:09 AM
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.
11-17-2015 10:35 AM
Could you please help me with my VI, I am trying to do a loop but the FPGA gives me the error!
Thanks
11-17-2015 11:12 AM
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.
11-17-2015 01:38 PM
My friend, I changed based on your guides but it is not working can you plesae see the VI
11-17-2015 01:52 PM
Define "it is not working". The VI won't compile? Your outputs are wrong?
11-17-2015 02:08 PM
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!!!
11-17-2015 02:17 PM
The last update does not have any DBL. When I put the VI into an FPGA project, it works just fine.