Passing values to XNet Controls (Bug?)

I've run into something that may be a bug.
I'm trying to pass some values from a custom Step Type to XNet controls on a VI. The Step Type has parameters added for each type of XNet control, so in the sequence, they are passed as "Step.Xnet_Interface", "Step.Xnet_Database" and "Step.Xnet_Signal". These are all of type "LabVIEWIOControl".
When the first step runs, it seems to correctly pass all the values to all the controls. When the second step runs with different values, the XNet controls do not get updated with the new values. They instead stay at the value from the first step. 
The VI also has a string control for each of 3 XNet control types that gets populated with the "DeviceName" portion of the IO Control from the Step Parameters. These do get updated correctly.
The attached contains a sequence, the VI, a Degub.ini which is the Types configuration and a couple small XNet database files just to have a couple to work with.
The first two steps in the sequence are run from the custom step type. The last two are just LabVIEW Actions running the same VI. The last two steps from the Action do correctly update all the controls while the first two from the custom step type only correctly update the String controls.
Am I missing something simple here or is this not working correctly?
Ed Dickens - Certified LabVIEW Architect - DISTek Integration, Inc. - NI Certified Alliance Partner
Using the Abort button to stop your VI is like using a tree to stop your car. It works, but there may be consequences.
Attachments:
XNet Controls.zip ‏20 KB

It's good to know it's not just me.
For now I've worked around this issue by changing the XNet controls to Strings and casting them to the proper XNet controls type in the VI's.
Seems to work so that's what I'm going with.
Thanks
Ed
Ed Dickens - Certified LabVIEW Architect - DISTek Integration, Inc. - NI Certified Alliance Partner
Using the Abort button to stop your VI is like using a tree to stop your car. It works, but there may be consequences.

Similar Messages

  • How to pass value to a control file in sql loader

    Hello
    please want to know if i can pass a value to a control file?
    I have a table which i will populate using a control file but there is a field in the table which i will pass the date of the file.
    how can i archive this
    Thanks
    Edited by: kama021 on Apr 18, 2012 3:49 AM

    The content of the control file must be made dynamically to include desired value.
    Handle:     kama021
    Status Level:     Newbie
    Registered:     Jun 9, 2009
    Total Posts:     154
    Total Questions:     42 (25 unresolved)
    Why so many unanswered questions?
    Edited by: sb92075 on Apr 18, 2012 6:34 AM

  • Having troubles passing values of Shuttle control to SQL Query of Report and Chart Region

    Hello,
    I am very new to APEX and need help for one of the Pa.I have a shuttle control on my page which populates Categories. Once user selects Categories from this control, I wish to pass the values to following SQL query :
    select * from emp_class where category IN ( LIST of VALUES FROM RIGHT SIDE SHUTTLE).
    I tried various ways of doing this including writing a java scripts which reads shuttle value, converts it into below string
    'Category1',Category2',Category3'. Then I set this value to a text box. And then I was expecting that below trcik would work
    select * from emp_class where category IN (:TXT_VALUES)
    I am sure this is not right way and hence its not working. Can you please guide me here with options?
    Many Thanks,
    Tush

    b96402b4-56f7-44ba-8952-fb82a61eeb2c wrote:
    Please update your forum profile with a real handle instead of "b96402b4-56f7-44ba-8952-fb82a61eeb2c".
    I am very new to APEX and need help for one of the Pa.
    Don't understand what this means. What is "Pa"?
    select * from emp_class where category IN (:TXT_VALUES)
    I am sure this is not right way and hence its not working. Can you please guide me here with options?
    This is a common fallacy. In
    select * from table where columnvalue in (7788, 7839, 7876)
    (7788, 7839, 7876) is an expression list and the predicate is evaluated as a membership condition.
    In
    select * from table where columnvalue in :P1_X
    :P1_X is a scalar string, incapable of containing multiple values.
    In an APEX standard report, a PL/SQL function body returning an SQL query report source with lexical substitution can be used to produce a "varying IN-list":
    return 'select * from table where columnvalue in (' || :P1_X || ')';
    where P1_X contains fewer than 1000 values, has been sanitized for SQL injection, and string values are properly quoted.
    Some people suggest the following approach, which will also work in APEX interactive reports:
    select * from table where instr(':' || :P1_X || ':', ':' || columnvalue || ':') > 0
    However this is non-performant as it eliminates the possibility of the optimizer using indexes or partition pruning in the execution plan.
    See varying elements in IN list on Ask Tom, and emulating string-to-table functionality using sql for efficient solutions.

  • Passing values to sub VI and writing data to controls

    As part of a control interface for a VFD i am interfacing with using Modbus TCP I wanted to try and compartmentalise some of my code into a subVi
    However in doing so I am having a lot of trouble understanding how I can read the current drive settings for the Ramp up and Down values and update those values into the main faceplate of my control.
    The sub Vi is tested and works exactly how I want. Selecting Read (latch on pressed) reads the registers from the drive and outputs it to the controls and the indicators. The indicators were incorporated because I did not know how to pass the data out of the sub vi without them. Updating works to write the current value in the controls to the VFD registers.
    However when I incorporate this VI into my larger project the values are always displayed as zeros if I have the switch set to latch. However i do see a momentary flash of the correct values soon after pressing the read button or if i change it from latched operation to switched, however i would prefer it to opperate in a latched mode so as to reduce communication overheads to the drive. 
    Solved!
    Go to Solution.
    Attachments:
    Modbus sub vi.pdf ‏943 KB

    Hi,
    A number of suggestions:
    1. Use references and property nodes to set FP indicators from a subVI (you can learn more here and here)
    2. Don't put output indicators inside Cases. When the case is not Read, the VI outputs default values to the outputs and gives you the zero values. 
    Good luck,
    Danielle
    "Wisdom comes from experience. Experience is often a result of lack of wisdom.”
    ― Terry Pratchett

  • Use context to pass value between JPF and Java Control

    hi,
    Can we use context to pass value between JPF and Java Control? It works if i m using InitialContext in the same machine but i dun think it will works if i put Web server and application server in different machine. Anyone have an idea how to do it?
    I also want to get the method name in the onAcquire callback method. Anyone knows how to do this?
    thks
    ?:|

    Hi.
    Yoy can the next options for make this:
    1. Pass your values in http request.
    example: http://localhost/index.jsp?var1=value1&var2=value2&var3....
    2. You can use a no visible frame (of height or width 0) and keep your variables and values there using Javascript, but of this form, single you will be able to check the values in the part client, not in the server. Of this form, the values of vars are not visible from the user in the navigation bar.
    Greeting.

  • Trouble passing values to subpanels

    I seem to be having issue pass values to my sub VIs in a subpanel.  I'm using the invoke node and control value set command.
    I am able to pass a database reference that I'm using, but when I try Boolean values, I get no response.  I'm also trying to use one of the Boolean values to fire an event.  The front panel of my sub VI looks as though the FP button is being pressed, but my value doesn't change and my event doesn't fire.
    I've reviewed as may forum threads as I could and have looked through the bug reports without any luck.  Any ideas?

    attached is the code snippet.   You can use this as a subVI in place of where you are setting the control value or just hammer the code in directly.  Add error handling as you see fit, although you should note that if you use the error handling within the for loop, you will probably get an error, probably better to move the 'to specific' outside the loop.
    Paul <--Always Learning!!!
    sense and simplicity.
    Browse my sample VIs?
    Attachments:
    setCtrlValSignal.vi ‏11 KB

  • Is there a way to reference the property node value of a control in another VI?

    Let's say that I have a situation like the one shown in the attached image.
    I have an interlock system which is basically a bunch of booleans
    If for example the "RF Enable" button in the "interlock VI" is true, then I should be able to flick the ON switch in my other VI (in the back), but if the value is FALSE, then it shouldn't allow it.
    In other words, how do I check the value of a control across 2 separate VIs (running simultaneously)?
    Thanks!!
    Attachments:
    sample.jpg ‏295 KB

    Is one VI launched by the other, or are they launched independently? If it's the former then you just need to pass the control reference to the subVI via terminal node. If it's the latter there are a variety of ways to handle this:
    Use a global variable - somewhat "sloppy" as it requires a global variable, and can lead to race conditions. In the "Interlock" VI you just set the value of the global variable when you change the value of the Boolean. In the other you're just reading it.
    Action Engine - Ben wrote a Community Nugget a while back. Similar concept to a global variable.
    Queue - The "Interlock" VI simply pops an element onto the queue with the value. The other VI just monitors the queue for a new element. It just needs to have something like a shift register to keep track of the last state.
    Use the VI Server to access the controls of the "Interlock" VI. You can do this by accessing the "Interlock" VI's pane and get the control references. With the control reference you just need to get the value with a property node.
    ... (I'll let others chime in)

  • Passing values between adf application and web services

    hi i have a situation where i have jsff page which got username,surname,lastname,email i what to pass this value to my webservices how can i do that. this is how i create my webservicesright click viewControler->web services->web services Data Control
    i what to pass the value to webservices workflow i already have a screen in my workflow now i what to pass the adf application values to that webservices am in jdeveloper 11.1.1.6.0
    i try this
    <af:inputText simple="true"
                            required="#{bindings.Username.hints.mandatory}"
                            columns="#{bindings.Username.hints.displayWidth}"
                            maximumLength="#{bindings.Username.hints.precision}"
                            shortDesc="#{bindings.Username.hints.tooltip}" id="it1"
                            value="#{bindings.Username.inputValue}">
                <f:validator binding="#{bindings.Username.validator}"/>
                <af:setPropertyListener from="#{bindings.Username.inputValue}"
                                        to="#{bindings.start_user_details}"
                                        type="action"/>
              </af:inputText>

    i make my webservices to pass values
    <af:inputText simple="true"
                            required="#{bindings.Username.hints.mandatory}"
                            columns="#{bindings.Username.hints.displayWidth}"
                            maximumLength="#{bindings.Username.hints.precision}"
                            shortDesc="#{bindings.Username.hints.tooltip}" id="it1"
                            value="#{bindings.Username.inputValue}">
                <f:validator binding="#{bindings.Username.validator}"/>
                <af:setPropertyListener from="#{bindings.Username.inputValue}"
                                        to="#{bindings.approveUser_username}"
                                        type="action"/>
              </af:inputText>
    but am geting error reference approveUser_username not found

  • Changing the value of a control in a subvi

    I think the answer is out there somewhere but I've read through many threads found with searches similar to this topic so sorry to repost...
    I would like to change the value of a top-level VI control from a sub-vi.  The data is being used as a parameter, I was thinking about using a local/global but I've seen this discouraged.  Is there a way I can do it with references, property, or invoke nodes (or some other suggested method) ?
    I am guessing that if I am not using globals I will need to wire into the sub-vi?
    Dave

    I'd like to clarify what I am trying to do a bit more...
    The sub-vi has a control of the same type as the top-level vi.  The inital control value is being passed into the sub-vi from the top-level vi.  The sub-vi uses the control value in several places through local variables (reading and writing to it)
    I would like to modify the vi so the top-level vi control value changes whenever the sub-vi changes the control value that is passed to it.
    My last attempt was to make a refnum control in the sub-vi (by dragging from top-level block diagram to sub front panel) and then creating a property node from that refnum control.  Using the property node "value" did not give me the value of the control from the top-level vi as I had hoped.  Wiring it to a terminal that was expecting the same type of control (a cluster of two numerics) caused a wiring conflict.
    I noticed elsewhere in the code that the programmer used a text file to save options (unfortunately the control I am working on was not originially included in the options).  There is a vi that, when called, either reads or writes to the text file.  From a C/C++ programming perspective it seems quite odd to me not to just keep all this data in memory and pass it around.  Is using a file to store variables a typical practice in LV programming (even when they are retrieved multiple times during program execution) ?

  • Re: Help needed in passing values from workflow to Approve Forms

    Dear Experts,
    how do I pass values from a workflow to a step (Form) - approve form?
    I am using a customized table structure as my data source (FORMCONTAINERELEMENT) but am stuck on how to access the data when i get to to the screen painter's flow logic... What am i missing? Can you give me a step by step example. the ones i see on the net are input fields that update the screen... nothing that shows value being passed from the outside.
    I need to pass an exisitng value in the workflow into the form for approval of the the assigned agent.
    Please help!!
    Thank you.

    Hello !
             Create a method just before the form step.This method should populate the values for the fields maintained in the form.
             Pass the values populated from this method to your customized table structure (data source).In other words, you have to pass all the values to the workflow container.
            To the step, pass this workflow container by binding.In the control tab of form step, you have to do the binding.
    Regards,
    S.Suresh

  • How to retrieve dynamic filter value submitted from control query to .....

    How to retrieve dynamic filter value submitted from control query to broadcast query.....
    I'm trying to change the hierarchy version determined by a userexit variable in the broadcast query.
    The Hierarchy Version should be dependent on the input filter delivered by the bursting query.
    But how do I catch the dynamic filter value which has been submitted by the bursting query,
    with other words:  where does the bursting query store it's out put while sequentially starting the broadcast query value by value?
    BTW: the filter value from the bursting query appears under "dynamic filter values" in the information of the broadcast query...
    Any thoughts are welcome!
    Edited by: Heinrich Krupp on Jun 24, 2009 1:25 PM

    Further information,
    Report is used via webi only, not Xcelsius or Dashboard.
    Report is consuming BI Web Services.
    Although we can pass in prompt values to BI Services, I couldn't find if we could pass a variable or dimension object into this field. Anyone knows?

  • Can we Pass value from PDK to Webdynpro

    Hi ,
    Can we pass the values from PDK to webdynpro screen.I have created a screen in PDK , i want to send the control to the webdynpro application on some action.
    whether is it possible ? if yes tel me how to go about that .
    Rakesh

    Hi Rakesh ,
    We can pass value the concept of following comes into picture :-
    · dataObject
    This parameter contains the transported parameter of the portal event.
    · Namespace
    This parameter contains the name space of the received portal event.
    · Name
    This parameter contains the name of the received portal event.
    Refer to this for more details  :-
    http://help.sap.com/saphelp_erp2005/helpdata/en/5d/08f43cf1da7646a2b210a16321c669/content.htm
    Thanks & Regards
    Pankaj

  • Passing values to global variables while running job via management console

    Hi All,
    I have a requirement, where I have to use HANA view with input parameters as source. I am doing the same by placing the HANA query for view with input parameters, in SQL transform and assigning values to placeholders using global variables. This is working fine at the designer level.
    But where I am stuck is, it possible to pass values to global variables while running job in Management console or in a third party scheduler. Should I do any changes in the batch job to achieve the same ?
    Please help me with the same and also let me know whether my approach of using Global variables to assign values to input parameter of HANA view is right?
    Thanks,
    Deepa

    Select Batch > Batch Job Configuration > Add Schedule and Expand the Global Variables section in the Schedule Batch Job tab. You can then specify a value for all your global variables.
    Alternatively, work with control tables and assign values to the global variables in an initialisation script.

  • Passing values to a VI that is open dynamically?

    Hi!
    I need to pass values to a VI that I am openning dynamically.  I tried to open the VI and then pass the values as if it were a subVI.  This works, but has some problems.  The calling VI is "stuck" in the event case until the VI that is called is properly closed.  What I want to do is open the VI, pass the values to the VI, and then allow the user to close/stop that VI if they want or just minimize it and go back to the main VI.
    I tried to do this using Shared Variables, and that worked, but it seems like there should be a better way to do this.  This project does not really need shared variables.
    Attached is an image of where I am currently at by openning the VI and then passing the values as if it were a subVI.  Just thought of something:  it would also be nice if I didn't have to do any file/path name coding.  I don't like how that file name is now hard-coded into the block diagram for that VI.  I like how subVIs update their name automatically from within the same project.
    Thanks for your help!
    -Nic

    This topic is not a simple one, but there are several ways to do this and the correct solution basically depends on what it is you actually want to do. Here are some relevant points. It's definitely not coming close to properly covering the topic:
    What you're doing now is irrelevant - you could just call the subVI and set its FP to open when called.
    You can get the path by doing this:
    You can run the VI dynamically by using the call by reference node, but that will also make your event loop wait for the call to be over.
    You can use a message handler or a queued state machine running in another loop to open the VI. You can see some examples in LabVIEW's File>>New dialog or on the web. Here's one example.
    You can communicate between VIs using notifiers, queues or LabVIEW 2 style globals (example).
    I suspect that in your case, what you want can be accomplished by running the VI as a parallel process (simply place it outside your main loop) and then use invoke nodes to open its FP when needed. You can get a reference to it by using the static VI reference object found in the Application Control palette. You can communicate with it using any of the methods mentioned in the previous bullet.
    I suggest you do some searching for methods for communicating between VIs. There is a lot of material online.
    Try to take over the world!

  • Passing Values to a User Form called from a button

    Good Afternoon
    Experts:
    Recently, Edward Neveux pointed me in the direction of how to find information on displaying a Form when clicking a button on a screen.  I use this line of code to show a screen after clicking on a button on the Item Master Data screen:
    <b>g_B1Connection.Application.ActivateMenuItem("ITEMBINMAINT")</b>
    Now I need to pass information from the Item Master Data screen to this screen I am displaying from the button click.
    Can this be done?
    Thanks,
    Ed

    Hi Ed
    What information do you need to pass ?  If is information from controls on the Item Master Data screen what you could do is ...
    1.  On the load event of the Item Master Data capture Form with either
             mstrFormUID = oForm.UniqueID  ' string variable to use it later on expresion like below
         or
             moForm = SBO_Application.Forms.Item(oForm.UniqueID) ' SAP form type variable
    2.  Notice that both variables are modal, so once you have uploaded your form the parent form (Item Master is kept on memory).  With these form you can then code your way to obtain the existing value on the Item Master screen to your screen.  For Instance,
            oForm.Items.Item("URText").Specific.Value = moForm.Items.Item("5").Specific.Value  ' Passing value from "Item Number" textbox to your text box on your screen.
    hope it helps

Maybe you are looking for

  • Unable to print from my Mac system, but my other computers work

    Have you encountered a problem printing from your Mac computer and it seems to work from everything else? I have looked at several posts regarding to printing from a Mac.  PrintDoc seems has a solution that can resolve most of the printing issues fro

  • Process of implementing new G/L

    Hi can anybody tell me the process of implementing the new G/L with the ledger groups, leading ledger

  • 3 machines but all the same iTunes media files

    We have 3 machines in my house and I want all the machines to have the same media on all . Not sure how to go ab out it.

  • UCCE 9.0 Precision Queue.

    Guys,            I have some experience in 8.5. Now I would like to install learn ICM 9.0. Installation I can do by reading documents. I don't know what is Precision Queue in 9.0. I have gone through SRND, I can't get what they are trying to convey.

  • HT5858 too many HTTP redirects

    my phone says "too many HTTP redirects" when I try to access APPS, what to do?