Multiple instances of a subVi to display data

What
is the best method for creating and using a subVi that was created specifically
for displaying results?
I created a subVi for displaying stress (tension & compression). I started
with a Numeric Control/Vertical Pointer Slider which I changed to a Numeric
Indicator. I added 2 LEDs for out of bounds indicators (+ and -). I used the
Property Node for the Slider to permit setting the minimum and maximum values
for the scales. The subVi has only two inputs; the min/max scale value and the
data to be displayed. I added a Decoration in the form of a graduated color
scale to match that used in PTC's Pro/E.
When I use the subVi each instant in the Block Diagram uses the same Front
Panel. This makes the Slider or Needle flicker.
What I'd really like is for my subVi to work and act like the original Vertical
Pointer Slider and appear directly on the main Vi.
I know I can create multiple copies of the subVi's file in the folder on the
disk but that makes maintenance a pain because each change will require the duplication
once again. This will still create multiple Front Panels to display the data.
I need a solution that will work with the data for about 20 strain gauges
displayed on the screen at the same time.
Copying
and pasting the Block Diagram for my stress subVi into the main VI will work
but will also create a wiring nightmare
How
do create this type of display.

Dynamik,
Thanks for "Slider2.vi" it was quite
informative! It's taken me a while to get back to working on my VI.
I tried to create a modified version of "slider2.vi" so I
would understand what you had done (I still don't understand everything) as
well as creating the vi I needed for my testing. I succeeded except for being
able to display the information on the front panel. For some reason I create a
cluster with 20 clusters within it each of them containing a slider (with a
multi-colored scale) and hi/lo out of bounds indicators. I used "Cluster
to Array" so I could use "Bundle by Name" within a "For
Loop" to set the values. The problem comes when I attempt to take the
array information and apply "Array to Cluster." The resulting cluster
only has 9 elements. What happened to the other 11 elements? The
"Help" has not been very helpful. With the broken wire deleted, I've
inserted an indicator for the "For Loop" index and a "Wait"
to slow down the loop so I can follow the values. The index goes from 0 to 19
as expected.
I'm at a loss as to how to proceed. I've attached my
"Test-problem.vi" to this message. Is there something fundamental
I've missed? Where is the problem?
 Thanks
To answer your question: I've been programming for 25+ years, Everything
from assembly language, to procedural languages (FORTRAN, PL/I, PASCAL,
C), to object oriented languages (Java), to scripting languages (C
Shell, Perl).
Message Edited by JoeSz on 10-05-2005 06:17 PM
Attachments:
Test-problem.vi ‏227 KB

Similar Messages

  • Multiple instances of a subVI - problem if running as executable

    Hello LabVIEW gurus,
    I have written an application, which uses a VI-template to create multiple instances of this subVI which are
    running independently. I use 'Open VI Referece' and the 'Call By Reference Node' VIs. My application works
    fine if it is executed in the LabVIEW development environment.
    But if I use the Application Builder to create a stand alone program, the 'Call By Reference' method seems
    not to work. The program works without any error message, but the subVIs created by call by reference
    deliveres no results. I suppose the subVIs are not created properly.
    Has anybody an idea or hint to solve that problem. Are there any known issues with 'Call By Reference Node'
    and 'executables'. Are there special points to pay attention for?
    I have that problem with LabVIEW 7.0 and 7.1 (Windows2000 and WindowsXP(SP2))
    Thanks for any hint that could be helpful.
    Steffen

    Sorry for the obvious question but did you include the templates as
    dynamic VIs when building the application? Since these VIs are not part
    of the Top Level hierachy, they have to be include explicitely as
    dynamic VIs.
    By the way, when VIs are included as dynamic VIs they are put in the
    internal LLB of the executable file. When opening the VI reference,
    that internal LLB is first looked into for a VI of that name and if it
    is found there the actual path is ignored. The internal VI is opened so
    you don't have to care about absolute paths when using inluded dynamic
    VIs e.g. you can leave paths used during development. The actual path
    is important only when the referenced VI is located outside the
    executable.
    LabVIEW, C'est LabVIEW

  • Feedback nodes in subvis with multiple instances

    I have a subvi that implements a state machine.  I am using a feedback node to pass the state from one iteration to the next.  I would like to have multiple instances of this subvi, but the problem is that the feedback is shared between all instances so the states get messed up.  I need each instance of the subvi to run independent of the other instances and that its feedback only feeds back from the previous itereation of that subvi instance.  Is this possible or do I need to rename the subvis to make them different and independent?

    You will need to make the subVI's reentrant in order for them to maintain there own dataspace.

  • Multiple instances of the same VI running in parallel

    Hi,
    I have a timestamping subVI that looks at a counter channel and applies timestamps. I want to create multiple instances of this subVI (8 to be exact) and have them all run in parallel (looking at 8 different channels). Someone gave me the following advice:
    >>
    Also, in case you want to call multiple instances of the same SubVI, and you want these multiple instances to execute in parallel, you will have to set the SubVI to execute in reentrant mode. Do this by opening the SubVI and going to "Edit >> VI Properties >> Execution" and enable "Reentrant execution".
    <<
    I've tried this but only my second instance (I started simple with only 2 instances) seems to monitor its channel and pass data along to the queue. I've included my code below, I have two signal simulators which simulate singles coming in on channels 2 and 3. I'm using a PCQI 6602 counter/timer card.
    Any help would be greatly appreciated, thanks in advance,
    Chris
    Attachments:
    LabView App (June 28, 2005).zip ‏158 KB

    good news! Your reentrant VI is working and all three instances are running (as execution highlighting clearly shows). The problem is going to be an error that is occuring but you don't see because you are ignoring the error clusters internally in the timer. It looks like at one point it was set to quit if an error occurred. That still needs to be there.
    Always hookup error clusters...
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • High Speed Streaming with Multiple FPGA FIFOs and TDMS Advanced Asynchronous (Data Ref)

    I am using an FPGA with adapter card (7962 with 5751) for data acquisition and signal processing. I have adapted the FlexRio example "High Throughput Streaming," which works very well for a transferring data from the FPGA via a single FIFO. This example uses the TDMS Advanced Asynchronous Write (Data Ref). The "High Throughput Streaming" example is similar to "Streaming External Data to a TDMS File (Windows)" but includes more code to prep the FIFO buffer size and TDMS size.
    My question is how can I adapt this code to incorporate multiple FIFOs that write data to different channels in the TDMS file? Can I use multiple instances of  TDMS Advanced Asynchronous Write (Data Ref) in a single VI for each FIFO Acquire Read Region? If so, how do I insure that the correct data is written to the correct channel in the TDMS file?

    Thank you DeppSu for your explanation, I will look into that.
    But first, I want to be sure that the FPGA and the Hot general designs are correct, which for the moment I am not sure. So I have included my code.
    I tried the Host vi several times, and it seems that it works sometimes and sometimes not, like there are some communication problems between the fpga and the host on the "read acquire region" method which is not executed. I managed to make it work randomly before, but not now. Maybe it is because of the reset that I added?
    If someone could check my code and help me, I would really appreciate it since nobody in my workplace has the expertise to do so :-) If you see some obvious mistake, please share with me, I also added some comment boxes in the code with questions.
    Delphine
    Attachments:
    thoughput.zip ‏1261 KB

  • Tracking displayed data

    Hi,
    What method can be used to track what data user had on his/her screen?  There are privacy laws associated with certain data elements such as social security numbers.  What method could be used to record each instance where an SAP user displayed data that is classified as sensitive and actually record the data that was displayed?
    It may help illustrate this with an example:  say it is a bank.  customer calls and does not have her account number handy.  the call center rep attempts to locate it and finds out by accident sensitive information about another bank customer.  The idea here is to have a log that shows that this call center rep was looking for customer account X, but also had on the screen information about customer account Y and that is how that call center rep could have come to possession of the information on customer account Y.
    Any ideas on how this could be done are appreciated.
    Thank you,
    Mike

    1) make one custom table with fields like [sy-uname, sy-datum, sy-uzeit, screen number etc...)
    2) Identify appropiate PBO Module (for the screen in which you want the security feature)
    3) make one implicit enhancement (only in the case where you are unable to identify user-exit or BADI's) at start or end of module.
    {this ensures your code will run each time any user opens the screen}.
    4) in the implicit enhancement implementation code to fill (INSERT) in the table with the system values.
    5) make a simple report to display the contents of the table.
    Working : each time any user opens a particular screen, the custom table will get appended with the name, date, time etc. detials of the access of particular screen.
    Hope this will help.

  • Multiple instances of jobs showing in Data Services Admin Console

    When running jobs, there are multiple instances of the job showing in the admin console and when viewing any of the logs they are not associated with that job. We have had this in the past, and, I believe, it relates to an internal counter in one of the AL_* table which has wrapped to the start and this causes the admin console to see broken/cartesian joins and display multiple instances. However, I now cannot find how to resolve this. Any help would be appreciated.

    what is the version of DS/DI ? what is DS/DI Repositroy Database Type
    did you manually delete data from AL_HISTORY table ?

  • Display Data from multiple models in one table

    Hi Experts,
    Is it possible to display data from multiple models in one table smltnsly.
    I have created a table dynamically.Now I would like to display data from multiple models... If this possible,can anyone give me a lead as to how to do it..
    Regards
    SU

    Hi
    Your Model Nodes be
    Model1
    ---Output_Model1
    Attrib1
    Attrib2
    Model2
    ---Output_model2
    Attrib1
    Attrib2
    and the value node is
    ValueNode
    ---Attrib1
    ---Attrib2
    Now the coding.
    int size;
    IPrivate<ViewName>.IOutput_mode1Node  node1 = wdContext.nodeOuptut_Model1();
    IPrivate<ViewName>.IValueNodeElement elem;
    size = node1.size();
    for(int i=0; i<size; i++)
       elem = wdContext.createValueNodeElement();
       elem.setAttrib1( node1.getOutput_Model1ElementAt(i).getAttrib1() );
       elem.setAttrib2( node1.getOutput_Model1ElementAt(i).getAttrib2();
       wdContext.nodeValueNode().addElement( elem );
    similar code for Model Node 2
    Regards
    Abhimanyu L

  • Display data from multiple document Libraries in List View Webpart

    Hi All,
    I want to display data from multiple document libraries into one list view webpart(custom i have created)
    I went through the following link http://blogs.msdn.com/b/ramg/archive/2009/04/22/implementing-a-simple-cross-site-collection-list-view-webpart.aspx
    but it tells to display only from one document library.
    My motive behind displaying data in the list view webpart is to achieve the functionality of Check In ,Check Out and other OOB features.
    With Regards,
    Jaskaran Singh

    Hi,
    As there is no such OOTB feature, a workaround is to create a visual web part to gather items from libraries and implement functionalities like Check in, Check out files
    in different libraries.
    The links below will provide more details:
    Create Visual Web Parts in SharePoint
    2010
    A demo about displaying list items in visual web part:
    http://www.dotnetcodesg.com/Article/UploadFile/2/217/Web%20Part%20in%20SharePoint%20To%20Show%20All%20List%20and%20List%20Items.aspx
    About the Check In and Check Out:
    How to Check In a document programmatically
    SPFile.CheckIn method
    and SPFile.CheckOut method
    Best regards
    Patrick Liang
    TechNet Community Support

  • How to use/sync single data (file) across multiple instances of same application

    Currently we have an application (a diagram editor), that have the ability to save and load (serialize) its state in a xml file.
    Now we want this application to behave like Microsoft OneNote application. Where multiple users have the ability to access the same file.
    Later we may also need to enhance with other things like, (1)what is changed and who changed it, (2)option to resolve conflicts if any.
    I came to know about sync framework to resolve this. so far, i have not tried it.
    All i want is,
    Virtually single file should be edited by multiple instances of same application.
    We need a dll (sync framework) that does following
    It takes complete responsibility of file handling.
    Using this dll, each instance of the application will notify their own changes.
    Each instance of the application should have the ability to detect the changes that is recently made (when, who, what are the changes).
    My question:
    Will sync framework be suitable for this requirement?
    If so, is there a demo application that represents this?
    - Jegan

    Seems like I have found the solution.
    In the taskflow there is a property named data-control-scope and I set it to isolated instead of the default (shared) and this seemed to do the trick.
    I can now have two instances of the same taskflow running with different ApplicationModules
    Cheers,
    Mark

  • Multiple Instances of SubVi-Type

    Hi there !
    I'm new at LV so please excuse me, in the case my question is about
    something trivial.
    My Problem is to create several Instances of the same SubVI-Type.
    In the process control app. I have to implement, a large flow schematic
    has to be displayed/monitored. Because of the complexity of the
    schemnatic, the user shall be able to open SubVIs to get detailed
    information to some components, e.g, latch valve status, number of
    switching cycles etc. The type of the SubVI is the same for a couple of
    components in the schematic. To avoid creating n equal SubVI-Files I
    found it could be better to create an instance of the SubVI type at
    runtime.
    Can anyone help me, or are there any examples at NI ?
    Thanks for your help
    Hans J"org

    Thank you both for the help.  I used the Open VI reference and Call by Reference and created a stricly typed VI reference to call the subvi dynamically.  Attached is a screenshot of the block diagram.  The link below guided me in created the stricly typed VI reference required by the "reference" input of the Call by Reference function.
    http://zone.ni.com/reference/en-XX/help/371361H-01/lvhowto/create_strict_type_vi_ref/
    Attachments:
    OpenMultipleClones.gif ‏4 KB

  • How do I display data from Multiple Queries in a spreadsheet?

    I am running Oracle forms 10g as a kicker to export a report (rdf 10.1.2.0.2) to PDF or Excel Spreadsheet - User's choice.
    Doesn't matter if I have desformat = SPREADSHEET, DELIMITEDDATA, or DELIMITED; I still get only the first query displayed when I run in spreadsheet format.
    How do I display data from Multiple Queries in a spreadsheet? Is this possible?
    Thanks in advance!

    Hi adam,
    did you search the forum? You will find a lot of threads handling the problem of Excel file access.
    In short: you need to use ActiveX (the RGT also uses ActiveX under the hood)!
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • Logic for sending data files to multiple instances of Central

    We are using Central Pro Output Server 5.6 with a single Central instance as of default installation on a Windows Server 2003. Data for the transaction files coming from our iSeries system via a printer queue (\\.\pipe\jetform\queuename)
    Now we want to be able to produce more documents from Central much faster and therefore setting up multiple instances of Central. The problem is then where to put the logic for choosing instances.
    The simplest way to do this would be to have iSeries to alternate the data files to different pipes (printer queues) for Central. But as we dont want to change our iSeries configuration for this, is there a way to solve this problem in Central?
    Any help with this is much appreciated

    Central provides no mechanism that I'm aware of that would do anything resembling the job distribution that you are wanting. Central is written to monitor it's input folders and process the files it finds there. Each instance is essentially separate from each other.
    Your source system will need to select the appropriate instance to be used. Either that or you will need to have something between the source system and Central that is doing the distribution. For example, you could have the source system write to a folder that is not being monitored by Central and write a program that runs as a service that does monitor that folder. This program would then distribute the files. The likely drawback of having an intermediary program is that you are likely to not end up getting the documents printed any faster than with a single instance.
    Another possible way, if the source system can create files with different file name extensions, would be to have them all written to the same folder and have each instance checking that particular folder but looking for files with different extensions. This might be problematic, though, because it might also end up with each instance watching the same "control" folder so that doing things like pausing Central would end up with no control of which instance was going to be paused.
    The default setting for Central has it pausing for 5 seconds if it completes a job and there are no more files waiting for it. If your jobs are not coming in faster than Central is processing them then you would be getting some of this delay for your jobs. You could reduce this time or even set Central to process a job as soon as it shows up. I don't know if version 5.6 still has the problem but an earlier version would not "see" a file if it happened to show up exactly when it was looking for more (it was probably showing up milli-seconds after Central looked). This caused that job to just sit there until the next job showed up.
    A major factor in getting the documents produced faster is going to be the speed and number of printers that they are going to - plus the number of pages in each document. For us, the single instance of Central that we are currently using can produce print much faster than our HP9050 printers (50 ppm) can actually print it.
    You must be doing a lot of forms or each job is doing a lot of processing. Our typical print job does 4 tasks (depending on the job this can include things like: passing the file through the transformation agent, updating a mainframe database, FTPing the file to another server for archiving, and producing the print). A typical job with 11 output pages takes only 2-3 seconds. We have a task that runs every morning that retrieves mainframe generated jobs. I just checked one of our servers and it processed 208 jobs in exactly 8 minutes (26 jobs per minute at an average of 2.3 seconds per job). We also thought we'd need multiple instances due to speed but that just isn't the case for us. We have other reasons to move to multiple instances but speed in not a major factor any more.

  • Need Multiple Instances Of A Data Structure

    Is it possible to create multiple instances of a Queue or Stack within a for loop? Or any way for that matter?
    For the life of me, I can't figure out how to do this.
    If I need to build 3 queues, I'd like them to be named q0, q1, & q2. Is there some way to convert or cast the value of "i" to part of the queue's name? I know I can't do it the way I posted it below but it kind of shows what I'm trying to accomplish.
    int elements=Integer.parseInt(in.readLine());
    for(int i=0;i<elements;i++){
         Queue q+"i" = new Queue();
    }

    I tried an array of queues but I can't handle it
    correctly. I tried:
    Queue []q = new Queue[3]
    but when I try to fill up a one of the queues they
    always stay null. I tried something like:
    q[0].enqueue(object)
    but q[0] will never fill up. I dont think its my
    Queue class thats incorrect because if I have a stand
    alone queue I can fill it up and/or remove elements.You are right--the array has three null elements. Right after you call "new Queue[3]", do this (preferably in a loop, and passing constructor parameters as necessary):
    q[0] = new Queue();
    q[1] = new Queue();
    q[2] = new Queue();Then you can safely call:
    q[0].enqueue(object);Don't forget code tags (see button above posting box) when posting code, so that it gets formatted nicely.

  • Spry:repeat display data in multiple rows/columns

    I know how to use spry:repeat to display data in table rows,
    one item per row.
    Is there a way to tell spry to display data in a grid of x
    rows by y columns?
    I'm trying to maximize the page's real estate. Here is the
    page
    http://www.jannah.com/mp3/browse.html
    Click on "Artist/Scholar" in "STEP1" section. "STEP2" section
    gets filled with a list. I'm trying to display that list in 3
    columns and as many rows as needed. How do I do that?
    While I'm at it, I also can't figure out why the spry:select
    is not working for "STEP2" section; I need to click twice on the
    same item to get it highlighted. the other spry selects on the page
    work ok. Can someone take a look.
    Greatly appreciated.

    You can't use Spry with tables to do this, but if you're up
    to using a div based layout/presentation, it is possible. Check out
    the Zuggest sample:
    http://labs.adobe.com/technologies/spry/samples/data_region/ZuggestSample.html
    It uses floated divs to get the same effect. The nice thing
    about using divs, is that more columns dynamically appear as the
    horizontal real-estate is expanded.
    --== Kin ==--

Maybe you are looking for

  • MDM-Validations Query Examaples , Tutorial , Material

    Hi Experts, Please, provide me with some Examples for MDM-Validations Query or some material with some detailed Example of Queries written .... for example Query for Compulsary field .... etc... regards, Jay.

  • How to displaying MapViewer tile layers over ArcGIS World Imagery?

    How to displaying MapViewer tile layers over ArcGIS World Imagery? Here is the ArcGIS World Imagery URL:http://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer Thanks.

  • Flash Player For Safari 4.1.3

    Hi Gang I'm sure this question has been bounced around regarding 10.4.11; 'Ten Four' doesn't support plug in's, Fire Fox 3.6 doesn't work anymore and some folks have problems getting a Flash plug-in for Safari 4.1.3. I have a couple of G5's; all with

  • Huge problem with Bridge's ability to keep files stacked.

    I've been working on sorting 8000 image files using Adobe Bridge. After stacking all my images, I batch renamed just 15 files. After renaming the files the program for whatever reason unstacked all my ******* files!!!! Is their any way to get the 35+

  • Infinity speed not like it was - halved

    Hi, when I had Infinity installed, probably over 6 months ago now, I was delighted with speeds of 8mb or above. Not a lot, but it was enough to stream movies on our TV, so ideal for us. (It's not true cable to our house, but it's cable half way (or s