Passing values to sub VI and write data to controls

As part of a control for a VFD interface I am interfacing with via Modbus TCP, I wanted to try some of my code partition in a Subvi

However, in doing so, I will be very difficult to understand how I can read the current settings of player for the ramp up and down values and update these values in the front of my control.

The Vi sub is tested and works exactly as I want. Selection playback (system lock on pressed) reads the registers of the reader and exports controls and indicators. The indicators have been included because I didn't know how to move the data off the sub vi without them. Update of work to write the current value in the controls in the VFD logs.

However when I integrate my project more extensive this VI values are always represented by zeros if I lock switch. However, I see a momentary flash of the correct values after pressing the play button or if I change the closing operation changed, however, I would prefer that it to opperate in a mode of closing in order to reduce the overhead costs of communication on the disc.

Hello

A number of suggestions:

1. use references and property nodes to define indicators FP of a Subvi (you can learn more here and here)

2. do not put the indicators of production inside the case. When the case is not read, the VI generates the default values to the outputs and gives you the values null.

Good luck

Danielle

Tags: NI Software

Similar Questions

  • global variable functional to read and write data from and to the parallel loops

    Hello!

    Here is the following situation: I have 3 parallel while loops. I have the fire at the same time. The first loop reads the data from GPIB instruments. Second readers PID powered analog output card (software waveform static timed, cc. Update 3 seconds interval) with DAQmx features. The third argument stores the data in the case of certain conditions to the PDM file.

    I create a functional global variable (FGV) with write and read options containing the measured data (30 double CC in cluster). So when I get a new reading of the GPIB loop, I put the new values in the FGV.

    In parallel loops, I read the FGV when necessary. I know that, I just create a race condition, because when one of the loops reads or writes data in the FGV, no other loops can access, while they hold their race until the loop of winner completed his reading or writing on it.

    In my case, it is not a problem of losing data measured, and also a few short drapes in some loops are okey. (data measured, including the temperature values, used in the loop of PID and the loop to save file, the system also has constants for a significant period, is not a problem if the PID loop reads sometimes on values previous to the FGV in case if he won the race)

    What is a "barbarian way" to make such a code? (later, I want to give a good GUI to my code, so probably I would have to use some sort of event management,...)

    If you recommend something more elegant, please give me some links where I can learn more.

    I started to read and learn to try to expand my little knowledge in LabView, but to me, it seems I can find examples really pro and documents (http://expressionflow.com/2007/10/01/labview-queued-state-machine-architecture/ , http://forums.ni.com/t5/LabVIEW/Community-Nugget-2009-03-13-An-Event-based-messageing-framework/m-p/... ) and really simple, but not in the "middle range". This forum and other sources of NEITHER are really good, but I want to swim in a huge "info-ocean", without guidance...

    I'm after course 1 Core and Core 2, do you know that some free educational material that is based on these? (to say something 'intermediary'...)

    Thank you very much!

    I would use queues instead of a FGV in this particular case.

    A driving force that would provide a signal saying that the data is ready, you can change your FGV readme...  And maybe have an array of clusters to hold values more waiting to be read, etc...  Things get complicated...

    A queue however will do nicely.  You may have an understanding of producer/consumer.  You will need to do maybe not this 3rd loop.  If install you a state machine, which has (among other States): wait for the data (that is where the queue is read), writing to a file, disk PID.

    Your state of inactivity would be the "waiting for data".

    The PID is dependent on the data?  Otherwise it must operate its own, and Yes, you may have a loop for it.  Should run at a different rate from the loop reading data, you may have a different queue or other means for transmitting data to this loop.

    Another tip would be to define the State of PID as the default state and check for new data at regular intervals, thus reducing to 2 loops (producer / consumer).  The new data would be shared on the wires using a shift register.

    There are many tricks.  However, I would not recommend using a basic FGV as your solution.  An Action Engine, would be okay if it includes a mechanism to flag what data has been read (ie index, etc) or once the data has been read, it is deleted from the AE. 

    There are many ways to implement a solution, you just have to pick the right one that will avoid loosing data.

  • Read and write data to the content repository.

    Hi all
    We use the content repository to store a document and images on the web server in the Center.
    So we have created/setup a repository of content on the web center.
    Please proivde me some might document page to get an idea of how I can read and write the date
    content repository.
    You are most welocme to provide some idea /suggestion.
    Thank you
    Arun.

    You are using webcenter spaces or you create a custom application webcenter?

    When you create a custom application webcenter, you can make use of the workflow Documents. Jdeveloper resources catalog, you will find a few flows of Documents job that will allow you to add some components to manage documents in a folder structure.
    You must first create a connection to your content from your application server. This can be done in the Application resources, right-click on the connection and in the context menu, select "content repository". Them you must filll in connection to your content server details. Make sure you have selected "Set as primary connection for document service" because otherwise the document taskflows you deposit on your page will not find a connection.

    Once you have added the connection, you will also find a datacontrol to the content repository. In this way, you can use the datacontrol place the taskflow and you can create several custom tables.
    I'm not sure but I think the datacontrol also include surgery to create the document but I'm not sure...

    And if not enough, you can always do use the webservices provided by content server. In Jdeveloper you can easily create a datacontrol from Web services by providing the wsdl file. UCM provides for services so that you can import the wsdl into your application and you can easily create your own forms checkin, tables...

    Here is some information on how to integrate services document:
    http://sqltech.CL/doc/oas11gR1/WebCenter.1111/e10148/jpsdg_doc_lib.htm

    and here are some others:
    http://sqltech.CL/doc/oas11gR1/WebCenter.1111/e10148/jpsdg_content.htm#BABCCFJH
    http://sqltech.CL/doc/oas11gR1/WebCenter.1111/e10149/documents.htm#WCSUG2635
    http://sqltech.CL/doc/oas11gR1/WebCenter.1111/e12405/wcadm_documents.htm#WCADM205

    Published by: Yannick Ongena on Oct 8, 2010 08:23

  • Save and write data from table to table - easy

    Hello

    I got this system delivered to me. I'm new to LabView and just save the data from the table "average voltage" (inside the while loop) to do some additional testing of our product.

    I will like to do similar to this.

    (1) save in excel file.

    (2) save only when a button button and save it then 5 ilteration.

    (3) save and manipulate the data, so it is displayed in 6 columns (each LED 1) instead of 1 long colum.

    I tried different things with structure business T/F, which resolved the buttom-request. But I am in doubt I should use, writing to the file of the measurement or write to us to the worksheet (by using labview 15.0)-delimited according to my offer the best possible?

    He also seems to be too much to handle when I try to write in txt file, because it pops up with and error that I do not know how to fix, but it says this:

    Error-200279

    Possible reasons:

    The application is not able to cope with the acquisition of equipment.

    Increase in the size of buffer, most frequently the reading of data or by specifying a fixed number of samples to read instead of reading all available samples would correct the problem.

    Property: RelativeTo

    Corresponding value: current playback Position

    Property: Offset

    Corresponding value: 0

    Task name: analog channel

    Thanks in advance

    I agree with Taki, but want to make some additional remarks:

    • LabVIEW is a data flow language.  Think of the "flow" of your data.  You talk about "save only when a key is pressed" and a finite set of data.  You are collecting before the press the button and everything just do not save?
    • Data are collected at some rate, and likely, you don't want to "Miss" data points.  This means that you shouldn't do anything in the loop of the Collection that takes a long time.  If your recovery rate is low and your treatment is fast, you can have everything in a single loop.  Otherwise, to use the technical stream (producer/consumer is a good) to process the data in a single loop in parallel with the collection in a loop independent (and asynchronously).
    • How do you write your data?  You want to write "on the fly", as it is, or can you wait, collect everything, any format and then write it "all at once"?
    • What do you mean by 'save the file in Excel?  Do you mean a 'native' Excel file, one with the extension .xls or .xlsx?  Do you mean a Comma-Separated Variable (.csv) file this reading peut of Excel (and, indeed, usually registers itself to read, change the icon of the .csv files to "look like" it is really an Excel file)?  If the first case, I recommend using the report generation tool.  But for the latter, you can also use write delimited spreadsheet, which can be easier to use.

    Bob Schor

  • Enter key down and write a simultaneous control

    I am creating a dialogue with a field with behavior such that, once the user fills in the field and press the Enter key or return the new value is returned.  However, the problem that I am running is the key down event cancels the entry to the control doesn't happen.  I can't use the event value change because the user has the choice to leave the same fair value press enter (without change).  Any ideas or suggestions?

    Right-click on the control of the 'chain' and select "Update of value while typing".

  • Unable to pass values to the OPA of tabouts in fields of Siebel

    Hi Experts

    We urgently need some advise.

    We are trying to call OPA for different trigger points in Siebel as button clicks, saves record and field tab outs.
    The button clicks and saves record, we are able to pass values to the OPA and obtain desired output back through the event Runtime - Workflow - mechanism of mapping of the OPA.

    However for field tabout trigger points, the handshake with OPA is not happening correctly by above mechanism.
    We have TIME event triggered on SetFieldValue to the desired field, calling the Workflow to call OPA.
    However the OPA response xml output doesn't have the values of the input attributes and the results identified in the mapping of the OPA.
    It seems that until the record is saved or committed, the mapping is unable to get the value of the field of Siebel and move to the OPA.

    Please suggest how this can be achieved.

    Thank you
    Swati

    Swati,

    For most of Siebel connector works on the data stored in the data. If you want to access the values until they are registered, you will need to use the Active Business Object patch.

    Have a look at "Installer le Patch object Active" in "Oracle policy Automation connector for Siebel Installation Guide" at http://www.oracle.com/technetwork/apps-tech/policy-automation/documentation/opa-con-siebel-10-4-2-inst-guide-1894142.pdf

    Active objects are supported only for the object mappings (APM)

    See you soon
    Frank

  • DVD/CD RW do not read audio CDs or data or save a blank CD, but that it's ok to read and write DVDs

    My DVD/CD RW drive will not respond to CDs of any type, void, audio or data.  It whirs for a few seconds and then more nothing.  No AutoPlay (even if she is selected and in the registry as a value of 1), and if I try to click on the drive, the old hourglass stand forever and if I click on new does not, unless I have the disc, it erases then back to normal.

    The drive works fine for DVD reading and writing.  I tried to little nearly every thread relating to problems of CD, and I ran out of hair out! I uninstalled it, unplugged, repluged, rebooted, reinstalled, you name it! PC has updated the driver when I try to update.  I did all the advice regedit I saw and still nothing!  Anyone?  Please?

    Hello

    You have disk problems as the CD/DVD is actually 4 discs in 1 case (CD & DVD burning and)
    Playback of CD and DVD). So it is not unusual for parts from 1 or 2 to not work so that others do
    correctly.

    A CD/DVD cleaner might help.

    CD have a tolerance + - and your can read/write on the edge outside these discs
    tolerances. They may be delivered, but it is generally more economical to replace the disk.

    Several good info here:
    http://Club.myce.com/

    CD/DVD units
    http://www.myce.com/storage/

    Notes on the troubleshooting and repair of readers of compact disks and CD-ROM Drives
    http://www.repairfaq.org/repair/F_cdfaq7.html#CDFAQ_014

    ===========================================

    This troubleshooting could not help if there is alignment and/or wear issues however it
    a shot.

    Step 1: Please do all the same underneath if you did some before as is often total
    a process that solves the problem.

    Try this - Panel - Device Manager - CD/DVD - double click on the device - driver tab.
    Click on update drivers (this will probably do nothing) - RIGHT click ON the drive - uninstall.
    RESTART this will refresh the default driver stack. Even if the reader does not appear to continue
    below.

    Then, work your way through these - don't forget the drive might be bad, could be a coward
    cable or slight corrosion on the contacts (usually for a laptop) and other issues.

    Your CD or DVD drive is missing or is not recognized by Windows or other programs
    http://support.microsoft.com/kb/314060 - a Mr Fixit

    Try this fix manually if the Fixit 314060 does not work
    http://www.pchell.com/hardware/cd_drive_error_code_39.shtml

    Your CD or DVD drive is missing or is not recognized by Windows or other programs-
    a Mr Fixit
    http://support.Microsoft.com/kb/982116

    The CD drive or the DVD drive does not work as expected on a computer that you upgraded to
    for Windows Vista
    http://support.Microsoft.com/kb/929461

    When you insert a CD or a DVD, Windows Vista may not recognize the disc
    http://support.Microsoft.com/kb/939052

    Your CD or DVD drive cannot read or write media - A Mr Fixit
    http://support.Microsoft.com/GP/cd_dvd_drive_problems

    CD/DVD drive does not appear in Windows Vista, or you receive this error in Windows
    Vista installation after booting from the DVD (AHCI)
    http://support.Microsoft.com/kb/952951
    Drive CD - R or CD - RW Drive is not recognized as a recordable device
    http://support.Microsoft.com/kb/316529/

    Hardware devices not detected or not working - A Mr Fixit
    http://support.Microsoft.com/GP/hardware_device_problems

    Another possibility is that the cables are loose. Remove ALL power, then make sure that the cables in both
    ends. Remove and replace, do not just tight. For laptops, you can often clean power and
    contacts data with a pencil eraser.

    Some DVD players do not use the Windows default drivers so check with the manufacturer of system and
    manufacturer of device to see if there is a firmware or drivers for your drive if necessary.

    ===============================

    Step 2: You have disc problems as the CD/DVD is actually 4 discs in 1 case (CD & DVD
    Burn and CD and DVD read). So it is not unusual for 1 or 2 operational so that other parts
    do it right.

    Did you follow the Troubleshooting Guide for the reader who still does not work? There are
    the entries in registry that the troubleshooter does not solve and those who "might" be the cause.

    Check with your Maker system and a device for the two possible firmware updates and
    the correct registry entries for your car.

    Here are the keys that I of course are those in question - for the subkeys of the CD/DVD drive
    as there will be other subkeys in these keys. Do not forget to ask specific keys involved as well as
    the parameters.

    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\IDE

    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Hardware Profiles\0001\System\CurrentControlSet\Enum\IDE

    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\ {4D36E965-E325-11CE-BFC1-08002BE10318}

    -----------------------------------------------------------------------

    You can probably find more info here and maybe even the exact registry for your CD/DVD settings
    drive from someone with the same model.

    Forums - a lot of expert real help
    http://Club.myce.com/

    CD/DVD units
    http://www.myce.com/storage/

    Use DevManView to locate the CD/DVD in the registry (be careful and do a prior Restore Point)
    nothing change) - find the DevManView device and then make a right click on it free in RegEdit.

    DevManView - free - an alternative to the standard Windows Device Manager, which displays all the
    devices and their properties in flat table, instead of the tree viewer
    http://www.NirSoft.NET/utils/device_manager_view.html

    I hope this helps.

    Rob Brown - MS MVP - Windows Desktop Experience: Bike - Mark Twain said it right.

  • Extract PDF form data using JavaScript and write in the CSV file

    I received a PDF file with a form.  The form is * not * formatted as a table.  My requirement is to extract form field values and write into a CSV file that can be imported into Excel.  I tried using the menu item "Merge data from spreadsheet files" automated in Acrobat Pro, but the release includes both the labels and values.  I'm mostly just interested in the form field values.

    I would use JavaScript to extract the data from the form and learn JavaScript write CSV file (since I know what should look like the spreadsheet of end).  I got regarding the extraction of the fields in the form:

    this.getField("Today_s_Date").value;

    And the rest of this post: http://StackOverflow.com/questions/17422514/how-to-write-a-text-file-in-Acrobat-JavaScript , I tried to write to CSV using:

    var cMyC = "abc";

    var doc = this.createDataObject ({cName: "test.txt", cValue: cMyC});

    but I get the following error:

    "SyntaxError: syntax error".

    1:Console:Exec ".

    Ideally, I don't want to use a third-party tool online to make, because the data are sensitive.  But please let me know if you have any suggestions.  The ideal output is a CSV file that an end business user can open in Excel to see the format of spreadsheet of his choice.

    Did anyone done this before?  Open to hearing alternatives as well.  Thanks in advance!

    The code you have posted works fine for me in the JavaScript console, so I suspect the problem is something else. Where did he put the code and y at - he seized another code?

    In addition, if CSV is not a strong requirement, I would say that you use delimited by tabs instead. Fields normally cannot contain tab characters, this is a good qualifier to use. It will be also more reliable when you import in Excel. If you need to process the field data that may contain quotes, you need prepare correctly the string data and can use a JavaScript library like this: https://github.com/uselesscode/ucsv

  • Navigate between the report and dashboard and pass values between another column

    Hello

    I have a question about navigate from 1 report to a dashboard page passing value from column 1 to column 2 in the second report...

    In OBIEE 11 G, I create link action report 1, column 1 and this link from the action is go to the content of the BI and the destination is a dashboard page, which has used 2 column as a dashboard and there are 3 reports that all use column 2 to filter. Now, the dashboard page 2 column is an alias for column 1 report 1, from the point of view of users, these are the same, but OBIEE point of view, they are different.

    My action link is able to access the dashboard, however, the value in column 1 which I clicked on run navigation, not are placed in column 2 as the line of dashboard does not receive this value when navigating...

    Since I can't put column 1 in dashboard 2, nor that I can put the 2 column in the report 1. Because our data model is done in the way that if I use column 1 or 2 in both cases, it will be o-ring...

    Is there a way around this problem?

    Let me know if I need to elaborate

    Thank you

    Hello

    You are going to have three main dashboard page (i.e., dashboad1, 2, 3) in the dashboard you will be having 3 different relationship with different column aliases (e.g. columnx_alias1, columnx_alias2, columnx_alias3) and you're going to have a dashboard more page say dashboardx a report with columnx. Now if you click on report of dashboard1 to go to dashboardx, click on report of dashboard2 also should go to dashboardx, click dashboard3 report should also go to dashboardx.

    1 > you can create 3 variable presentation for column 3 aliases and hide. {{{You can use the union query in sql result say columnx select from table where columnx='@{column1}' union select columnx table where columnx='@{column2}' union select columnx table where columnx='@{column3}'.
    2 > now you can hide these guests with variables.

    Please let me know if you are facing a problem.

    Thank you
    Yacoub

  • Write the header and mixed data on the worksheet

    Hello world

    I'm having some problems with writing my data in a spreadsheet file... Basically, I chewed my data and got the values that I want... When I stop the loop I want data saved in a spreadheet... The first line must be a header, and the lines below should be the corresponding data, consisting of a string and numeric data. See the example below.

    Topic name, Max Force (N), means Force (N), Min Force (N);
    David, 2134, 23, 284;
    Phil, 1234, 43, 321;
    Tina, 4059, 335, 55;

    Can someone please help with this?

    Kind regards

    Jack

    This will create a queue (test.csv), check if file exists(no:_creates_header_plus_data...if_yes:appends_data_only):save to a folder first... vi test.csv will be saved in this folder also.

  • I'm not able to install illustrator creative cloud CC. This is the error when I download creative cloud app. "Cannot write the registry value. "Verify permissions, and then try again.

    I'm not able to install illustrator creative cloud CC. This is the error when I download creative cloud app. "Cannot write the registry value. "Verify permissions, and then try again.

    No one can tell you anything without the info adequate system or other technical details, including the exact error message.

    Mylenium

  • Pass value and Validate

    Why this will correctly validate in my IF statement? Basically, a user selects an option in the drop-down list. The value is passed to t.jsp (himself), and if the 'All' option is chosen, he does something. If the years are selected, then she does something else.

    t.jsp (simplified version of what I want)

    < % @ page import = "" java.sql. * "% >"
    < % @ page import = "" java.io. * "% >"

    < html >
    < are method = "get" action = "t.jsp" >
    Select the year:
    < select name = "year" >
    < option value = "All" > all < / option >
    < option value = '2012' > 2012 < / option >
    < option value = "2013" > 2013 < / option >
    < option value = '2014' 2014 > < / option >
    < / select > < br >
    < input type = "submit" value = "Submit" >
    < / make >
    < / html >

    < %
    String selectedValue = request.getParameter ("year");
    String yearq = "";
    String temp = selectedValue;
    int numb = 0;

    out.println (selectedValue + "1selectedValue");
    out.println (yearq + "1yearq");
    out.println (numb + "1numb");
    out.println ("1temp" + temp);

    If (selectedValue is "All")
    {
    yearq = "new instruction '" + selectedValue + "'";
    out.println ("IF not ALL, then" + yearq);
    }
    on the other
    {
    selectedValue = "20%";
    yearq = "";
    out.println ("If ALL THE, then the selected value is:" + selectedValue);
    }

    out.println (selectedValue + "2selectedValue");
    out.println (yearq + "2yearq");
    out.println (numb + "2numb");
    out.println ("2temp" + temp);

    out.println ("Line2, my selected value is: '" + temp + "' and then I now have this value.") "+ yearq +"' <-it! ") ;

    % >

    Help, please! Thank you.

    Published by: 973560 on February 15, 2013 13:13

    1.) do not use == to compare strings, use the equals method instead.
    2.) avoid to mix html and java code in the same file.

  • hide and show the region and pass values to the region

    I have a p_dept lov static 10,20,30 and submit button

    I have 2 areas with the name dept10, dept20

    When I select lov p_dept = 10 and submit button then see the region of dept10 (do not know how to pass values from: p_dept suggest key)

    dept10 region query is
    Select * from emp where deptno =: p_dept

    dept20 region query is
    Select * from emp where deptno =: p_dept

    Please someone help me how can I achieve it with stetp by step.

    Hello

    You can simply set the display state of your regions.

    - Edit dept10 region set condition [item / column = value]
    - Expression 1
           p_dept
    - Expression 2
           10
    

    Do the same for the dept20 region

    - Edit dept20 region set condition [item / column = value]
    - Expression 1
           p_dept
    - Expression 2
           20
    

    When you submit a page, your selected items will be defined in the session if you do not need to pass any parameter.

    Thnks

  • How to open Excel Template save it under a different name and then write and save data to it at intervals of regualar

    I have an excel template that I created. I open this model, save it under a different name and then writing and saving data to a sheet excellent at regular intervals. It gives me an error 5, I understand what it means and I'm working around him.  However, after too many hours trying to figure it out, I asked for any help or input. I've attached an example vi, not the real one because it is very involved.

    Thank you


  • Passage of the value of sub vi

    Hello

    I am programming some hardware and I'm having a pretty basic problem. I have a sub VI which controls the aquistion of data having a busy boolean signal that is set to true when the equitpiment is activated.  I would like to pass this signal on my main vi, but the light in my main vi ever. According to me, the question is the sub that VI only passes values back when he finished, and it ends when the equiptment turns off. I created a vi example to illustrate my point. Is there a way around this problem?

    Thank you

    Create a reference to the indicator control in main VI, pass it to the Subvi (via the connector pane) and write inside here using a property node.  Bob will be your uncle.

    Oh Yes.  Please do not use stacked sequence structures.  Why a search on these forums for reasons and alternatives to the use of these horrible, horrible, horrible things.

Maybe you are looking for

  • BIOS is not accesible on Satellite S50-B-13N F2 key

    Hello I need emergency access to you BIOS but now taking the "F2" Funktion key does not work, so that the F1... F12 is activated (special function disabled), any case I also checked to press FN in parallel, hchalso doesnot work.Access is always ignor

  • Qosmio F60 - 10 L PQF65E - BlueRay Player do not work.

    Hello everyone, my name is Thomas Dettmann, I have a Qosmio F60 - 10L PQF65E - 009019GR which has a blue ray player and a blue ray player. A few days ago I want to see avatar in blue ray. The player was told he isn't updated to play this video. So I

  • XP home and cannot install net framework 1.1sp1

    Cannot install Microsoft.net 1.1 SP1 running XP Home Edition... can someone help me?

  • problem with the laptop,

    laptop fell off couch upstairs. When you turn on it says PXE - E61 media test check the cable failure System operpating from PXE - MOF pxe rom not found laptop is a medion akoya. Thank you

  • HP Deskjet 3050 J610 &amp; Driver Windows 8

    I just had windows 8 on my laptop and try to load the drivers and spin in the roadblocks.  It shows no drivers for windows 8, and when I try to use windows 7, it says bad operating system.  It is a fairly new printer/fax/scanner and I really you don'