LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Discrete FP Transfer Function to FXP

Solved!
Go to solution

Hello, 

 

I am writing transfer function coefficients, creating a bundle and feeding it to the Discrete FP Transfer Function to FXP VI. However, it outputs the FXP Coefficients all as 2048. This doesn't happen in other instances within the RT, through which I send values to FPGA using FIFO. 

 

Any ideas why the coefficients all turn up to be 2048? Here's a screenshot to illustrate what's happening. 

SomeMechatronicGuy_1-1717774436824.png

This is the probe at the output cluster of this function VI

SomeMechatronicGuy_2-1717774509573.png

 

 

This is what I also see in FPGA

SomeMechatronicGuy_0-1717774401655.png

 

This is quite weird since it has never happened for me in such an implementation. Any help would be greatly appreciated. 

 

0 Kudos
Message 1 of 8
(529 Views)

Hi,

 

Can you please attach your VI? Please save it for 2019.

0 Kudos
Message 2 of 8
(514 Views)

RT Main runs in real time to send data to FPGA running on cRIO chassis

0 Kudos
Message 3 of 8
(500 Views)

FGPA VI references came all broken for me as it is missing. But I do see coercion dots. That is what I would suspect first. I would say:

1) Please check the data FXP configuration on the indicator that is showing all 2048s. Compare it with the other instance.

2) Connect Error Wires to VI.
3) Bundle cluster like  this:

 

Bundle.png

0 Kudos
Message 4 of 8
(487 Views)

I checked the Data Configuration +-32,12, same as other instances. 

 

SomeMechatronicGuy_0-1717777927814.png

Also, created input cluster as suggested, however it doesn't solve it yet.

 

0 Kudos
Message 5 of 8
(481 Views)

Could you attach the FPGA VI in question as well? Saved for 2019.

0 Kudos
Message 6 of 8
(475 Views)

Here's the FPGA and global variable files.

Download All
0 Kudos
Message 7 of 8
(471 Views)
Solution
Accepted by topic author SomeMechatronicGuy

So, I deleted the last 0 element from your PI array and it worked okay after that:

Xonmyth_0-1717781802721.png
Edit:

Before:

Xonmyth_0-1717782098943.png


After:

Xonmyth_0-1717781872084.png

I have never used this Discrete FP Transfer Function VI so I do not know the ins and outs of it. But it seems like it was not liking that last "0" value.

 

Message 8 of 8
(420 Views)