What is the best way to run two programs simulataneously using the output from one to run the other?

I just kind of wanted to get an opinion from some people on here. I have two main VIs. The first is a DAQ system that reads 99 different sensors and feeds that data into an array. The second is a real-time processing system that is designed to take the array and do numerous calculations. Both VIs output data to the front panel that I want to see, so I don't want to just use one as a SubVI.
Is there a simple way to run both VIs, using the output from the DAQ system to feed the processor so that you can easily see the front panels of both VIs? I had considered just copying the real-time processor code into the DAQ VI, but I'm worried the resultant VI will be very large and unsightly.
On a side note, am I over thinking this? Excuse me if this is a rather dumb question, it's been a long week...aaaand it's Wednesday.
Solved!
Go to Solution.

There are a number of ways that you can go about this, but having both front panels open isn't a problem (assuming there is screen space!). Both could be sub-vi's of another "calling" vi, with their front panels set to open when called. The data from the DAQ side can be sent to the other through a number of ways, "producer-consumer" (many threads about this topic, examples in the LabVIEW examples, etc.) is one of the more robust techniques. If created correctly it allows one to run at a different rate than the other, although if the producer is "producing" much faster than the consumer can "consume" it will end up with problems.
I guess I type too slowly
Putnam
Certified LabVIEW Developer
Senior Test Engineer
Currently using LV 6.1-LabVIEW 2012, RT8.5
LabVIEW Champion

Similar Messages

  • What is the best way to allow two designers, working in different locations, to have access to the same muse site?

    I'm trying to figure out the best way to share access to a muse site so that two different designers can be responsible for different features of the site. e.g., one is responsible for photo galleries, the other is responsible for shopping cart. Is there a way to do this?

    Hi
    Please check the following thread,
    How can multiple users from different locations access my Muse website files to update them?

  • What is the best way to set up Facetime if using multiple computers with one apple ID?

    I currently have FaceTime setup on my iPad 2 using my normal appleID, but have just recently upgraded our iMac from Leopard to Snow leopard, and have added FaceTime to that computer as well. So my question is this. If I want to avoid confusion with which device is called when someone calls us using FaceTime, what is the best way to distinguish the devices? Should I try to use a different email address to reach the iMac? Is there a best-known-method for this?

    That's a nice system Kevin, and it will work very nicely with Photoshop.  I do take it that you have 16Gb RAM in Total?
    250Gb SSD is a good size, but you can still run short, and that will affect Windows performance.  When you get your system, instal WinDirStat which gives you a graphic display of everything on your drive, like below. Clicking on any of the large areas will tell you what and where they are, so you can think about moving cache folders etc. to one of the HDDs.
    Leave the Pagefile.sys on the boot drive.  Think about disabling Hyphenate as it takes a ton of space, and too often crashes on wake up.
    My Documents
    Desktop
    Downloads
    Look at Bridge cache
    iTunes backup
    Other stuff like that.
    Think about another 500Gb drive just for Photoshop Scratch.  Drives are cheap as chips nowadays
    Do yourself a favour, and invest $100 in Shadow Protect (or similar if there is such a thing) SP saves incremental backups every 15 minutes (you can set the interval, but it has no impact on performance with a system like yours).  If you have a problem you can mount the back up at any of those 15 minute points, and open files from it.  You can also make a bootable DVD image of your C drive, and be back up and running five minutes after disaster strikes.
    Optimize Performance in Photoshop
    Photoshop CC and CC 2014 GPU FAQ
    For more ideas, swing by the Premiere Pro Hardware forum.  Those guys are serious good at this stuff, and you'll find links tips and ideas.
    Happy computing, and have fun with your Creative Cloud® apps.

  • What is the best way to zero a 'custom voltage with excitation' sensor from the front panel?

    What is the best way to zero a 'custom voltage with excitation' sensor from the front panel?
    Thanks for any help

    Hi Donavan,
    There are two options for zeroing with the NI-9237.  You can perform offset nulling and shunt calibration with a strain task, or if you use custom excitation you can use software compensation.
    See the Bridge Balancing, Offset Nulling section in  the Load, Force, and Torque Measurements tutorial. Take a measurement before the strain is applied and subtract this from all subsequent measurements.  See the above tutorial to consider the tradeoff in accuracy between these two options.
    Hope this helps,
    Jennifer O.
    Applications Engineer
    National Instruments

  • What is the best way to query planned orders or work orders for make items and identify the buy component that is short for supply and vice versa?

    What is the best way to query planned orders or work orders for make items and identify the buy component that is short for supply and vice versa?

    What is the best way to query planned orders or work orders for make items and identify the buy component that is short for supply and vice versa?

  • What is the best way to manage 5 users and 6 devices? We dont all want the same merged contacts, we dont all want the same calendar notes, music, pics etc etc.

    What is the best way to manage 5 users and 6 devices? We dont all want the same merged contacts, we dont all want the same calendar notes, music, pics etc etc.

    As long as it is pointed to iTunes it will be accessible via home sharing on Apple TV.
    http://support.apple.com/kb/HT1751?viewlocale=en_US&locale=en_US
    If these are commercial DVD's we can't comment on any conversion process.

  • What is the best way is to create a web app item collection which will contain only the listings where addressstate="ABC".

    What is the best way is to create a web app item collection which will contain only the listings where addressstate="ABC".

    How many systems have you used Robert?
    This is the only system you can not have all item data at least in JSON format and all of it. Big commerce has a lower limit and as I have said in every post related to a limit - I understand the function, but you can still make the requests as just one example (front and back)
    Same with API Robert.
    Firstly - the SOAP API request on say products gets you ALL the products, if you do something through a REST API request you can  make the requests to get all the items to complete your process of what your doing - You have to otherwise the API is pointless.
    Ok if the normal modules can not iterate through if there is a module_data solution, and web apps will get there hopefully sooner then later and you do have the sql query (where) for your filter which is great BUT, if you want to implement a solution across everything you cant do that with the liquid implementation.
    This also flows through to the JSON everywhere in concept which is fundamentally flawed for the same reason... And again referring other like services where a hard API has a limit but the JSON request returns everything.
    How those work varies from the method of request, some will only update every day, xxx time (Depending on cost of the plan) so its a cached version of data, to the ones that limit that request to x number of times per set time/day.
    That is how the actual rest of the world works, varied solutions but they are solutions. BC know they have a few limitations, there clearly is the need for things, there are a varied set of options... It is just a matter of engaging in it and offering up a solution for it, silence just creates frustration.

  • Whats the best way to transfer all my pic and vid files from Mac Air to back up drive to free up space on hard disk?

    whats the best way to transfer all my pic and vid files from Mac Air to back up drive to free up space on hard disk?

    Get a third drive if needed, open the Time Machine pane of System Preferences, set it not to exclude that drive, and drag the files to it. If you're moving an iTunes or iPhoto library, launch the application with the Option key held down and choose the moved library.
    (118789)

  • Is there a way that you can copy and paste blade effects from one clip to the other so that the cuts are an exact duplicate of each other?

    Is there a way that you can copy and paste blade effects from one clip to the other so that the cuts are an exact duplicate of each other?

    The same cuts that I have in this clip that i performed with the blade tool, I want to duplicate, copye, paste and apply to another clip. I want the cuts to mimic and be an exact same. I wish i could highlight the clip, click copy and then highlight the other clip and then click paste and the cuts apply.

  • What's the best way to keep two hard dives synced?

    I've been looking at the best way to protect my data and I've learned a few things. My first thought was RAID but a bit more research showed RAID is not a fix-all. It has it's own problems and even if I use a RAID1 or RAID10 array (depending on the number of drives) a failure in one drive can actually set off another drive, killing multiple drives and still destroying my data. There are a few other issues I've seen, such as the way you need to manage a RAID system that don't overly appeal to me.
    So what I'm thinking now is two separate hard drives that are synced in some manner. Both of these drives are going to be sitting on the back of my iMac at all times so there's no real worry about their needing to be connected to back up. The question is how best to do it?
    So far my options are:
    Chronosync: Software wise, I know this can sync across drives and as such has been something that interests me. However, I'm not sure how powerful it is and I'm still curious about how I would have to use it.
    SuperDuper: Same thing as Chronosync, really, just a different piece of software.
    Rsync: To be honest, this is the one that interests me the most. I need to look into it a bit more I'm starting to think this might be a great choice for me. With some caveats.
    Basically, here are the things I'm going to use it for:
    Two 3–4 TB HDDs or RAID0 arrays.
    Storing of general project archives, images, documents, movies, music, that kind of thing.
    Possibly for system backup with Time Machine.
    Now, how I'd prefer it to work is:
    I keep both hard drives plugged in via FireWire cables.
    Ideally, whenever I edit, add or delete a file on one hard drive the change is immediately made to the other.
    Once the syncing is set up I never touch it again, don't have to.
    The only time I ever have to come back to it is if I'm swapping out one or both of the drives for larger ones.
    All of this is controlled by some sort of GUI
    I'm willing to accept terminal commands if I have to... But I'd really prefer not to. Also, if the syncing has to be done every hour or once a day or some other similar schedule I'm willing to accept that as well, though it's not preferred.
    So that's what I'm looking at doing. I'd love to hear what you guys think.

    True, it's not technically backup in the traditional sense. What I'm looking for is data protection and redundancy, which is a factor of backups. So in that sense it kind of is, but I see your point.
    Anyway, the reason I'm avoiding RAID is because:
    1. It can be a pain to manage.
    2. It's horribly inflexible.
    3. It's protection is limited.
    4. It brings it's own set of hazards.
    5. RAID arrays can be very expensive once they start getting complex.
    I will likely end up going RAID partially in the end simply because I have a 2 TB external and it's filling fast. I can grab a 3 TB now but I've heard reliability issues so instead I'm thinking two 4TB (2x2TB) RAID0 arrays that I sync.
    This gives me the benefit of RAID in a simple form, which bypasses the larger array complexities, while leaving me still fully protected and highly flexible. It also doesn't have the inherent risks of RAID because if one of the arrays goes down it will in no way effect the other.
    Honestly, I'm not worried about file changes. At all. I'm the only one who's touching the files (well, not true, but everyone else only has read-access). I also tend to not delete things (which is why I have a 2 TB drive that's filling fast). Expansion is my main concern and RAID expansion can be a nightmare unless you go for some of the more expensive systems that are easier to manage. With ease of management comes a hefty price.

  • What is the best way to sync two computers

    I have my work computer and my home computer and I would like my photos and work I do on one show up on the other and vice versa. What is the best way to accomplish this?
    Thanks
    Mike

    Lightroom wasn't designed to do this.
    The workaround that works the best from Lightroom's point of view is to put your catalog file and all photos on an external HD and move this external HD back and forth. Of course, the drawback is that you have to carry the external HD with you.
    Some people have experimented with putting the catalog file in the cloud, and photos on a shared network drive, so both computers can access everything. This has certain disadvantages, particularly if you use the catalog on one computer before it has synchronized from the other computer; and you can search these forums for details.

  • What's the best way to keep two computers synchronized?

    I just got Lr4, which I use in addition to CS5.5 Design Premium, and I want to use Lr as the primary raw file manager and editor.
    I keep my work and home computers synchronized via a 2TB external drive that fits in my pocket, and SmartSync Pro software. With this setup I just connect the drive and the software copies any new or modified files, leaving the rest untouched. So it's a very quick and painless process that allows me to work from either machine without missing a step.
    This setup has served me well for a long time, but with Lightroom there's an added complication: the catalog.
    So I need to know the most efficient way to transport catalog changes from one machine to the other, using the portable drive. The directory structure is identical between the two machines - but drive letters are not the same, so the files are technically not in the same location.
    I see there is a menu item called Export as Catalog. Will that do it? And how will I import on the other machine? Import From Another Catalog?

    D Fosse wrote:
    OK; dumb question perhaps, but how do I move the catalog/previews? In preferences I only see where it's located, but no option to move it elsewhere?
    You use your operating system to drag them to the external HD.
    No need to create a new catalog and import.

  • What is the best way to make a program fit different monitor resoultions?

    In our lab all our test stations have 1280x1024 resoultion monitors. In the "other lab" all the test station monitors are 1440x900 resoultion.
    Now I am tasked with making my programs run on the test stations in the other lab. I have tried setting the options "maintain proportions of windows for different monitor resoultions" and "Scale all object on front panel as the windows resizes" and of course neither one of these options really does what I would expect it to do.
    What is the best way to make programs fit different monitor resoultions?

    J-M wrote:
    I resize the Front Panel when the program start to fit the monitor resolution.  After that, I use the "SBE_Determine If Screen Resized.vi" from TomBrass (http://forums.ni.com/t5/LabVIEW/Resizing-controls-on-a-tab-control-within-a-pane/td-p/1520244 ).  This vi is very useful if you don't want to monopolize the CPU with the "Panel Resize" event.
    I don't like this function for a couple reasons.  First for the example you don't need any custom code to handle the window resizing, just use a couple splitters.  Even if you did need to handle the resize, you only resize after the mouse is up after the resize which is not how normal Windows programs work they resize as the mouse moves.  So I modified the VI to resize objects as you resize the window.  Then because doing this can generate 100 events very quickly, I use a boolean in a shift register to make sure that we only handle the resize event if there is no new resize events after 0ms.  This essentially makes a lossy queue and handles the last resize event.
    Unofficial Forum Rules and Guidelines - Hooovahh - LabVIEW Overlord
    If 10 out of 10 experts in any field say something is bad, you should probably take their opinion seriously.
    Attachments:
    Resizable_Graph.vi ‏22 KB

  • Is Time Machine the best way to backup two external drives?

    I only have the most basic understanding of Time Machine.  I hook up an external drive to my MacBook Pro, click "backup now" on Time Machine, wait a while, and forget about it because I've never had to use it to retrieve a file - thank heaven.
    Now I also have two external 2TB portable drives that are close to full and which need to be backed up.  I just bought a 4TB drive that I haven't taken out of the box yet.  Is it a simple matter to create two Time Machine files on the 4TB drive ... one for each of the 2TB drives?
    And is Time Machine the best way to do this?  Or is there some other system that makes more sense for backing up on this scale and with two drives?
    -JOHN

    No Time Machine is not the only way.
    You can use one of the drive cloning softeare programs to clone your internal drive to an external or you can use OS X Disk Utility to do basically the same thing, IE Clone/Copy your internal drive to an external.
    But in your case it look as if the upgrading of the iPhoto database has wiped out alll your images. What you are actually asking about is "Can you now get back those photos without first doing any backup of any type".
    And the answer to that is No you can not.

  • What is the best way to preserve my battery? Should I always have it connected to the charger when using it or should I use it and then recharge it?

    What is the best way to preserve my MacBook Pro battery? Should I always have it connected to the charger when using it, or should I use it and then recharge it?

    Don't worry about it:
    http://macmost.com/dont-stress-about-batteries.html
    If you want to condition it once a month, go ahead:
    http://www.apple.com/batteries/notebooks.html

Maybe you are looking for

  • Help!!!Cannot update firmware N95 v20 to v21

    Could anyone help me with this problem i've installed NSU and nokia pc suite(all latest..) i've plug the my n95(v20), detected by PC suite... i run NSU,, detected,,, and downloaded v21 firmware for n95 (112mb).. after it finished downloading, when it

  • Need help with installing Windows for the bar exam

    I need to retake the bar exam in Feb 2011 and I've decided to switch to typing. I am trying to figure out what Windows I need (the software says XP is fine but is that even available anymore)- so can someone walk me through this process? I've partion

  • Trying to install AMSN-SVN from AUR, TLS troubles (Resolved)

    Hi all, I just finished attempting to get AMSN-SVN from AUR working correctly. I got it installed and running fine but when I go to sign in, it complains about a missing TLS package, which was expected from what I read in the wiki. However, AMSN for

  • Transfer table data through DB Link

    Hi, hope somebody can help me with this one. I have got two oracle servers (one is v.8 and the other v.9i)and i want to transfer a table (structure + data) from the v.8 one to the other. Let4s assume that i am issuing SQL commands from the TARGET (v.

  • Backing Up 2nd Data HD To Another HD with Time Machine

    Hi, changed my start up disc to a SSD, and moved all data to another HD. I want to back that data drive up to another drive. I don't see how I can do it with Time Machine. Can Time  Machine back up a data only HDD to another HDD, neither have an O/S