Skip navigation

Community

1 ... 6 7 8 9 10 11 Previous Next 11314 Views 150 Replies Latest reply: Nov 14, 2013 8:16 AM by comrade RSS Go to original post
  • Currently Being Moderated
    105. Nov 1, 2011 9:55 AM (in response to kdmcmullan)
    Re: LabVIEW Scripting Main Board

    Connect Wire does, but Add and Remove Chunk do not (I used LabVIEW 2010).  Resize growable nodes in 2009 by first queying for the current height (use Master Bounds Rect and subtract the Bottom from the Top).  Now get the Terminal Height and either add or subtract it from the current height, depending on whether you want to grow or collapse.  Finally use the Resize method to set the new height.  You can see why we fixed this for the official release of scripting.  There may be slight differences in the way different growable nodes react, so be prepared to experiment.

     

    Good luck.

  • MengHuiHanTang Calculating status...
    Currently Being Moderated
    106. Nov 29, 2011 2:47 PM (in response to Jeff_M1)
    Re: LabVIEW Scripting Main Board

    I am stuck at how to create an array indicator. I found the way to create an array control and put a DB inside it to generate a valid array control, but what I really wanted was an array indicator. There is no 'indicator' object anywhere, or I did not find it? Help PLZ. Thanks.

  • Currently Being Moderated
    107. Nov 29, 2011 3:06 PM (in response to MengHuiHanTang)
    Re: LabVIEW Scripting Main Board

    Indicators and controls are the same thing under the hood.  Change a control to an indicator by setting its Indicator property to TRUE.

  • m3rl3n Calculating status...
    Currently Being Moderated
    108. Dec 2, 2011 2:22 PM (in response to DFGray)
    Re: LabVIEW Scripting Main Board

    I had posted a question about scripting on the LabVIEW discussion board earlier today...  now I found this.

     

    Here is the link:

     

    http://forums.ni.com/t5/LabVIEW/Scripting-replace-invoke-node/td-p/1796810

     

    I would appreciate any assistance.

     

    Dan

     

     

     

    
  • MengHuiHanTang Calculating status...
    Currently Being Moderated
    109. Dec 5, 2011 3:51 PM (in response to Jeff_M1)
    Re: LabVIEW Scripting Main Board

    Variant Scripting.jpg

    I tried to create a variant array. But why this script does not work? Thanks.

  • Currently Being Moderated
    110. Dec 6, 2011 2:10 AM (in response to MengHuiHanTang)
    Re: LabVIEW Scripting Main Board

    This works fine here:

     

    Variant_Array_BD.png

     

     

     

    Without your actual code I don't know what the problem is with your example. The minimum would be seeing if you get an error and where it's coming from. If you're not getting an error then you need to clarify what you mean by "does not work". It would help if you upload the actual VI.

  • MengHuiHanTang Calculating status...
    Currently Being Moderated
    111. Dec 7, 2011 1:46 PM (in response to tst)
    Re: LabVIEW Scripting Main Board

    tst,

     

    I found out why my code did not work. Notice the conversion red dot in your code; they are not in my code. The difference between your code and mine is that I created the default enum control from the VI. When I switched to the updated enum, my code works fine too. So the default enum must have been outdated. Thanks for the help.

  • SeanDonner Calculating status...
    Currently Being Moderated
    112. Feb 23, 2012 8:39 PM (in response to Jeff_M1)
    Re: LabVIEW Scripting Main Board

    Hi all.

     

     

    I just started toying around with LabVIEW scripting.  My ultimate goal is to use an 'Array of String' control and de-index it through a for-loop to create Indicators of type '1-D Array of Boolean' and label each one with the current element of the string array .  The best I've been able to do is create *Controls* that are of type '1D Array of (void)' and I have no idea how to set their Lable name.  I'm getting closer but I could sure use some direction.

     

    Thanks!

  • Currently Being Moderated
    113. Feb 24, 2012 8:22 AM (in response to SeanDonner)
    Re: LabVIEW Scripting Main Board

    You set the label of anything using the Label.Text property.  Remember that array elements all have the same label (array elements all have the same properties, but can have different values).  To create an array of any type, create the array, then create whatever you want to put into it with the array as the owner.  Alternately, you can create the contents of the array, then use the Move method to move it into the array.

  • jkirschner Calculating status...
    Currently Being Moderated
    114. Jul 28, 2012 12:33 PM (in response to njg)
    Re: LabVIEW Scripting Main Board

    Njg,

     

    What is the "unofficial" method to expose those extra elements? I am trying to find a way to script the creation of FPGA code involving fixed-size arrays of fixed point numbers. Any idea if this is possible?

     

    Trevor -- Have these methods since been officially exposed?

     

    Thanks,
    Jared

  • lordexod Calculating status...
    Currently Being Moderated
    115. Jul 29, 2012 11:27 AM (in response to jkirschner)
    Re: LabVIEW Scripting Main Board

    Maybe something like this:

    fpga_script.png

  • m3rl3n Calculating status...
    Currently Being Moderated
    116. Aug 3, 2012 7:37 AM (in response to lordexod)
    Re: LabVIEW Scripting Main Board

    In another thread I saw a reference to "plug-in released for the scripting by the R&D  which you can install so that you can see all the property nodes ...." and it gives the link to this community. This is fine, but I don't have the time to search all of the posts on 8 pages to try to find the plug-in.

     

    Does anyone know where it is? Is there a central repository for plugins / tools that have been created for sharing? (searchable?)

    

     

    Thanks,

    Dan

  • m3rl3n Calculating status...
    Currently Being Moderated
    117. Aug 3, 2012 7:41 AM (in response to m3rl3n)
    Re: LabVIEW Scripting Main Board

    Follow-up to the above message:

     

    I have a case structure with many cases in my program (for various states) and as I've been programming, some of those cases have become obsolete.  I was wondering if there is a way to pull out the names of cases that are active (ie have a case) and compare that to the ENUM control so that I can delete names of cases not being used?

     

    Any thoughts, Ideas?

     

    It's easy to get the names from the enum, but in my case that does not directly translate to the valid cases in the case structure itself.

     

    Thanks for any input.

    Dan

  • Currently Being Moderated
    118. Aug 3, 2012 8:08 AM (in response to m3rl3n)
    Re: LabVIEW Scripting Main Board

    I am unsure what you are asking in your first question.  If you want to know what property nodes are available for use, use the class browser.  It is native to LabVIEW.  Select View»Class Browser or hit Ctrl-Shift-B. If you want to find all the property nodes in a VI or set of VIs, use the Find & Replace function (Edit»Find and Replace...).  Please elucidate if I have misunderstood.

     

    You can get the current states from a case structure by using its Frame Names property (nearly at the end of the property list).

  • Currently Being Moderated
    119. Aug 3, 2012 8:41 AM (in response to m3rl3n)
    Re: LabVIEW Scripting Main Board

    If you have LabVIEW 2011 you don't need to download anything. Just go in your preferences and enable the checkbox to see scripting properties and methods.

1 ... 6 7 8 9 10 11 Previous Next

More Like This

  • Retrieving data ...

Bookmarked By (5)