From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, 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: 

Data type error

Solved!
Go to solution

Hi,

 

I am writing a transfer function in labview in the attached file. 

However, it yields error: Type not supported in current target.

Could you tell me the solution?

 

Thanks for your help.

labview.jpg

0 Kudos
Message 1 of 8
(1,146 Views)

Hi bpsf,

 


@bpsf wrote:

I am writing a transfer function in labview in the attached file. 

However, it yields error: Type not supported in current target.

Could you tell me the solution?


Well, if you would tell us the kind of target you are trying to use - but that information detail is missing from your post…

 

I guess you should not use DBL values in a FPGA VI. (It's an educated guess…)

 

Is there a specific reason to multiply by "1"? Is there a specific reason to try that operation twice?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 8
(1,143 Views)

Thank you GerdW, for your reply.

 

Yes, I would like to use it in FPGA and timing loop.

There is no reason to multiply by 1 twice. These values are for being changed to other values.

Is there any way to avoid using DBL values or to convert it to FXP?

 

Thanks,

0 Kudos
Message 3 of 8
(1,120 Views)

Hi bpsf,

 


@bpsf wrote:

Is there any way to avoid using DBL values or to convert it to FXP?


Yes, there's a way!

Configure the math operations to output FXP values!

 


@bpsf wrote:

I would like to use it in FPGA and timing loop.


You want to place the code inside a SCTL?

Then you might need to use the HighThroughput math functions…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 8
(1,115 Views)

even when I placed a converter, feedback node yields DBL and shows error.

I appreciate it if you could tell me the specific way.

Thanks,

labview2.jpg

0 Kudos
Message 5 of 8
(1,102 Views)

Hi bpsf,

 

when you define all math function outputs correctly then no orange DBL wire appears:

(Infact I only needed to define the output datatype of one single math function…)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 6 of 8
(1,094 Views)
Solution
Accepted by topic author bpsf

Thank you GerdW, for all your kindness.

 

The problem was representation of adder and multipliers. 

Anyway, Thank you very much!

labview3.jpg

0 Kudos
Message 7 of 8
(1,089 Views)

Hi bpsf,

 


@bpsf wrote:

The problem was representation of adder and multipliers. 


Note: I used the ToFXP node to convert the "input" to the same FXP representation as "f1" and you copied this behaviour. This might not be the best solution as it could be reasonable to use different FXP settings for f1 and input…

 

Another note: so the marked solution is your copy of my example code?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 8 of 8
(1,063 Views)