取消
显示结果 
搜索替代 
您的意思是: 

Search string array for string subset containing special characters

已解决!
转到解答

@billko wrote:

 

And I forgot that Booleans aren't truly one bit; it actually takes 8 bits to represent each Boolean so thanks for reminding me about that.

It used to be even a 16-bit integer until LabVIEW 4.x. But boolean arrays were packed with 8 boolean values per byte. But that was changed in LabVIEW 5.0 because the packed boolean array was memory conserving but very CPU intense to pack/unpack and index.

Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
11 条消息(共 16 条)
491 次查看

@rolfk wrote:

@billko wrote:

 

And I forgot that Booleans aren't truly one bit; it actually takes 8 bits to represent each Boolean so thanks for reminding me about that.

It used to be even a 16-bit integer until LabVIEW 4.x. But boolean arrays were packed with 8 boolean values per byte. But that was changed in LabVIEW 5.0 because the packed boolean array was memory conserving but very CPU intense to pack/unpack and index.


Did you have 8 booleans in 16 bits?

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 项奖励
12 条消息(共 16 条)
448 次查看

@rolfk wrote:

...  until LabVIEW 4.x. But boolean arrays were packed with 8 boolean values per byte. But that was changed in LabVIEW 5.0 because the packed boolean array was memory conserving but very CPU intense to pack/unpack and index.

 

A side effect is that we still have that overlooked 4.x typecast mode that can be sometimes useful, but we need to remember that the index 0 is the MSB.

 

altenbach_0-1743692372436.png

 

13 条消息(共 16 条)
441 次查看

@Yamaeda wrote:

@rolfk wrote:

@billko wrote:

 

And I forgot that Booleans aren't truly one bit; it actually takes 8 bits to represent each Boolean so thanks for reminding me about that.

It used to be even a 16-bit integer until LabVIEW 4.x. But boolean arrays were packed with 8 boolean values per byte. But that was changed in LabVIEW 5.0 because the packed boolean array was memory conserving but very CPU intense to pack/unpack and index.


Did you have 8 booleans in 16 bits?


No. A scalar boolean was an int16 and an array of booleans was 16 bit padded.

Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
14 条消息(共 16 条)
421 次查看

@rolfk wrote:
A scalar boolean was an int16 and an array of booleans was 16 bit padded.

Here's the proof that a scalar boolean was 2 bytes.

 

 

altenbach_1-1743750622855.png

 

15 条消息(共 16 条)
397 次查看

Cool. I like learning of the history, i first touched LV in ver 5 i think (very rudimental) and any form of advanced LV was 8.2 for me.

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 项奖励
16 条消息(共 16 条)
385 次查看