LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Most Efficient/Fastest Boolean Bit Packing Methods on RT

Hi GerdW,

 

It is a subVI, so the Booleans are combined into a cluster, to access them from top level VI, and not to have many terminals on the connector pane.

 

Thanks,

Arev

 

CTO | RAFA Solutions

 

Certified-LabVIEW-Embedded-Systems-Developer_rgb.jpgCertified-LabVIEW-Architect_rgb.jpg

0 Kudos
Message 11 of 15
(1,209 Views)

Hi arev,

 

an U8 also requires just one connector in the pane and all bits can be accessed either by boolean operations (AND with mask) or by NumberToBoolArray with IndexArray (a NOP on the FPGA)…

Best regards,
GerdW


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

Actually this thread has started from that point. Indexing array consumes more area on the FPGA, than Rotate operation, as showed my tests. That's why I use Rotate operation to get or insert bits of U8. And out of the subVI I need not the U8, but the separate U8 bits.

 

Thanks,

Arev

 

CTO | RAFA Solutions

 

Certified-LabVIEW-Embedded-Systems-Developer_rgb.jpgCertified-LabVIEW-Architect_rgb.jpg

0 Kudos
Message 13 of 15
(1,193 Views)

Hi arev,

 

which LabVIEW version do you use?

Can you supply metrics for your statement?

 

The documents on NI.com say: NumToBoolArray and IndexArray on a boolean array are "for free"…

 

Best regards,
GerdW


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

Mentioned results are from one of my old projects, which was implemented using LV12. I was using NI sbRIO-9606 as a hardware platform.

 

Unfortunately I can't provide now the metrics, as I haven't saved them. 

 

Thanks,

Arev

 

CTO | RAFA Solutions

 

Certified-LabVIEW-Embedded-Systems-Developer_rgb.jpgCertified-LabVIEW-Architect_rgb.jpg

0 Kudos
Message 15 of 15
(1,157 Views)