Two common examples of the same VI

It never really occurred to me until now, but when you place the same vi on the front panel twice, are two instances of the vi created or is a vi just one copy of the other. I don't know if what I say makes sense but take a glance to my screws underneath, top level vi being 'Multiple Instance of the same VI.vi'

The vi below is only an illustration as to what seems to happen in my vast program. Below my VI, I wonder are the two controls, access the same instance of the VI or have each their own instance control?

Stroke

Read this excellent summary of modes of reentry Altenbach wrote.

http://forums.NI.com/T5/LabVIEW/re-entrant-modes/m-p/2007811#M660105

The value of the node in your Subvi feedback will be shared between instances. Go to properties/run and activate re-entrant execution. Click on clone Preallocate for each instance.

Tags: NI Software

Similar Questions

  • Two tasks that share the same resource in sequence

    I'm the current exception "the specified resource is reserved.". I understand that you can not run two tasks that share the same resource at the same time. However, is it true that you can not run two tasks that share the same resource, one right after the other, without the eliminate completely from the first task?

    for example

    Task1 and task2 share the same resource
    Task1. Start();
    Task1. Stop();
    Task2. Start(); This will always throw an exception until you have a task1 (i.e. task1.) Dispose()?
    Task2. Stop();

    Hi cafarm,

    You're right, the fact to just stop at one task does not allow that run you another task with the same resources immediately after. That being said, you can start the next task without having to erase or dispose of the first by making use of the task status template DAQmx. As you can see on the next page, stop a task simply going to the State of "Clerks", which means that the material is still used by the task even if she does not actively.

    http://zone.NI.com/reference/en-XX/help/370466AC-01/mxcncpts/taskstatemodel/

    Instead, you can use the control functionality of task for the first task of transition to the status "verified" after stopping it, then start the second task. This keeps the parameters of the task without having to have the task, but it should free up resources to be used by other tasks.
    http://zone.NI.com/reference/en-XX/help/370473H-01/mstudiowebhelp/HTML/verifycommitstartstopdaqtask/

  • Two background colors for the same waveform graph

    Hello guys!

    I have a question for you: I am a new user of labview, so please be nice!

    So here's the deal: I just created a thanks 4 thermocouple temperature registration program.

    In real time, I then have a waveform graph 4 curves as soon as I start my program. And in my program, I had a button that allows me to record the temperature in a file for a period of time at a certain frequency.

    So, what I have is: I got my chart of waveform with a black background for example, and once I pressed the button, the background color will be changed automatically to highlight the part of the graph where the record occurs, then the background will return to the black after finished recording. In this way, on the same graph, I could say that registration took place from here to there by looking at the graph. I have two different background on the same graph.

    I don't know how to change the background of a chart using the property node, but is it possible to do what I want?

    I hope I'm clear. Otherwise, feel free to ask me for more details... I might post my vi if necessary

    See you soon

    Well, I know this is not exactly what you want to do, but you can try the following.

    Change the color of the line on the chart when recording occurs.

    You could therefore have a red line, then press on save, then it turns blue, then back to red.

    And when that is confusing since you have 4 different lines on the chart 1,

    You can change to a red line and a dotted red line, for example.

    Would that be acceptable? If so, I can show you how to do this.

  • How to take snapshots of two usb camera at the same time

    Hello

    I have a project where I have to take still photos of two usb camera at the same time repeatedly and save the in a particular direcltory. I am received using a camera by using "Camera Grab vi", but I can't make it work with 2 cameras, I use the flat sequence and 2 "Camerra Grab vi: with particular camera in a sequence, but each time when I run the program I get only pic of a camera, its seems a camera dominates the other.»

    Please is it possible to use the two camera simultaneously. Attached are the snapshot of my vi.

    Thank you

    Ankit G

    Looks like you are using the same reference at the same time grabbing the camera. The two camera snaps happen but the second camera clamp is written on the first so it seems alone is slam. Try to run the VI executiong highlighted arbitrary mode (select icon icons four bulb to the right of the button run on the schema). This will allow you to see the data stream. In order to get both of these Snap you'll need separate references. You can try to watch one of our examples in the example Finder OR give you some direction (LabVIEW > help > find examples > Browse tab > Input and Output material > IMAQdx > high level > Snap.vi). You can break the two cameras at the same time if you just copy this code and double of the code.
    (Note: If you change the examples, always save as copy in another location so that you do not save on the packed example)

  • Trigger two FPGA instances at the same time

    I have a basic FPGA code that transmits the bits of data on a serial (RS-485) bus, the code is written so that it expects in the first State of a machine to States in a single-cycle timed loop.  After a certain trigger, he begins to read a FIFO containing data and sends the data on a line of Tx.  It does this until all bits are send and then it goes back to the first State to wait for the next trigger.  The relaxation is necessary because windows must fill out first before the FPGA FIFO can start sending.

    I need two instances of this code runs, because I have two buses of com (one is redundant).  So I use the FPGA code as a Subvi and I wrote a main FPGA vi to call two separate instances of the Subvi in parallel.  A regular window vi wrote on the FIFO for bed FIFO for Rx and Tx.  No problems so far.

    The thing is I start two transmissions in 200nS of each other (Yes, nanoseconds).  Windows will write two FIFO in parallel, but the timing is 4uS apart, too long.  I tried implementing a Boolean flag in the Subvi FPGA, but windows can not write directly on the control of Subvi.  FPGA won't allow (the Write function is grayed out).  I tried to use a FIFO for a flag, but the problem is a race condition.  One of the instances is first read FIFO and he destroy.  The other can't read.  I need a common trigger point to be used by the two instances of Subvi.

    My final solution was to use a memory in the Subvi FPGA and digital control in the main FPGA vi.  Windows write in numerical order, it may because the control is in the main FPGA vi.  Inside the main FPGA, I run a timed loop that looks for digital to be zero.  If so, it writes the value into the location of the memory used by the Subvi FPGA.  After awhile, the principal wrote a zero back to memory to prevent the Subvi is restarted, as well as to write a zero for digital to reset.  This repeats, waiting for windows to write in digital again for the next transmission.

    I had to do it this way because sometimes I want to pass on the bus, and sometimes just one or the other.  Numeric values are used to determine which to pass on.  Now, the transmissions are starting to almost exactly at the same time, 1 or 2 nanoseconds apart.  But the trigger process seems very silly to me.  I was wondering if there is a better solution.  I'm pretty new to FPGA.

    tbob wrote:

    Basically, I did the same thing using FPGA memory.  Windows I am writing for a digital control that resides inside the main FPGA vi.  In the main FPGA, I write in the memory.  Inside the Subvi FPGA, I read the brief and decode the value to use either one or the other or both buses.  After fool with it for awhile, because reading Memeory needs to use a shift register (probably because it takes a whole cycle of clock), I had to work.  The two bus trigger at the same time.  I guess it's not really important if I use a FIFO or if I use the memory.  The main problem is that I write Windows at the hand of FPGA, then the hand of FPGA for the Subvi FPGA.  Then the time is right for what is the Subvi is.

    There are some advantages to the use of two FIFO on your approach.  First of all, you don't have the change of register for the memory location.  Secondly, we should not worry that VI is responsible for compensation to the memory location, or do, you run the risk that one of your subVIs run twice, or not at all, if the memory is not erased at the right time.  Perhaps most important, you'll save yourself space on the FPGA because you will not need arbitration - the additional code that is added when two parts of the FPGA try to access the same resource at the same time.  In your case, both instances of the Subvi access the memory block at the same time, so the FPGA compiler adds additional logic to avoid conflict.  If only read you the memory block in one place and just write it in one place (reading and writing can be different loops where subVIs) there is no need for arbitration.  Using two FIFOs, you can keep independent and avoid the conflict resolution code.  See the help for the "arbitration" for more details.

  • Insertion of records in two different tables at the same time?

    Hello everyone, I have question about inserting records in two different tables at the same time, I'm looking for is by the way a unique id, which is created in the first statement insert to the second insert statement. Example of this problem:

    < cfquery name = "addRecords1" datasource = 'test' >

    Insert Into Table1 (name, Date, age)

    Values (< cfqueryparam cfsqltype = "cf_sql_char" value = "#arguments.) "Name # ' >.

    < cfqueryparam cfsqltype = 'cf_sql_date' value = '#arguments. "Date # ' >.

    < cfqueryparam cfsqltype = "cf_sql_int" value = "#arguments. Age #"(>); "

    Select SCOPE_IDENTITY() as RecID;

    < / cfquery >

    < cfquery name = "addRecords2" datasource = 'test' >

    Insert into Table2(Company,City,Date,ID)

    Values (< cfqueryparam cfsqltype = "cf_sql_char" value = "#arguments.Company #" >,)

    < cfqueryparam cfsqltype = "cf_sql_char" value = "" #City # ">,"

    < cfqueryparam cfsqltype = 'cf_sql_date' value = "" #Date # ">,"

    ( < cfqueryparam cfsqltype = "cf_sql_int" value = "How to pass RecID to insert in this table?" >).

    < / cfquery >

    In this example, I'm inserting records in table 1 and creation of IDENTITY SCOPE as RecId. I would like to pass this id and insert it in my table 2. This Id, I'll use in my second table as an identifier. If anyone knows anything about this please let me know. Thank you.

    );
    

    QueryName - DOT - ColumnName, so it should be:

    );
    

    HTH,

    ^_^

  • Culture in two different places in the same page

    What on Earth, I want to crop in two different places in the same page. For example, I want to keep something in the upper part and something in the lower part, but skip the other parts. What happens on Earth, I can do that, gentlemen?

    There is a rectangle of cropping by page.  What the parties 'ignored' would look like? Flat white?

  • You can apply two condition tags to the same content?

    We must apply the two condition tags to the same content. A condition tag is for the version of the product (for example, full vs of lite), and the other condition tag is for the output (vs. Administrator's guide online help). Is it possible within the framework to apply two condition tags to this topic? We want a topic to have the full conditions of the Administrator's guide.

    If this is not possible, we can create a condition that is full tag and guide the administrator, but we have thought that we would check to see what is possible. Thank you!

    > So we need to use conditional expressions for this?

    If inclusive - or show, that's what you want, no.

    Otherwise, probably - I have not used cond-exps myself yet.

    Even in FM9/10, it is probably still a good idea to overlap do not conditions. Brainwashed MIF can fix, tho.

  • IMessage Apple Watch has two interviews separated with the same person?

    My new Apple Watch has a problem with iMessage and I know how to fix this on my iPhone but not watch?

    On my iPhone, that my ID apple is connected to more than 10 devices and sometimes when a new device is added, it adds the addresses on my apple for iMessage and FaceTime ID and I always fix by unchecking the addresses that I don't want in the application settings under "Messages" and "FaceTime." However, this isn't the same thing to watch because there is no option in the settings on the Apple Watch and the watch App on my iPhone.

    I would like to help please?

    Hello

    Apple Watch uses the same parameters (for how you can be reached and how new conversations are started) for Messages as your iPhone.

    If you have two interviews separated with the same person, the following steps may help:

    • On your iPhone, check if there is more than one contact form in Contacts of this person (if so, remove duplicates).
    • Delete old Messages conversations with this contact on each of your iPhone and watch:
      • iPhone: app Messages > swipe to the left on a message thread > delete.
      • View: Open the Messages app (from the home screen, which is accessible by pressing the digital Crown) > swipe to the left on a message thread > tap on Trash / delete.
    • On your iPhone in the app Watch: Watch My > general > reset > press reset sync data:
      • You won't see anything happen after pressing it (the process runs in the background, invisible to the user).
      • Leave a minute or two to allow the course ends.
    • Restart your iPhone and your watch (turn the two together off the coast, then restart your iPhone first):
  • I have 2 phones on my ID Apple how can I keep the two devices to receive the same iMessages?

    I have 2 phones on my ID Apple how can I keep the two devices to receive the same iMessages?

    How to use several devices iPhone, iPad or iPod with a computer

    Using more an iDevice on the same computer

    This mainly applies to couples who add another device and don't want their electronic mail, messages, etc. being duplicated on both devices. To start reading: How to use several iPhone, iPad or iPod devices with one computer. You must create a login separate Apple and password for anyone who will use the new iDevice. See Apple - my Apple ID and frequently asked questions about the Apple ID. The easiest way is to do it on the computer using iTunes: iTunes - how to set up an Apple ID iTunes.

    On the computer, create a new user account for the person with the new iDevice. This is the user account always uses this person. He or she will no longer use the other user account. This way the person will have a separate iTunes library. Note When finished, do not 'share' apps under a single Apple ID. Each of you must buy your own applications under your own Apple ID. When you decide to divide like this you will have to buy new applications they want to use.

    First, transfer the new devices to a new account as well as all your data.  Save pictures of flow picture you want to keep for your camera (unless they are already in the camera roll) by opening your Photos app, tap Albums icon at the bottom. Now press the album My Photo Stream; Press Select; tap the photo you want to select. tap the share (box with the face up arrow) in the lower left corner icon; in the film, and then click Save.

    If you synchronize notes with iCloud, you want to keep, you must open each of your notes and email it to yourself. Later, you can copy and paste the text into the new notes created in your new account.

    Tap Settings > iCloud > remove account (removes it only from this device, not iCloud; the person who maintains the current account is not affected) provide the password to disable find my phone and choose to keep on my iDevice when prompted.  Sign in with another Apple ID to create your new account. Choose merge to download your data.

    Once you are on separate accounts, you can each go to icloud.com and remove data from the other person to your account.

    The above was created by the user randers4. Changes were made to improve the readability and the syntax.

  • How can I work with two icloud ID on the same pc?

    How can I work with two icloud ID on the same pc?

    Define "work".

    What exactly do you want to accomplish?

    You can use the iCloud Panel to connect to iCloud account and use a browser to go to icloud.com and sign in with another account.

  • Could a NI6008 be shared by two software programs at the same time?

    Hello

    I wrote two software with Labwindows/CVI for different purposes. Two of them are using NI6008. I have only one ni6008 attached to my laptop. I can run two programs at the same time? I mean, it's a NI6008 could be controlled by two different software at the same time? Thank you!

    Best,

    Shang

    Shang,

    There are four types of tasks, AO, DIO and counter. You can have one of each performer both on a USB-6008.

    Kind regards

    Kyle Mozdzyn

    Engineering applications

    National Instruments

  • What happens when two parallel process call the same VI in an FPGA?

    Hi all

    I was wondering, what happens when say two parallel processes call the same Subvi in an FPGA? I think that the FPGA would create two instances of the Subvi, not sure. Any point of view?

    Thank you

    Altras

    I don't know if the FPGA adds any ordinary special, but in LabVIEW rule and in LabVIEW Real-time, a VI by default is not reentrant.  Therefore, a process that is called when it is already in use is blocked and must wait.

    If the VI is reentrant, however, then you have two (or more) for the VI dataspaces, so that each can run independently.

  • Is it possible to have two mice connected at the same time?

    Hello. I have a gamer mouse, and I am pretty tired of changing the battery every now and then. So I was wondering if I could connect a wired mouse, I could use on the desktop, while my current mouse is always connected - for when I want to do some gaming. Windows Vista will allow that I have two mice connected at the same time?

    Hello

    You can connect two mice of universal Bus controller to the computer, but it goes to show that a single pointer.

  • Windows Vista detects the wireless network but will not connect to it. Two other users in the same office connect without difficulty.

    The title says it all really.

    I was connected and working normally for about an hour this morning, until suddenly the connection has been lost.
    Windows detects the wireless network but will not connect. Two other users in the same office connect without difficulty.
    Help, please.
    Thank you.
    original title: vista detection network but will not connect

    Hi JulianBeach,

    1. you have made no changes to the computer before the broadcast took place?
    2. What is the exact error message you get?
    3 is connected to the domain of the computer?
    4. what happens when you try to connect to the network?

    Try the steps from the following link:
    Windows wireless and wired network connection problems
    http://Windows.Microsoft.com/en-us/Windows/help/wired-and-wireless-network-connection-problems-in-Windows

    Additional information:
    Wireless network card: frequently asked questions
    http://Windows.Microsoft.com/en-us/Windows-Vista/wireless-networking-frequently-asked-questions

Maybe you are looking for

  • iPad and iOS 10

    I will try and stay informed on the use of my Apple products. Read about the next version of iOS 10, expected soon, I have some questions that I thought better to ask some of the experts here: I have a 32GB WiFi iPad 3 model A1416. From what I see, t

  • How to move a widget on my desktop?

    I want to move a chart Forex dashboard on my desk. My iMac is a year old. Can someone tell me how it is possible?

  • I was given a HP Pavilion Slimline s3407c who had Windows Vista pre-installed, but it won't start.

    I was given a HP Pavilion Slimline s3407c who had Windows Vista preinstalled. It had crashed. It won't let me access the safe mode. Even if I can access the menu. I have a Windows XP Pro startup disk, but he hangs up when he says... examine the boot

  • Processing account

    Good afternoonI am trying to order the creative cloud and after putting all my contact information, credit card only. and selecting the button send, nothing happens. He's going to the "your request is processed. It may take a few minutes. Please do n

  • Change e-mail

    Hey guys,.is it possible to transfer an account on CloudCred to myVMware another account?ConcerningTim