Send path control or reference to path control to sub vi

Hello! I have a question of how to build correct labview structure. I have a path control in my main vi and want to check if it is correct in a sub vi. If not correct, ask the user for a correct one in the sub vi. I see two different options of how to do it and I think no one is realy good.
1. Draw a wire from the path control to the input of the subvi. The answer from the sub vi is connected to a local of the path control. This uses locals that I should not use.
2. Draw a reference from the path control to the input of the sub vi. In the sub vi change the value of the reference if path is not correct. No output is needed. Using reference you do not see where variables changes.
How should I solve a problem like
this?
Please help me!
TJ

Thomas Json wrote in message news:<[email protected]>...
> Hello! I have a question of how to build correct labview structure. I
> have a path control in my main vi and want to check if it is correct
> in a sub vi. If not correct, ask the user for a correct one in the sub
> vi. I see two different options of how to do it and I think no one is
> realy good.
> 1. Draw a wire from the path control to the input of the subvi. The
> answer from the sub vi is connected to a local of the path control.
> This uses locals that I should not use.
Local variables are fine. Don't worry about using them.
Paul Cardinale

Similar Messages

  • Create subVI Control from Reference Name Bug

    If you connect N references to a sequence structure and create a subVI from this structure, the first N-1 controls will have the name of the original control (desired), but the last one will not. It will have the name of the generic type of the control this reference is pointing to. Of course, if N = 1, that means that the created control will have the generic name.
    Illustration:
    In the diagram above, subVI 1 has been created from a sequence to which a reference to "Numeric Control" was connected. Here is the FP of that subVI, as created by LV:
    subVI 2 was created from a sequence to which both references were connected. Here is the FP of that subVI:
    This does not seem to depend on the type of the control. If I add a graph:
    the created subVI looks like this:

    Kind of an extension of this bug, but not exactly the same. Might be due to the same cause though
    If you create a subVI incorporating Property Nodes (not recommended in general for performance reasons, but not a killer either), the subVI will obviously have references to the corresponding controls as controls and references to the controls will appear in the calling VI:
    Before:
    After:
    (it never ceases to amaze me how bad the cleanup/auto-routing algorithm developed by NI is :-)
    Here is the corresponding FP of the created subVI:
    This time, never mind the names of the original controls, they will be ignored, no matter how many different controls there is.
    (I am not even mentioning the well-known feature that if instead of enclosing the property nodes you just enclose the wires coming from the "Value" node, the subVI's controls will read "Value, Value2", etc, where the type of the "Value" controls will in general have absolutely nothing in common).

  • TypeError: Error #1009: Cannot access a property or method of a null object reference. at mx.controls::AdvancedDataGrid/findHeaderRenderer()

    Can anyone throw any light on this obscure Flex error?...
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
    at mx.controls::AdvancedDataGrid/findHeaderRenderer()[...path...\projects\datavisualisation\ src\mx\controls\AdvancedDataGrid.as:1350]
    at mx.controls::AdvancedDataGrid/mouseEventToItemRenderer()[...path...\projects\datavisualis ation\src\mx\controls\AdvancedDataGrid.as:1315]
    at mx.controls.listClasses::AdvancedListBase/mouseMoveHandler()[...path...\projects\datavisu alisation\src\mx\controls\listClasses\AdvancedListBase.as:8091]
    I found a related bug reported on Jira: https://bugs.adobe.com/jira/browse/FLEXDMV-1631
    But in our case, we have no zoom effect.  It may be timing related, as there is a lot of computation going on when this page, and the ADG is first initialised.
    Please?... Any suggestions or workarounds?  We don't want this falling over in the hands of our customers.
    <rant> And people wonder why I hate Flex!?  These obscure instabilities never happen when I develop Pure ActionScript.  The Flash platform is wonderfully stable.  But as soon as you bring Flex into play, things take longer to develop, it's a struggle to extend or change the behaviour of the bloated components, and everything falls apart as these bugs begin to surface.</rant>

    facing the same problem... sdk 4.1. no solution for about 2 years ????

  • Get Specific References for all Controls

    Using slightly modified code from here, I am generating an array of all control references on my main front panel which is then passed through to a number of subVIs. Although this functionality does work, it would be preferable to get specific references to the controls (for example, Boolean RefNum instead of Control RefNum). 
    Getting these specific references seems possible using To More Specific Class and Class Specifier constants. However, data storage becomes an issue because I can no longer use arrays (as they are a different data type). I am not sure if there is another way to pass this data on. I have experimented casting the RefNums to Variants, but to get the data from the variant, I have to know what RefNum type I am expecting which sort of defeats the purpose of doing this in the first place.
    A secondary problem is keeping the names of the references. The Control RefNums do not have names associated with them nor do I know how to assign names to them. I've again tried using variants and using the OpenG Set Data Name function, but this crashes LabVIEW without any indication of why.
    I've attached a version of my code that tries assign names using OpenG Set Data Name and build a variant array. To run it, simple add the VI as a subVI to a VI that has some boolean controls on the Front Panel. Apologies for the rough state of the code - I'm still in the process of figuring out how to make it work so things are a bit messy.
    Solved!
    Go to Solution.
    Attachments:
    Get Specific Control Refs.vi ‏28 KB

    I don't know if you'll get much better.  There is really no way I know of to have some fully flexible way of building named clusters of references based on any given front panel set you feed to it.
    I tend to do things the manual way (as there are also a bunch of references to front panel elements I wouldn't need).  I would do all the bundling work in a subVI.
    I'm attaching a zip file that contains the key VI's (unless I missed something) on the first project where I really tried to abstract out the reference building.  The files are LV9.
    On my main VI, I have the subVI called Build UI References early in the VI during an initialization phase.  I pass the reference to the main VI into that subVI that builds all the references.  I worked it as a master cluster that contains elements that are arrays of references of related controls.  It uses another subVI called Get References and Label Names that I created to help find controls.  I still need to use More Specific Class to get the property references, but I don that only once at the beginning.  I then pass that cluster wire out and to anywhere in my VI that would need access to the references for front panel elements.
    I use arrays of strings to supply the names I need to build and bundle the references.  This lets me ignore controls I don't care about.  The disadvantages to my system is that if I change the name of any control, I need to update the name within this subVI.  And if I want to add any controls, not only do I need to add the label names for the searching functions, I also need to update my typedef cluster (and you definitely want this to be a typedef) to add a spot to store the new reference.
    I hope this gives you some ideas.  It worked for me and I will likely use the scheme on another project (or even rewrite past projects using this scheme.)  If there are any ideas for improvements, I'd be happy to hear them.
    Attachments:
    Build UI refs.zip ‏83 KB

  • How can I get a reference to all controls on a front panel of one type )for example of the type Text Ring?

    I'd like to set the strings[] property of all the Text Ring controls on a front panel at once without creating a property node for every text ring. How can i do that?

    > How can I get a reference to all controls on a front panel of one type
    > )for example of the type Text Ring?
    >
    > I'd like to set the strings[] property of all the Text Ring controls
    > on a front panel at once without creating a property node for every
    > text ring. How can i do that?
    This is likely more complicated than making property nodes for each
    ring, but you can do it. Make a subVI that takes in a panel reference,
    reads the array of control references, loops through them looking for
    rings, and modifying the Strings[] property on each ring.
    The part of this that will probably be the least obvious, when you
    have an array of control references there are two ways to find out
    if an element is a ring. You can read the classID and compare it
    to the cla
    ssID of a true ring control. An alternative is to cast
    the control reference to a ring control using a Cast to more specific
    node and wire the error out to a case structure. The error case is
    where the objects that aren't rings will go. The success case case
    where you will have a valid ring refnum that you can use to modify
    the strings.
    Greg McKaskle

  • Performance issues using control references in Analog control loop?

    My main vi of a tensile tester control application calls a number of sub-vi's, including a analog control loop which controls the test. The control loop must update some boolean and digital indicators and respond to user input on the front panel of the main vi during a test.
    To simplify my main vi, I moved the control loop code into a sub-vi, and used control references to access the controls and indicators on the front panel. However, this has dramatically affected my loop performance, and the loop can no longer keep up with the acquisition speed.
    Do control references always cause such a slowdown? Is there anything that I can do besides moving the code back into the main vi?
    Thank You,
    David Creech

    I have had the same problem. I have discovered other funny things about references also; some kind of memory management (or mismamagement?) is taking place behind the scenes.
    Regardless, you can often do away with the references by passing the initial state of a control or indicator into the subvi, changing it inside, and passing the altered state back to the caller. Once back in the caller you update the front panel control or indicator by using a local variable.
    One thing to watch out for if using this scenario is the dreaded race condition; this can be avoided using a state machine. Check out
    http://www.advmeas.com/goodies/statemachine.html
    for a good example. It is a shame that references behave in this way; it limits thier usefulness.
    Perhaps someo
    ne else will point out a way to utilize them more sucessfully?

  • Vision Builder 7.0(IMAQ) : Using fxs in subVIs with references to image control

    When using IMAQ fxs (such as 'Write File') in subVIs, if one wanted to use references to an image control, what property or method would be used to feed into the image terminal in the imaq fx on the subVI? Is this possible?
    What did work: I was able to directly use the image control on the main feeding an image control on the subvi panel (which is then fed directly to imaq fx)
    What did not work: From a refnum control for the image on the main, I used (within the subVI) the value property fed to a 'Variant to Data' with type as image control, then feeding the output of this into imaq fx.

    Typically you would update an Image Display control from a subVI using the Value property nodes. However, this method does not currently work with LabVIEW 7 and Vision 7, but the issue will be resolved in the next release of LabVIEW and Vision.
    In the meantime, in addition to the solution you found you could also use a global variable to pass images from one VI to another. Using a global variable works, but not in the same way as a reference or property node would. With a reference or property node, you can pass a reference of the control to a subVI and have the subVI update the control's image. Using global variables, the subVI will update the global variable with the new images, but you need a loop monitoring the global variable in your top level VI.
    I hope this
    helps! Best wishes.
    Regards,
    Dawna P.
    Applications Engineer
    National Instruments

  • Copy controls in reference with contract to sales order

    hi,
    sap gurus,
    good monring to all,
    what are the copy control settings for
    contract - sales order
    can any explain the controls.
    regards,
    balaji.t
    09990019711.

    Hi
    Balaji
            Please go to SPRO -
    S&D -- SALES - SALES DOCUMENT ---SALES DOCUMENT HEADER - -- DEFINE SALES DOCUMENT TYPE select yr order type and diplay the same then go to General Control there reference mandatory field is there. If you assign G then contract is mandatory for your SD doc. type. Please take F4 help and check the different ref. mandatory field. ( T code VOV8 )
    Hope this will help u.
    If u get help pl reward.

  • How to get the menu reference of a control while runtime

    Hello...
    i want to disable the control's short-cut menu programmatically. i could do it by using the event structure and 'shortcut menu activation' event.
    this is why i am asking about getting the menu reference if individual control.
    is there any other way out without using event structure?

    "Share_Good" <[email protected]> wrote in message
    news:[email protected]..
    > Hello...&nbsp;i want to disable the control's short-cut menu
    programmatically. i could do it by using the event structure and 'shortcut
    menu activation' event.&nbsp;this is why i am asking about getting the menu
    reference if individual control. &nbsp;is there any other way out without
    using event structure?&nbsp;&nbsp;
    No. You have to use the event. But if you simply disgard the activation, you
    don't need to change it's run time menu. You'll need the event structure
    anyway to catch the selected menu item.
    Regards,
    Wiebe.

  • LSMW - Logical File Path not pointing to Physical Path

    Hi All,
    I'm trying to upload some MIGO goods movement transactions through LSMW.  I'm to step 7, specifying files, and am getting the error "No logical file path has been specified.  I saw another thread which helped me, but I am still stuck after reading it. 
    Re: Error in Creation of Purchase Requisition through LSMW
    I have gone into transaction FILE and created the logical file name MM_GOODS_MOVEMENT, and set the physical file as the .lsmw.conv converted data file as the above thread says.  I also tried using the logical path LOCAL_TEMPORARY_FILES for the converted data, but I get the error telling me that the path does not point to a physical directory.  I then tried creating my own file path, and setting the path to my desktop where the source file is, and the same error occurred.
    Does anyone know why it is not recognizing the physical path maintained in the logical path?
    Thanks,
    J

    Thanks for both replies,
    I have full authorization across all transactions in the sandbox system I am working in, so that is not an issue.  I filled the logical path field in the MM_GOODS_MOVEMENT logical file with LOCAL_TEMPORARY_FILES, as well as trying my own created file path, and I recieved the same error for each.  Here is how the config is currently:
    Logical File Path Definition:  MM_GOODS_MOVEMENT
    Syntax Group: WINDOWS NT
    Physical path: C:\Documents and Settings\jchanski\Desktop\<FILENAME>
    or,
    Logical File Path Definition:  LOCAL_TEMPORARY_FILES
    Syntax Group: WINDOWS NT
    Physical path: C:\temp\<FILENAME>
    Logical File Name Definition: MM_GOODS_MOVEMENT
    Physical file: MM_MM_MIGO_INVUPLOAD.lsmw.conv
    Data format: ASC
    Applicat.area: MM
    Logical path: LOCAL_TEMPORARY_FILES or MM_GOODS_MOVEMENT
    Do you see any error with this Brajvir?  Thanks!

  • I am looking to control a 4-way hydraulic solenoid valve. Do I need a PID control toolset, or can i control the system through my 16E4 daq card and scxi chasis

    I am looking to control a 4-way hydraulic solenoid valve. Do I need a PID control toolset, or can i control the system through my 16E4 daq card and scxi chasis

    I think you're asking 2 different questions.
    The PID control toolset is for using PID loops for control; it's just software.
    The DAQ card and scxi chassis are hardware. If you have the appropriate signal conditioning cards in your chassis to control/monitor your solenoid valve, then you can run a PID loop.
    I believe the simple answer is: the PID control toolset is the best way to do control, but there are simple PID VI's (even on this website) that you can download and use for simple control.
    Mark

  • SAP GRC 10.0 Process Control - IT, HR and FICO Controls

    Hi,
    I need more details about GRC 10.0 Process Control - IT, HR and FICO Controls. Normally we are using standard controls in implementation. According to the  business as well as industry requirements, we can create new custom controls. Can you please elaborate IT,HR and FICO controls and their significance in Process control implementation.

    Dear Reddy,
    as you are asking for suggestions on internal controls I would strongly recommend to check out my document in this regard.
    http://scn.sap.com/docs/DOC-56548
    Let me know if you have any specific question.
    Regards,
    Alessandro

  • Need to join paths together into a single path

    I have this image which is currently composed of separate paths.
    Is there a way using pathfinder, effects>pathfinder, livepaint or some other way to group all of these together so all I have is the outline of the entire object pictured below?  I'm working with programmers who need the actual paths merged into one big path (preferably dropping all of the stuff in the middle, though that's not absolutely necessary) - it's not good enough just to select all the individual paths, hit group, and name that layer; paths have to be joined.
    Looked like Illustrator could do this easily, but I haven't used the program that much and I'm probably missing something simple.
    Thanks for any help.

    I got it to work again in one case but not another.
    When it works, the Expand button stops being grayed out in the pathfinder section, and upon hitting expand, a compound path is generated which has the paths I need.
    EDIT --- ok, figured it out for real now.
    Need to select several paths which are not yet in a group (doesn't work if they are grouped to start with)
    Then Alt Click on the Unite function under Pathfinder Shape Mode
    Then Expand under Pathfinder - and you're left with the compound path comprised of all the original parts (which is what I needed)
    Thanks for the help.

  • In DEV client i have to copy controlling area or i mantain controlling area

    Hi
    in DEV client i have to copy controlling area or
    i mantain controlling area which is preferable.

    Hi,
    Transfer Controlling area created request from golden client to Dev client.
    Rgds
    sunfico

  • How can I cut out paths with another path and just leave short paths (pic examples inside)

    Ok, so we start with this... the "S" is a path (the "S" is just used for example here but could be a star, a heart or even something more complex.
    Then I need to end up with this:
    This was done with clipping mask but that only gives me the "look" I want, not the end results I want.
    I need EACH of those lines to be an independant path that can be manipulated individually later.  So like the 4th row from the bottom would be two separate paths.
    Does this make sense?
    What is the best way to achieve this?

    JustyCase,
    With the horizontal paths on top, you may:
    1) Select all the horizontal paths, Object>Path>Outline Stroke (if they are not outlined to closed paths already), and Object>Compound Path>Make,
    2) Also select the shape to cut up and Pathfinder>Minus Front (hold Alt/Option if needed to make simple paths).
    This should leave you with a Group of simple paths as desired, with no trash.
    Edit:
    Busy with some urgent matters all day, I thought I had reloaded the thread before posting. I never saw posts # 9, 10, 11, 12, 13, 14, & 15, until now. Argh.

Maybe you are looking for

  • Does the Time Capsule work without LAN

    Ok so I'm looking at buying a Time Capsule, not sure which generation but it has 1Tb of storage, becuase the macbook air only has like 60GB SSD, and i'm wondering whether it all just works over WiFi, and i don't mean does it back up over WiFi I mean

  • IOS 6.1.2 - "Request Timed Out" - iOS App Store Updates

    Since upgrading my iPhone 5 and iPad mini to iOS 6.1.2, the "Updates" tab of the App Store no longer loads. It shows a blank screen for a long time and sometimes then shows a popup "The request timed out". The badge count over the App Store icon stil

  • Cloning oracle apps R12

    hello experts, i am using metalink doc 406982.1 for cloning procedures. but i would like to know that do i need to shut down database or application tiers while preparing applications for cloning?? it is not asked to shut down any tier while you run

  • Who is eligible to use the Labview 8 student edition?

    Who is eligible to use the Labview 8 student edition? Can an individual who is not in school or affiliated with a learning institution purchase and register it for the purpose of learning at home?

  • Why might some sub-picture hilights be partially obscured?

    I create a sub-picture or use a  standard sub-picture hilight (e.g. the music notes from the "Blue Notes"  video button template).  Using say 3 or 4 of this same hilights on a  Menu.  They appear to be complete and look perfect when previewed.  But