LAVA: Setting the width of ArrayConstant Element - LAVA

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Setting the width of ArrayConstant Element Rate Topic: -----

#1 User is offline   Black Pearl 

  • Very Active
  • PipPipPip
  • Group: Members
  • Posts: 208
  • Joined: 12-April 09
  • Location:Freiburg, Germany
  • Version:LabVIEW 7.1
  • Since:2002

Posted 21 December 2009 - 08:05 PM

The two cases I face are:
* An array of strings
* An array of enums

I would like to set a fixed width for both kinds of elements. I can do this in the editor (It doesn't work for enums alone, but if they are contained in an array container).
My result so far:
* Bounds, MasterRect, ... are all write only
* Left of the array moves the array, but the right side as well
* Element.Left does have no effect
* With an FP string, there are 2 ways (Size and Text.Size), none of them available for a BD Constant. Create Constant and Change to Constant as well as Copy/Paste loose the size information.

Felix
0

#2 User is offline   Black Pearl 

  • Very Active
  • PipPipPip
  • Group: Members
  • Posts: 208
  • Joined: 12-April 09
  • Location:Freiburg, Germany
  • Version:LabVIEW 7.1
  • Since:2002

Posted 22 December 2009 - 08:59 AM

Got some of it working!

Place a string control as vi obj class String Constant using Scripting on the BD.
Type Cast the reference to String Control using Flatten to String/Unflatten From String (to more specific throws error).
Now I can succesfully access the Size property of the String Control Class!

Still need to check with arrays, enums...

Felix

Progress: Enums go as well.
Will try arrays tonight...
0

#3 User is offline   Black Pearl 

  • Very Active
  • PipPipPip
  • Group: Members
  • Posts: 208
  • Joined: 12-April 09
  • Location:Freiburg, Germany
  • Version:LabVIEW 7.1
  • Since:2002

Posted 22 December 2009 - 06:39 PM

Next problem, how to link the enum to a type def? Any way I tried makes the enum look as normal BD enum and not as FP enum on the BD.

Felix
0

#4 User is offline   Black Pearl 

  • Very Active
  • PipPipPip
  • Group: Members
  • Posts: 208
  • Joined: 12-April 09
  • Location:Freiburg, Germany
  • Version:LabVIEW 7.1
  • Since:2002

Posted 22 December 2009 - 07:26 PM

Stupid me! Of course it is not dependend on the silly FP look on the BD. All I need is the access to the hidden properties. Now it works...

Felix
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic