Sub data

I have a simple sub that has a loop For with the usual index. I want to move the index for the main program of vi and first pasing experienced by a cable output and Connector for the sub. However, the index does not pass because the loop is occupied in the sub. Can I use a global variable, but the index just goes to the global variable façade. How can I get the value of a numeric index to the face before of the main vi?

Create a reference to your index finger in your main.vi and pass to the Subvi. In your Subvi write your index value to the value of the property.

Don't forget to include the reference on the part of the connector you

Tags: NI Software

Similar Questions

  • Dial the node library with cluster table feature using the pointer of table data

    Hi all.

    I am writing a wrapper of LabVIEW for an existing DLL function.

    The service was, as one of its parameters, an array of structures.  The structure is very simple, containing two integers.  I use the call library function node to access.

    In Labview, I created an array of clusters, when the cluster has two integers of 32 bits as members.  So far so good.

    Now, I have to pass this in the node library function call.  I use here in trouble.

    I used the LAVA so the topic in the knowledge base as my main sources of information, although I read a lot of topics in the forum on the subject too.

    I don't understand I could write a new function that takes as a parameter a struct with the size as the first member and an array as the second, and I might just do this and do call the regular service, but I was hoping to do more simply.

    The file function C LabVIEW generates for me the COLD Lake when I choose "To adapt to the Type" and "Data in the table pointer", the prototype he expects is:

    int32_t myFunc (handful of uint32_t, uint16_t channel,
    int32_t FIFOnumber, Sub data [], int32_t numWords, int32_t * actualLoaded,.
    int32_t * actualStartIndex);

    And the prototype of the function in my DLL is

    int myFunc borland_dll (DWORD channel, channel of Sina,)
    FIFOnumber int, struct mStruct * data, int, int numWords * actualLoaded, int * actualStartIndex);

    It sounds like a match for me, but it doesn't work (I get garbage in the data).  The topic referenced above LAVA, I realized it would work.  This isn't.

    If I have to cast the data to the pointer-to-pointer I get when I generate c code in my wiring to a CIN struct and by generating, then I seem to get what I expect. But it seems to work when I choose "pointers to handles" too, and I'm expecting data table pointer to give a different result.

    Is it possible to get it works directly, or I have to create a wrapper?  (I am currently using LabVIEW 2011, but we have customers using 2009 and 2012, if not other versions as well).

    Thank you.

    Batya


  • What about datareporting.sessions.current.activeTicks in: config

    I wonder what that what follows about: config entries are for

    -datareporting.sessions.current.activeTicks (count in increments unique all few seconds)

    -datareporting.sessions.current.totalTime (in thousands jumping every few seconds)

    -datareporting.sessions.previous.NNN (40 entries where NNN is currently numbered 158 to 198)

    I'm afraid that data are stored, updated, and/or transmitted to a third party without my consent. It may also be worth mentioning that the telemetry and Crash Reporter are the two disabled in my Advanced Options.

    These data are collected, but is only to send to the Mozilla server if you enable this sub data choices.

    • Tools > Options > advanced > data
    • Subject: telemetry
    • Subject: healthreport (Firefox 21 +)
  • Find values for all variables

    Hello

    The Sub data, I want to find records where status = 1 and the values for all the questionnarie ($quest1 to Quest5) is other than 1, i.e. the value must be null, 0 or a negative integer

    Thanks in advance

    with t as

    (

    Select 101 as the nest, 1 as the status, "Cookie" as a term, 1 as $quest1, Quest2 0, 0 Quest3, 0 Quest4, 0 as Quest5 from dual union

    Select 102, 1, "Chips", 0, 0, 0, 0, 0 double Union

    Select 102, 1, "Chips", 0, 0, 0, 0, 1 double Union

    Select 102, 1, 'milk', 0, 0, 0, 0, null Union double

    Select 103, 0, 'mixture', 0, 0, 0, 0, 0 double Union

    Select 103, 1, 'sugar', 0, 0, 1, 1, 1 Union double

    Select 104, 1, 'sugar', null, null, 0, 0, 0 double Union

    Select 105, 1, 'the', 1, 1, 0, 0, -1 Union double

    Select 106, 0, 'milk', 1, 1, 0, 0, -1 double Union

    Select 106, 1, 'milk', -1, -1, 0, 0, -1 Union double

    Select 106, 1, 'milk', 0, 0, 0, 0, 0 of the double

    )

    Select * from t

    When status = 1

    Output

    NESTSTATUSTERM$QUEST1QUEST2QUEST3QUEST4QUEST5
    1021Chips00000
    1021Milk0000
    1041sugar000
    1061Milk-1-100-1
    1061Milk00000

    Select *.

    t

    When status = 1

    and nvl ($quest1, 0)<= 0="">

    and nvl (quest2, 0)<=>

    and nvl (quest3, 0)<=>

    and nvl (quest4, 0)<=>

    and nvl (quest5, 0)<=>

  • LOG_ARCHIVE_DEST_2 parameter error and cannot start the primary database

    Hello
    I was getting errors in my RMAN backup script. I took a glance on the database settings. Looks like I made a mistake when I was in the LOG_ARCHIVE_DEST_2 setting in the standby database. Instead of putting on the eve I put it in the name of the primary instance. I also noticed that the LOG_ARCHIVE_DEST_2 setting has been changed in the primary database where I put it first. I guess he's changed when I changed the sleep setting. I have two questions:

    (1) can the parameter LOG_ARCHIVE_DEST_2 be changes for the correct setting now that I set it wrong. The reason why I ask is because when I tried to change by using the following ALTER SYSTEM command I got an error saying something about conflicting attributes. I guess it's because the name of the primary instance has been upgraded with the DB_UNIQUE_NAME instead of the name of the standby instance. If I could change the LOG_ARCHIVE_DEST_2 setting to sleep first then maybe I can change the primary to the correct setting? Please provide markets.

    ALTER SYSTEM SET LOG_ARCHIVE_DEST_2 ='SERVICE = < DB PRIMARY > ASYNC VALID_FOR =(ONLINE_LOGFILES,PRIMARY_ROLE) DB_UNIQUE_NAME = < PRIMARY_INSTANCE > '

    (2) the second question is you can start a database using a spfile? (I use ASM and Data Guard) I ask because while I was connected to the primary database I executed the following command:

    ALTER SYSTEM SET LOG_ARCHIVE_DEST_2 = 'SERVICE = < PRIMARY_INSTANCE > ASYNC VALID_FOR =(ONLINE_LOGFILES,PRIMARY_ROLE) DB_UNIQUE_NAME = < PRIMARY_INSTANCE >' scope = spfile;

    I then stop the database and try to start but it won't start because it says to conflicting attributes. I don't create a pfile from spfile file before you shut down the database. (I'm bad). How can I change the setting for the primary database to start over. (The PFILE file is different in ASM. There are sub + DATA but has only a single line indicating where is the location of the SPFILE) I need to run the following RMAN RESTORE CONTROLFILE FROM backup AUTOMATIC;

    Please help as it is a production environment that was supposed to be delivered only yesterday.

    Any help will be greatly appreciated!

    Thanks in advance.

    J

    I always use it. So my answer is Yes.

    Please consider several of the responses of CKPT marking "useful".

    He works very hard in the forum and didn't work great!

    I call it "SuperStar."

    Best regards

    mseberg

  • Pending validation form sup

    Hello

    I have a form main user who allows to call another form of inserting data into a table, once the user has completed the work on this form of overtime, it will return to the main form.

    Is there a way for me to do the DML arrived on this form of sub only committed if the user hit the Save button on the main form?

    Thank you

    Not possible, due to the which command Commit?.

    Instead, keep the form sub data temporarily in session or state collectionsand treat it when the main form is saved.

  • Display of text in htmlText list...

    I'm having a problem with the following code.

    Display text of paragraph

    evt is a parameter be introduced into the function that represents a specific page number.

    myText.htmlText = paragraphText;
    var xmlSubMenuLength:Number = xml.sim.bodyText.page [evt].subpage.subtitle.length)
    trace ("mySubTitle =" + paragraphText + subTitleText);
    if(xmlSubMenuLength>0) {}
    for (var j: Number = 0; j < xmlSubMenuLength; j ++) {}
    var subTitleText:String = xml.sim.bodyText.page [evt].subpage.subtitle;
    myTitle.htmlText = subTitleText;
    trace ("mySubTitle =" + subTitleText);
    var topicOutline = subTitleText;
    }
    myText.htmlText += "\n" + '•' + subTitleText + '\n "+" ";

    At present, the code is displayed:

    Insert content here
    • Sub 1 Sub Test Test Data 2 Sub data Test 3

    What I really want to see is:

    Insert content here
    • Test sub data 1

    • Test sub data 2

    • Test sub data 3

    Little help? I've been away from Flash for several months and I'm just now getting back to it.

    Thank you

    ~ Chipleh

    You can just do a simple list with HTML. You are using

      as a starting end tags, then
    • period of time to create each element of the list. It would go something like:

      myText.htmlText = "

        ";

        "myText.htmlText +=".

      • "+ subTitleText +"
      • ";

        myText.htmlText += "

      "; "

    • How to transfer data from waveform for a sub vi

      I'm seeing plots in a Subvi when I want. In my test, the waveform in the main VI display several plots of channels as I expected, but the Subvi shows only a single parcel. Joint programme.

      I can simply convert the dynamic data in table 2D Digital to display several plots, but I will loss the timestamps I really want to show in the plot than in the main program.

      Thank you

      hrwang wrote:

      Thank you. I tried to follow your instructions.

      In fact you have not.  You did not create an indicator of waveform bays to copy onto the Subvi bays of waveform control.  See attached Subvi that I modified.

      However, it still shows a plot in the sub vi and plot begins time 0. The new program is attached.

      This is because you have created a table 1 d double which means only 1 field and no data delay

      I think that the 2D table are necessary to have several plots.

      No. a table 1 d of waveforms can be used for several plots.

      I want to run the program for the day, so it is convenient if I see the date/time in the x axile, like the one in the main program, instead of from the time 0. Dynamics of the data type is complicated and I don't want to deal with its structure, that's why I use a waveform as a control chart, hoping the information all dynamic data is transferred to the Subvi plot properly. Apparently, it did not work.

      If you don't want to use dynamic data, then do not use the DAQ assistant.  The DAQ assistant, is what gives you dynamic data.  I see that you did to a conversion of DDT in a table 1 d of waveforms, which is good.  Now you just send this table 1 d waveform to the Subvi.  Because you used a table 1 d of doubles in the Subvi, you have a conversion point.

      All solutions?

      Thanks again.

    • 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

    • Exchange of data between the main VI and sub - VI

      It is my first attempt to build a comprehensive program and hope you can help me.

      The idea is to load a set of data and to perform several calculations and operations on them, find themselves in the creation of a report file.

      What I want to do is to build a main VI which contains the data, and several sub - vi to do the math, dynamically loaded in a subgroup of experts (for the simple user interface). I thought about this architecture because I'm sure I'll have to change the calculation of VI, and I don't know how I'm going to need, so I can just add an another calc VI to the plugin dir and load it. The thing is, I have to keep moving data back from the main VI to the Subvi and maybe even between sub - vi. Is there an easy (or not so hard) how? I thought about queues, but sometimes the data is to be sent to more than a subvi, and I can't have a queue for each. The idea that I get is like a network producer-consumer mode BOX: the main VI produce some data and all those interested in this data use. Then they send the results back (as a "producer") and all stakeholders in the response it consumes.

      Attached, is a "skeleton" of what I intend to do.

      There are several ways you can accomplish this. First of all, you can use the Start Asychronous Call, which will provide a component of connector for you. So, it is easy to wire the reference to it. You could also implement a global functional (also known as a motor of action) to access the event reference. It is the approach we use for our shared events. If you have lines between the main VI and ths Subvi you to format a particular message reference. However, I don't think that this approach would correspond to what you are doing.

    • How to use the node function call library for a function in the dll with the data SUB type

      Hi all

      I would ask for your kind help

      I am facing a problem with the call library node.

      I have a C++ (stdcall) function, which has Sub as data type

      XXXX error code (hwnd, lid, getValue, * Sub data1, * Sub data2)

      data1 and data2 types are constantly changing based on the value of 'getValue '.

      Mainly I can use the call library node several times and adapt each node according to the types of data data1, data2 and extract the values and use in the code. Here is no question. Real question is:

      My question:

      How can I use a node of library time call and make a case according to the 'getvalue', who will control the data1, data2 data type. Here I really seeking solutions.

      My tests:

      I used varaints as entry to the libray call node of the data1, data2 and selected parameters in the call libraby node as "Adapt to type. Here labview just crashed.

      I appreciate your suggestions to feedbackand.

      Thank you

      Karine

      You must allocate enough space for data1 and data2, and then pass a pointer to this space. An easy way to do this is the function to initialize table. Set the U8 type and size for the number of bytes required. Pass this array to the function as a pointer of table data.

      After the function call returns, you need to extract the data in the table. You can do it manually, but a simple approach is to use the array of bytes to a string. Then, in a housing structure, use Unflatten chain to convert the string to the correct data type. This method also converts the "endianness" which will be probably necessary; Be sure to only set all entries for unflatten correctly.

    • How to transfer contineously updated data of sub vi VI main

      Hello Mr President

      I'm using one of the below attached vi vi Sub and sub vi to hand data transfer. During execution data are updated under vi, but he was not transferred to vi main, is there any setting it takes played in labview to transfer data from sub main VI vi, currently I am using Lab VIEW 2013 this stroke folder version.la I have attached both vi and vi Test Sub Main Test and call the dll for sub vi. His complete my master's project need please give the possible sollution initially.

      Hi Frank,.

      When you are a beginner in LabVIEW, I recommend free online courses offered by OR on their Web site.

      I also recommend to use the help of LabVIEW and the ExampleFinder to learn the use of certain functions.

      BTW. reminders of DLL to help and user-defined events is not a perfect entry for a beginner of LabVIEW, how has any problems using rather simple notifiers/queues. Again, I recommend to take online courses!

    • Components for the Acquisition of data for a Sub miniature sensor

      Hello

      I'm looking to acquire the data of two simulatneously cells (T4 - 100 L Measurement Specialties ELFS) load Sub miniature.  The FS it out 100 lbs to 2.83mv / lb.   I already have LabVIEW 8.2 and have acquired data using an analog I / 0 but my signal was weak compared to the noise in the system.  I am a high speed data capture because the application that I use has an impact.

      My question is: what the amplifier signal conditioner and the DAQ combination would be the best for this aplpication?

      Thank you

      Scott Kramer

      Hi Scott,.

      Welcome to the forums EITHER!  Looks like you might be interested by the 9237 bridge and strain measurement Module. The 9237 comes in a USB, Ethernet, or Wireless channel, or as a stand-alone module for use with a cDAQ chassis.  The 9237 offer a 50ks/s/ch sample rate, up to 10V of internal excitement which should reduce the noise from your system.  Based on what you mentioned, it's the product I would recommend - you can find the manuals on the links above to verify that it meets all your needs.  There are additional specifications that you need?

      -John

    • Cannot specify data sub to the header title

      Hello

      It seems that the title of the header cannot use the sub element as in the example below. Article is first on the list of sorting.

      Someone at - there a work around?

      Thank you!

      {ListItemComponent}
      type: "header.
      {To header
      Title: ListItemData.group
      }
      }

      I think that this is normal.  Note in the docs of GroupDataModel, where it says "for headers, GroupDataModel::data() returns a QVariant containing the value that all the children in this header have in common. In the illustration below, GroupDataModel::data() is returned a QVariant containing the QString 'A' to the first heading, 'B' for the second header and so on. »

    • source of report data Sub running

      I have a report under and on the main report and I would like to implement in report and report primary soruce of data using stored procedures.

      I have the following code, it runs only under report, but no report was void on this report.

      I would like to know some way put void report and main report to run a report that has sub report about it.

      Your information and help is much appreciated,

      Kind regards

      Iccsi,

      < cfreport format = "PDF" template = "subReport.cfr".

      Query = "#mysubStored #" >

      < / cfreport >

      < cfreport format = "PDF" template = "MainReport.cfr".

      Query = "#mydata #" >

      < / cfreport >

      < / CFIF >

      iccsi wrote:

      I would like to know some way put void report and main report to run a report that has sub report about it.

      If I understand you correctly, you want to pass a result set to your subreport to the calling script CFM.

      To do this, you must give your subreport a unique name in the report designer, and then you can do something like the following:

      " cfreportparam = subreport'SubReportName"query ="#mysubStored #" >

    Maybe you are looking for