LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Type of wires and feedback node

Solved!
Go to solution

I need to run the following code in LabView FPGA, hence I need to use FXP.

 

Everything works fine and stays at FXP until I insert the feedback node. Then the data type flips to double and it can not run on the FPGA any more:feedback node and types.PNG

How can I force all the internal wires to be FXP?

 

Thanks a lot, 

Michael

 

0 Kudos
Message 1 of 10
(4,714 Views)

It would be much easier to help debugging a VI instead of a picture.

 

Are all of the FXP controls, indicators, and constants set to the same configuration?


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 2 of 10
(4,706 Views)

It might have to do with the order that wires were connected to the feedback node.

Try disconnecting the wire that goes from the output of the Subract to the right side of the feedback node;

then reconnect it.

 

"If you weren't supposed to push it, it wouldn't be a button."
0 Kudos
Message 3 of 10
(4,688 Views)

I tried this. And it all Looks good, until I "Close the Loop" via the Feedback node. Then it swiches to double.

0 Kudos
Message 4 of 10
(4,685 Views)

Good Point and thanks for considering...

I dont know how to edit the original post, so I append here as a reply.

0 Kudos
Message 5 of 10
(4,684 Views)

I was able to get it to play nice by adding a to fixed point after the feedback node ¯\_(ツ)_/¯

 

Can you do that in FPGA land?

0 Kudos
Message 6 of 10
(4,662 Views)

No it is still not working, because the wire section between the Feedback node and the "to fixed-Point" is displayed as double, which is not allowed in FPGA land...

0 Kudos
Message 7 of 10
(4,655 Views)
Solution
Accepted by Michael2018

Did you wire the fixed point type?

 

fixed point feedback.JPG

0 Kudos
Message 8 of 10
(4,650 Views)

Awesome, I think I tried every Permutation, but failed to add the constant to the fxp converter.

Thanks!

0 Kudos
Message 9 of 10
(4,648 Views)

Especially with FXP, it is not advisable to have all these diagram constant floating around, it makes things much harder to maintain, e.g. if you would change FXP type. (Herding cats comes to mind :D)

 

I would just source all the types from the same place instead. (... And if the FN should be initialized with zero, just change accordingly).

 

FXP.png

 

(And yes, type propagation sometimes fails, so there is probably a small bug somewhere)

0 Kudos
Message 10 of 10
(4,631 Views)