06-07-2024 10:36 AM
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.
This is the probe at the output cluster of this function VI
This is what I also see in FPGA
This is quite weird since it has never happened for me in such an implementation. Any help would be greatly appreciated.
Solved! Go to Solution.
06-07-2024 10:50 AM
Hi,
Can you please attach your VI? Please save it for 2019.
06-07-2024 11:02 AM
RT Main runs in real time to send data to FPGA running on cRIO chassis
06-07-2024 11:20 AM
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:
06-07-2024 11:32 AM
I checked the Data Configuration +-32,12, same as other instances.
Also, created input cluster as suggested, however it doesn't solve it yet.
06-07-2024 11:39 AM
Could you attach the FPGA VI in question as well? Saved for 2019.
06-07-2024 11:43 AM
Here's the FPGA and global variable files.
06-07-2024 12:36 PM - edited 06-07-2024 12:44 PM
So, I deleted the last 0 element from your PI array and it worked okay after that:
Edit:
Before:
After:
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.