Jump to content


Photo
- - - - -

Bounded and fixed strings


  • Please log in to reply
4 replies to this topic

#1 flarn2006

flarn2006

    Very Active

  • Members
  • PipPipPip
  • 150 posts
  • Location:Northern Virginia
  • Version:LabVIEW 2012
  • Since:2005

Posted 09 July 2012 - 01:12 AM

I was fooling around with variants earlier by flattening them to strings, editing the bytes, and converting them back, then creating constants from them with scripting. By editing a string variant, I was able to make this:
fixed string.png
This is a fixed-length string. If I right-click it, it gives me an option called "Set String Length", which isn't there on normal strings. It lets me set fixed, bounded, or variable (which changes it to a regular string and removes the menu option), as well as setting a length. I tried Googling it, and I couldn't find anything about it. I also can't find anything in LabVIEW's help files.
Can anyone from NI enlighten me as to what this is for? Is it some kind of hidden data type that's still being tested? I wouldn't find that hard to believe, considering the Set String Length dialog looks like it was quickly thrown together (no offense!) Is this used anywhere, and is there any way to create this other than hacking variants or VI files?

SuperSecretPrivateSpecialStuff=True.


#2 mike5

mike5

    Very Active

  • Members
  • PipPipPip
  • 159 posts
  • Location:Slovenia
  • Version:LabVIEW 2010
  • Since:2009

Posted 09 July 2012 - 05:21 AM

This is a fixed-length string. If I right-click it, it gives me an option called "Set String Length", which isn't there on normal strings. It lets me set fixed, bounded, or variable (which changes it to a regular string and removes the menu option), as well as setting a length. I tried Googling it, and I couldn't find anything about it. I also can't find anything in LabVIEW's help files.


It is in the help file if you know what you're looking for :)
http://zone.ni.com/r...pe_descriptors/

See section titled String, Path, and Picture Data Types.

Br, Mike
Close the world, txEn eht nepO.

#3 Prabhakant Patil

Prabhakant Patil

    More Active

  • Members
  • PipPip
  • 45 posts
  • Version:LabVIEW 2010
  • Since:2004

Posted 09 July 2012 - 08:45 AM

Just check the following link.

https://decibel.ni.c.../docs/DOC-16791

You can extract the string limit form this

regards
Prabhakant

#4 flarn2006

flarn2006

    Very Active

  • Members
  • PipPipPip
  • 150 posts
  • Location:Northern Virginia
  • Version:LabVIEW 2012
  • Since:2005

Posted 09 July 2012 - 11:04 AM

It is in the help file if you know what you're looking for :)
http://zone.ni.com/r...pe_descriptors/

See section titled String, Path, and Picture Data Types.

Br, Mike


Oh okay, thanks. That type descriptor thing will probably be useful when editing variants. But I'm still kind of disappointed that I didn't discover something that hadn't been released.

SuperSecretPrivateSpecialStuff=True.


#5 Prabhakant Patil

Prabhakant Patil

    More Active

  • Members
  • PipPip
  • 45 posts
  • Version:LabVIEW 2010
  • Since:2004

Posted 10 July 2012 - 04:55 AM

I also not find this kind bounded thing related to the string.
Thats why I develoed this code to Limit the string for the decided character

Prabhakant