Reentrant / invariant VIs how to use...

Hello,
I have a problem to run a vi reentrant (invariant). I set the vi
properties to reentrant and tried out two ways to start the vi. The vi
is intended to open a new little window showing a device name and
retrieving a measurement value for that device, thats all. I hand over
a cluster including the attributes (like device name, connection id,...)
First "call vi per reference":
That does not work because the vi does not start immediately. A window
is opened but the vi does not run. Than it is possible to start the vi
through the vi run button.
Second "invoke node":
The "invoke node" works for one device the way i need it. But when a
hand out other parameters for another device no second window is opened.
Hope someone can give me some hints.
Big THX
Attachement: The expand vi is my reentrant vi.
Attachments:
Expand.vi ‏97 KB

You can't achioeve what you want with a re-entrant VI.  What you
need is a VI template (Save the VI as a VI template, and it will get
the *.vit extension).  Simply renaming the file to a vit extension
won't make it a template.
Then whenever you open it, LV will generate a new copy of it.
The reson why you need to do this is because the panel of a reentrant
VI is decoupled from the code executing.  The panel will load only
once, but the code can be running in multiple instances in the
background.  Because of this, the front panel does NOT display any
of the real-time information of any of the multiple instances
running.  With a template, each piece of code has it's own
panel.  They are actually all different VIs, duplicated and
renamed on-the-fly by LabVIEW so that they can all co-exist, co-execute
and co-display.
Hope this helps
Shane.
Using LV 6.1 and 8.2.1 on W2k (SP4) and WXP (SP2)

Similar Messages

  • How to use multiple visa read in one program

    hi
    i am working at Hameg HM8143 power supply i want to measure voltage and current simultaneiously and use the measured values for further calculations. for this i used two visa read blocks.
    >>>>>>the measured values are shown in the same visa read string however i want it to be shown sepetately,
    >>>>>>One of the VISA read block gives error. so i want to know how to use VISA read to get current and voltage simultaneously in seperate strings
    >>>>>>than how to convert strings to numbers  for using them for my calcultions.
    i am attaching screen shot as well
    Attachments:
    screenshot.JPG ‏164 KB

    you can not use a single serial to send 2 commands simultaniously?
    There is a single serial line so one command has to be before another.  This doesnt mena that you can not read from 2 seperate threads but will have to ensure that there is a locking mechanism to make sure that your queries are atomic.  In labview encapsulating all communications can be done with an action engine which will allow for concurrent execution with automatic blocking of your resource (serial device).
    Paul Falkenstein
    Coleman Technologies Inc.
    CLA, CPI, AIA-Vision
    Labview 4.0- 2013, RT, Vision, FPGA

  • Tektronix AFG 3022: How to use both channel with VISA

    Hi all!
    I am trying to control the AFG with LabView using the NI VISA driver. There are several given VIs I can use, but I don´t know how to use both channels at the same time correctly. I attached a VI I made.
    Problems are:
    -Sometimes it works, sometimes random errors occur.
    -The waveform generation doesn´t start at the same time.
    -To stop the waveform generation I used the "initialize VI" because I found no better one. Else the generation goes on and on, even though the task was terminated in LabView.
    -How can I trigger the AFG with my NI 6259 in LabView?
    I hope someone has some good ideas helping me out...
    Best regards
    Yopp
    Attachments:
    AWG_out_pulse_2ch.vi ‏36 KB

    Hi Benjamin,
    thanks for the replay. You helped me out very good! I had the Visa driver. I downloaded the driver in your link and it´s way better (more functionality) than the one I used. I now have a configuration, which is working. But there are two things I still doen´t know:
    - How can I put out a trigger signal on the NI 6259. Am I doing this over the normal daqmx VIs? (I, by now, didn´t have the time to try it myself, maybe someone can give me a hint. Saves time...)
    - I want to create two signals on the AFG that are the same, but one is inverted. At the AFG it is no problem (output menu-> invert on/off). This function doesn´t seem to be available in the driver. Is there a possibilty to modify the driver and create a VI with that functionality? Can anyone do this for me or explain to me what I need to do it myself and how to do it?
    Best regards
    Yopp

  • How to use AD1836 VIs?

    hi,  everybody.
        glad to post my problem here. i hope somebody would help me .
        I am going to design an audio system on Blackfin533 Ez-kit. but i cannot know  how to use the BF AD1836 wait on data ready flag.vi  .
         where can i get the tutorial for the VIs (ad1836) ?
    thanks for your help.

    Hello,
    The AD1836AAS is just a particular model of the AD1836A.  For details on the differences between the models, take a look at the 1836's product page at http://www.analog.com/en/prod/0%2C2877%2CAD1836A%2C00.html  The 1836AAS is fully compatible with the example, and worked quite well with my 533 EZ-Kit.
    To help you further with the example, first I'll need to know which version of the LabVIEW Embedded for Blackfin Module that you are using, as the steps to troubleshoot are a little different for each version.
    I'm also curious to know if you can hear any part of your audio signal being passed through, or if the original signal you send into the board comes out garbled, if it stutters, or if all you hear is noise or silence.  Additionally, I recommend trying to rebuild the example with Build Configuration "Release" and Debug Mode "None".  This will disable all debug options and allow the code to run more efficiently on the chip.
    If the above still does not work after compiling, downloading and running the application, I would next check the switch settings and connectors on your EZ-Kit to ensure that they match the requirements listed on the front panel of the VI:
    Set SW9 switch 5-On, 6-On
    Connect an audio source to audio in (ADC1)
    Connect speakers to audio out (DAC1)
    Let me know what version you're using, the details above, and what the results of the above suggestions was and we can take it from there.
    Cheers,
    Matt Pollock
    National Instruments

  • How to use profile vis

    How to use profile dialog box to get information about VI execution time and
    its sbvi's ?
    Gregor

    > Open the top level VIs. Select profile VIs from the tools -> advanced
    > menu...Check the timing statistics and timing details boxes and click
    > the run button of the profiler. Now run the VIs.
    >
    > To see the timing statistics while the VIs are still running click the
    > snapshot button of the profiler.
    This is a good description, but to add just a little more info. The
    profiler adds information when a VI completes. This means that a
    top-level diagram won't get the profiling info written to it until the
    top VI diagram is completed. If you want that info in the profiling,
    run the program to completion, then Stop the profiling.
    Greg McKaskle

  • HT4993 I received a $50 visa reward when I bought an iPhone. I have no clue how to use it.

    II received a $50 visa reward when I bought an iPhone. I have no clue how to use it.

    Who did you receive this card from? They should have told you any restrictions there are in using it, otherwise it would work just like a credit/debit card.

  • How to use filter vis and peak detectors in compactRio

    Hi  all,
               We are
    using compact rio 9002 with IO module 9215. We are accessing a sine
    wave(of 1 KHz) input with some DC components in it. We need to filter
    out the DC and get the peak value of that sine wave. We have developed
    a program to acquire the same. But the problem we are facing is we are
    not able to filter out the DC and get the peak values inspite of using
    the filter and peak detector VI's. Suggest the reason and the solution.
    Regards,
    Labview Lovers.

    Hi Shivkumar,
    If you need to filter out the DC portion of the signal before you acquire the signal you may want to consider implementing AC coupling.  Which particular Filter and Peak VIs are you using?
    Regards,
    Bassett

  • Re: [SunONE-JATO] Re: How to use a tiled view without a model

    I'm not sure what is different for you now. You still parse the string
    and put it into a data structure. Before the data structure was a
    vector, in JATO its just a model with a "hidden" data structure (a hash
    map).
    MVC only really comes into play when you talk about where your write
    this code, and where the data structure is being stored. So really, JATO
    takes care of half of the MVC'ness of it all (where the data is store).
    You just decide where to be the code to populate the model.
    Make sense?
    Is there something different required of you in JATO in this scenario
    that I am not grasping?
    c
    Hoskins, John D. wrote:
    Thanks for the feedback.
    The problem I was solving involved a single string, which contained
    delimited subsets of information.
    The string looked like
    this:"time|analyst|description|time|analyst|description|..."
    In ND, I parsed it apart into it's components (time vector, analyst vector,
    description vector), populated the repeated.
    With JATO, how would I make a model for something that doesn't have a
    database component like this?
    I'm pretty new to this MVC thing, so bear with me.
    John D. Hoskins
    Telephone & Data Systems
    Application Development & Support
    Voice: 608.664.8263
    Fax: 608.664.8288
    Email: john.hoskins@t...
    -----Original Message-----
    From: Craig V. Conover [mailto:<a href="/group/SunONE-JATO/post?protectID=219212113009229091025149066024064239039098031198039130252055210">craig.conover@s...</a>]
    Sent: 6/26/2002 3.22 PM
    Subject: Re: [SunONE-JATO] Re: How to use a tiled view without a model
    I guess the only thing "weird" (for lack of a better term) about what
    you are doing is that your are populating the model on the "display
    cycle". Typically, the cycle goes like this:
    Request -> populate model -> update data store -> retrieve data to
    populate model -> display data
    some of the above steps are optional but hopefully you get the point I
    am making.
    So what you are doing is:
    Request -> populate model/display data
    If it works for you, then it's not necessarilly wrong. But I would
    probably have my model populated before I forwarded to the target
    (displaying view bean) or at a minimum, in the begin display event of
    the view bean or the tiled view, but not during the iteration of the
    tiled view.
    c
    jhoskins wrote:
    Craig,
    Thanks for the pointers. I ended up doing something else. I set the
    models setSize() method to set the max size, and as the tiles fields
    iterated, populated the value from some vectors I had the data in
    already. Is this solution fraught with peril and will ultimately fail,
    or should I try your way?
    John
    --- Craig V. Conover wrote:
    John,
    Check out the docs for DefaultModel. There is an appendRow() method.
    So get your tiledview's primary model (the tiledview's primary model
    should be set to use an instance of DefaultModel), model.appendRow(),
    then model.setValue("fieldname", value) for each value.
    Rinse, repeat as needed.
    c
    jhoskins wrote:
    I would like to use a tiled view, but populate the fields manually.
    Any pointers about where I can set the size of the tiled view? I tried
    setMaxDisplayTiles() in the beginDisplay, but it won't get down and
    generate the rows.
    John Hoskins
    To download the latest version of JATO, please visit:
    http://www.sun.com/software/download/developer/5102.html
    For more information about JATO, please visit:
    http://developer.iplanet.com/tech/appserver/framework/index.jsp
    To download the latest version of JATO, please visit:
    http://www.sun.com/software/download/developer/5102.html
    For more information about JATO, please visit:
    http://developer.iplanet.com/tech/appserver/framework/index.jsp
    To download the latest version of JATO, please visit:
    http://www.sun.com/software/download/developer/5102.html
    For more information about JATO, please visit:
    http://developer.iplanet.com/tech/appserver/framework/index.jsp
    To download the latest version of JATO, please visit:
    http://www.sun.com/software/download/developer/5102.html
    For more information about JATO, please visit:
    http://developer.iplanet.com/tech/appserver/framework/index.jsp

    Craig,
    Thanks for the pointers. I ended up doing something else. I set the
    models setSize() method to set the max size, and as the tiles fields
    iterated, populated the value from some vectors I had the data in
    already. Is this solution fraught with peril and will ultimately fail,
    or should I try your way?
    John
    --- "Craig V. Conover" wrote:
    John,
    Check out the docs for DefaultModel. There is an appendRow() method.
    So get your tiledview's primary model (the tiledview's primary model
    should be set to use an instance of DefaultModel), model.appendRow(),
    then model.setValue("fieldname", value) for each value.
    Rinse, repeat as needed.
    c
    jhoskins wrote:
    I would like to use a tiled view, but populate the fields manually.
    Any pointers about where I can set the size of the tiled view? I tried
    setMaxDisplayTiles() in the beginDisplay, but it won't get down and
    generate the rows.
    John Hoskins
    To download the latest version of JATO, please visit:
    http://www.sun.com/software/download/developer/5102.html
    For more information about JATO, please visit:
    http://developer.iplanet.com/tech/appserver/framework/index.jsp

  • Where do I use my Apple Id to locate workshops in San Antonio, TX on how to use my Iphone 4?

    Where do I use my Apple Id to locate workshops in San Antonio, TX on how to use my Iphone 4?

    You don't need an AppleID for this.  Just visit your neareast retail store and attend a workshop.

  • How to use Event Tracking Code for Google Analytics in Dreamweaver CS5

    I need to track clicks on links that go to an outside website. I've read about "event tracking code". I'm not sure if it's the right tool to use. And if it is, I've spent several hours reading about it and I can't figure out how to use it. It looks like you need to be an expert developer to be able to make sense of all this. I've always been helped when I ask a question here, I'm hoping that someone can help me.
    What my client needs is to know what links are being clicked, and how often. Here's the page where I want to do this: Available Homes - Arizona Vacation Home Rentals 
    I added a code that I created using the tool I found here: General Event Tracking Code for Google Analytics but can't see to be able to make this work. I added this code to the first link called "View it Here" for the top, left house. Here's the code: <a href="http://www.homeaway.com/vacation-rental/p3495538" onClick="ga('send', 'event', { eventCategory: 'clicks', eventAction: 'clicks on homes', eventLabel: 'Clicked'});" target="_blank">View it HERE!</a> 
    Then I set a Goal in Google Analytics like it said in the instructions but it doesn't seem to work... I would APPRECIATE ANY HELP!
    Thanks,
    Brigitte

    I think you misunderstood what Event Tracking is designed for.  This is from Google Help
    Tracking Code: Event Tracking - Google Analytics — Google Developers
    "Use this to track visitor behavior on your website that is NOT related to a web page visit, such as interaction with a Flash video movie control or any user event that does not trigger a page request."
    Clicks on links are page requests.  I think for your purposes, you may want the Cross Domain Link Tracking plugin.
    Cross Domain Tracking - Web Tracking (analytics.js) - Google Analytics — Google Developers
    Nancy O.

  • How to use count sql statement?

    i've never used the count function and i'm not sure how to use it to print it onto a html page...my code is below...
    <%
    String tot = (String)session.getAttribute("total");
    int total = Integer.parseInt(tot);
    Class.forName("org.postgresql.Driver");
    // create connection url
    String URL2 = "jdbc:postgresql://dbhost/ug59sxn";
    // pass database parameters to JDBC driver
    Connection Conn2 = DriverManager.getConnection(URL2, "ug59sxn", "hupeswop");
    // query statement
    Statement SQLStatement2 = Conn2.createStatement();
    // generate query
    String Query2 = "SELECT COUNT(*) FROM userteam WHERE total > '"+total+"'";
    // get result code
    ResultSet SQLResult2 = SQLStatement2.executeQuery(Query2);
    int position = (int)SQLResult2 + 1;
    %>
    <TD valign=top>
    <P align=center><FONT size=+1>Welcome <%= session.getAttribute("fName") %> <%= session.getAttribute("surname") %><BR>
    Your Team, <%= session.getAttribute("teamname") %>, are currently lying in position <FONT color=red><% out.println(position) %></font>, with <FONT color=red><%= session.getAttribute("total") %></font> points.<BR>
    </FONT></P>
    <P align=justify>      Use the shorcuts on the left to visit different sections of the game.
    You can change your squad around to prepare for forthcoming games (fixtures can be found in the statistics section),
    transfer a player in to your squad to add some depth or replace injured members, or perhaps browse the statistics section to see how your team is doing in the FFL table.</P>
    <HR>
    <%
    SQLResult2.close();
    SQLStatement2.close();
    Conn2.close();
    %>
    i get the following errors:
    type Exception report
    message Internal Server Error
    description The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: Unable to compile class for JSPNote: sun.tools.javac.Main has been deprecated.
    An error occured between lines: 62 and 84 in the jsp file: /main2.jsp
    Generated servlet error:
    /home/students/ug/ug59sxn/servlets-local/work/localhost/myapp/main2$jsp.java:80: Invalid cast from java.sql.ResultSet to int.
    int position = (int)SQLResult2 + 1;
    ^
    An error occurred at line: 88 in the jsp file: /main2.jsp
    Generated servlet error:
    /home/students/ug/ug59sxn/servlets-local/work/localhost/myapp/main2$jsp.java:108: Invalid type expression.
    out.println(position)
    ^
    An error occurred at line: 88 in the jsp file: /main2.jsp
    Generated servlet error:
    /home/students/ug/ug59sxn/servlets-local/work/localhost/myapp/main2$jsp.java:111: Invalid declaration.
    out.write("</font>, with <FONT color=red>");
    ^
    3 errors, 1 warning
    if anyone can help me out, please do so..thanx in advance...

    You cannot cast a ResultSet object (or any other object for that matter) to a primitive (such as an int)
    Replace the following line of code:
    int position = (int)SQLResult2 + 1;with this:
    int position = 0;
    if(SQLResult2.next())
      position = SQLResult2.getInt(1) + 1;
    }Additionally I noticed that you have put single quotes around total in the following line:
    String Query2 = "SELECT COUNT(*) FROM userteam WHERE total > '"+total+"'";Are you sure that the total column in the userteam table is of string type? If not, you don't need the single quotes.

  • How to use outside Class in packed library plugins

    I have found the very useful article from Michael Lacasse (https://decibel.ni.com/content/docs/DOC-19176) on how to use packed library as plugins. This approach makes the most sense when you try to distribute additional code after your executable has already been installed.
    My problem is that when I try to use a class from the main code in a plugin, the plugins won't work anymore. Ideally, I would have liked the parent plugin-interface to inherit from a class used in the main code, or using the class as an input parameter of the plugin would be the next best thing.
    I got several errors, some at execution time (#1448) or at edit time ("This VI does not match other VIs in the method: connector pane terminal(s)"). I have settled to use clusters to pass data to the plugins.
    My question is: Is it possible to use a class defined in the main code in a packed-project-library, either inherited or as a parameter? If yes, do you have any example?
    Marc Dubois
    HaroTek LLC
    www.harotek.com
    Solved!
    Go to Solution.

    I should point out that it's important to use the copy THAT'S IN THE PPL, *-NOT-* the copy from your source.
    It will compile if you mix them together, but they aren't the same object, and won't share data.
    You should never refer to your source code for the class, except to build the PPL.
    (Consider using a separate project, to avoid temptation).
    Steve Bird
    Culverson Software - Elegant software that is a pleasure to use.
    Culverson.com
    Blog for (mostly LabVIEW) programmers: Tips And Tricks

  • When i update apps on my iphone they need the ID that i used when i downloaded these app and i forgot this ID and a make a new ID how i used the new one to update these apps thanks

    Hello all,
    when i update apps on my iphone they need the ID that i used when i downloaded these apps and i forgot this ID and a make a new ID
    How i used the new one to update these apps?
    thanks

    Your device can hold apps from multiple IDs, but to update them you have to swicth identities which is time consuming. If possible use only the one ID. If you need to reset the password for your old ID visit My Apple ID.
    tt2

  • How does the URL of DataSocket constitute?And how to use it in LabWindows/CVI ?

    Hi !
    There's a problem puzzled me some days.How does the URL of DataSocket constitute ? And how to use it in LabWindow/CVI ?
    For example.I have downloaded a code in http://zone.ni.com/devzone/cda/epd/p/id/3787.I want to make it work properly.So I configure my DataSocket Server Manger according to the URL of this statement.
    DS_Open ("dstp://weather.natinst.com/weather/current",
    DSConst_ReadAutoUpdate, DSCurrentCallback, NULL,
    &dsCurrentHandle);
     My DateSockket Server Manger is configured as:
    However,it could not work properly when I debug it.
    There's a introduction at the top of the code."You may need to replace the references to weather.natinst.com to 130.164.140.10 if the DNS isn't working properly."So,I modified the statement into
    DS_Open ("dstp://130.164.140.10/weather/current",
    DSConst_ReadAutoUpdate, DSCurrentCallback, NULL,
    &dsCurrentHandle);
    but,it did work properly.
    We want to communicate with other computers via the URL of  DataSocket in LabWindows/CVI.Whereas,how could we make it ia the URL ?
    If anyone could help me solve this problem,I would appreciate it very much !
    Best regards.
                     xiepei
    I wouldn't care success or failure,for I will only struggle ahead as long as I have been destined to the distance.

    Hi !
    Thank you very much for your reply! I will accept your advice.
    Besides,I have another question.If I want to visit other computers or other websites,how does the URL of DataSocket  I constitute ? Does the URL has any relation with the DataSocket Server Manger ?If does,how to configure the DataSocket Server Manager to let them connected.If they have no relation,how to use the DataSocket Server Manger ?
    After all,I want to know how to use it in LabWinows/CVI ?
    Thank you very much !
    Best regards!
    I wouldn't care success or failure,for I will only struggle ahead as long as I have been destined to the distance.

  • Droid 3 camera - how to use it?

    I'm unable to find instructions on how to use the camera feature and it's not very intuitie. All the videos I found onine were "removed by user" and the instruction booklet doesn't even mention the camera. Can someone point me to a post or article that can give basics? Thanks!!!!

    StreetDocRN, thanks for the link!
    CARDIFFDIVER, I understand how difficult it can be to learn how to use a new phone and all of its features. First, visit our support page to where we have a simultator for the Droid 3 that shows several features of the camera. Just click on camera under the simulator and there are several options. Also, here is a video of some of the camera basic features. 
    Hope that helps!

Maybe you are looking for