We need a way to simply reinterpret the bits in our FPGAs. I currently have a situation where I need to change my SGL values into U32 for the sake of sending data up to the host. Currently, the only way is to make an IP node. That is just silly. We should be able to use the Type Cast simply for the purpose of reinterpreting the bits.
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
I will have to try that, but when I looked at it before, the To Boolean Array coerced my SGL. I was left to assume this would drop my decimal points and just leave my rounded off integer value.
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
I will have to look into this, but try typecasting the SGL as FXP and then use Boolean array to number to typecast to U32.
I will try and find where I had to accomplish this, very long time ago though.
I think that is the trick though, would be so much nicer to directly typecast though. Not sure why the compiler cannot figure it out given they implemented the single already.
I'm not sure about this, FPGA space is precious, and high-level implementations are often inefficient, this would consume FPGA space at the expense of coding convenience.
As my main concern in coding FPGA is fabric space, I prefer more low-level tools than high-level abstraction tools.
They are out there. I would have to search to find it again. That is what I ended up doing. But the issue with using IP nodes is you have to recompile them when you go to a new LabVIEW version and/or change hardware. The type cast should just happen natively.
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