Best way to transfer data between loops?

Hi, whats the best way to transfer data between loops(state machines, regular while loop etc) in labview. For so many years ive been using local variables but these can cause race conditions. Anyone advise?
Stu

It depends one the structure of the loops and how they need to exchange data (unidirectional, bidirectional, broadcasting).
The simple case of one loop passing data to the other loop: producer/consumer design pattern using a queue
If the structure already contains an event structure: User Events
The way I code is documented in my community nugget on events
I often mix this with producer/consumer.
Felix
www.aescusoft.de
My latest community nugget on producer/consumer design
My current blog: A journey through uml

Similar Messages

  • Best way to transfer data between loops in FPGA VIs

    Hi,
    I'm using a FlexRio Board PXIe 7962, with an I/O module 5781.
    I've set the Top level Clock to 80MHz (Base Clk 40M), and I'm implementing two loops in the FPGa VI: In the first one, I'm using a SCTL (20M) where I'm getting Digitized Data (1.5MHz) from the NI 5781, then multiplying it by a DDS Signal (1.8MHz), then I'm filtering (band-pass around 300kHz)) the product.
    My question is: If what I've implemented is correct, what is the best way to transfer the first loop data running at 20MHz, to the second one running at 1MHz ? (without loosing Data of course since the signal interest is at 300kHz)
    and similarly : what is the best way to transfer the second loop data running at 1MHz, to a Host VI ? DMA FIFOs?
    Thank you in advance,
    Zouhair
    Attachments:
    Diagram.png ‏158 KB

    Zouhair wrote:
    I've set the loop timer in the first frame to 4 clock ticks of 80MHz, so I imagine that what follows should not work under 20MHz, Am I mistaken?
    Yes you are.  That SCTL will execute in the 20MHz clock time.  Everything else in the loop is just adding to that time.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • Best way to transfer data between iMac early 2006 and iMac late 2012

    What is the best way to transfer data between iMac early 2006 and iMac late 2012?

    HI, is this for Migrating all data ove, or just File Sharing?
    What OSX version is in he older one?
    Do you have any backup external drive for the older one?

  • Best way to transfer video between iphone and mac wirelessly?

    Please suggest me the best way to transfer files between mac and iphone wirelessly.Mainly for videos.

    If you want to transfer photos and videos from the Mac to the iPhone (but not in the other direction) you can use iTunes and sync via wi-fi: http://support.apple.com/kb/HT1386
    If you want to wirelessly tranfer videos in the other direction you may want to look into a 3rd party app such as http://www.photosync-app.com Note that I have not used that app so be sure to investigate others as well.

  • What is the best way to transfer data from a PC to an iMac?

    What is the best way to transfer data from a PC to an iMac?

    If you know how to set up a computer-to-computer Ethernet network, then you can give that a try, but a hard drive will be faster than Ethernet unless you don't have a lot to transfer.
    Mac OS X 10.6 Help- Creating a computer-to-computer network

  • Best way to transfer data to new internal hard drive

    Hi,
    I just got a new internal hard drive for my macbook and I'm trying to figure out the best way to transfer all the data from my old hd to the new one. Basically, I would just like to make an exact copy of my old hd and put it on the new larger one. Thanks for the help.

    Will I simply be able to do a firewire transfer on the new internal HD is installed
    Yes. Use Carbon Copy Cloner with the sopurce and destination volumes reversed after installing the new drive.
    Additionally do I need a bootable copy of OSX on my external HD to do the transfer?
    Yes; the clone can act as this copy. If you copy everything with Carbon Copy Cloner, you will be told whether the drive will be bootable or not prior to the clone.
    (33676)

  • Best Way to Transfer Data

    My 5 year old iMac recently died. I just purchased a new one and it arrived today. I have time machine back ups from the old iMac. Mt question is what is the best way to transfer the data from my time machine back up to my new mac? Should I use time machine or should I use migration assistant?

    When the Setup Assistant on the new one you will be given an opportunity to restore from a Time Machine backup. If you're out of the Setup Assistant then use Migration Assistant. Be sure you have your TM backup drive connected.

  • Best way to transfer data from other computer

    I'm wondering what is the fastest, or most reliable way to transfer data from another computer to my G5. I've skimmed through manual for G5 and it seems to list several options, if I'm understanding it correctly.
    1. Using Airport Extreme
    2. Using Bluetooth
    3. Hooking up a local Ethernet connection
    4. Setting up a Firewall connection?
    I want to be able to transfer a completed iDVD project created on an iMac G3 to my G5 for burning the DVD. And which method (if any) will work with a non-Mac computer?
    Anyone know the advantages, disadvantages of the transfer methods?
    ccCarol

    If you have a high-speed connection, another easy & fast way to transfer files between computers is through AIM (AOL Instant Messenger).
    iChat has the same ability of transferring large files as AIM.
    http://docs.info.apple.com/article.html?artnum=150934

  • Best way to transfer data from one MBP to another

    Hi there,
    In few days time I'll be swaping MBP 15 Retina (os 10.9.3) for new one. Some thech issues with the current one. Have to send old and will get new.
    TM Backups runs automaticaly Airport Time Capsule (wireless).
    What is the best and safest way to transfer whole data?
    How to setup Time Machine? Any special settings for last backup before will send it?
    How to get all stuff back on the new one?
    About 150GB on HD.
    Thanks

    Make a bootable backup/clone of your current machine onto an ext HD. Better than restoring from TM. Then, when you get the new machine, on first boot (assuming whoever's providing it to you hasn't already set it up), follow the steps in Pondini's Setup New Mac guide, migrating from the bootable backup/clone.

  • Best Way To Transfer Data To New Mac

    I know this question has been asked ad naseum, but I can't seem to find exactly what I'm looking for today...
    My new iMac arrives today (w00t!) and I want to transfer all my data over to the new computer. But I'm coming from a Mac that is four years old (though still running Lion) and there's probably a lot of crap on the old machine like corrupt preferences and whatnot, and I don't really want all that baggage coming over with me. I obviously want to transfer over my documents, iTunes and iPhoto Libraries and all the iWeb stuff and whatnot. I'm not afraid to reinstall my apps, if that's the ideal scenario and I don't care if my settings and dock reverts to deault, if that's the best way to do this. So I'm trying to determine the best (and possibly fastest) way to load up the new Virgin machine. I have the ability to connect the two computers via Firewire and I also have an up-to-date Firewire Time Machine Backup of everything as well.  Any and all advice is appreciated. And don't be afraid to tell me I'm crazy and that I shouldn't worry about corrupt stuff and I should just Set Up Assistant or Migration Assistant (though I hear Set Up is better?)  Thanks!

    If all you want to migrate is the data files then use Pondini's Setup Assistant guide as instructed. It will ask what you want migrated however if you only choose data it will migrate ALL of your data files. If you have some files you don't want to migrate then it may be best to start the old machine in Target mode after setting up the new machine then  you can pick and choose what data files you want to copy over to the new machine.

  • The best way to transfer videos between devices and mac?

    I have an iphone 4s, ipad and a macbook pro - is there any way to transfer videos wirelessly betwen these platforms?
    As far as I know icloud only allows photostream of photos only but nit videos. This is quite inconvenient for video users as I normally take videos using my iphone 4s and would like to edit using ipad/mac's iMovie. I suppose I could transfer videos using a wire between iphone and Mac (still a PAIN without being able to transfer wirelessly), and what about between iphone and ipad? I understand Apple might be concerned about storage and speed for video transfer via icloud, if we could selectively do the transfer and have the option to delete them from icloud after the transfer it will be very much easier for video editor like myself.
    Or have I just missed something? Is there indeed a way to do so??

    If you want to transfer photos and videos from the Mac to the iPhone (but not in the other direction) you can use iTunes and sync via wi-fi: http://support.apple.com/kb/HT1386
    If you want to wirelessly tranfer videos in the other direction you may want to look into a 3rd party app such as http://www.photosync-app.com Note that I have not used that app so be sure to investigate others as well.

  • Best way to move date between LabVIEW 7.1 and 2010

    We have a large LabVIEW based control and data acquisition system that for reasons beyond the scope of this post is at and needs to stay at LabVIEW version 7.1 for the forseeable future...  We are soon to add a camera diagnostic to this system that, again for reasons beyond the scope of this post, needs to be written in LabVIEW 2010...  The 2010 piece of code will run and need to receive some information such as shot number, when to trigger, etc. from the 7.1 side of the system...  Then after a shot has occurred and a camera image has been acquired, the 2010 code will do some on the fly processing of this image and within a few seconds will need to send back some results data to the 7.1 side... 
    The 7.1 code uses a tag engine approach to sharing data among different codes running on different machines...  I think now that more modern versions of LabVIEW use a shared variable approach...  But I need to communicate as I've described above between the two versions, 7.1 and 2010 (or it could be 2011 if that would offer some advantage)... 
    I'm new at this moving of data between versions like this so if something could offer some advice, especially if there is some tutorial information on this topic, that would be much appreciated...  Thanks in advance for any help that you might be able to offer...  thanks...  bob...

    It really depends if your tag engine like communication approach is a home brown solution or something like the LabVIEW DSC engine. If homebrown and well written you should be able to reuse the client library part of it in newer LabVIEW versions without to many hassles. If it is LabVIEW DSC it may be a bit more complicated since the only means to share DSC tags in version 7.1 was as far as I can remember their proprietary TCP/IP tag interface, which was replaced in newer versions with he shared variable engine.
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • What's the best way to transfer music between computers after iTunes Match?

    I've pretty much uploaded everything to iTunes Match now, but my collection is across two computers and so it has merged everything together... Which is fine. However, I was planning on moving some of my items from one computer to another (i.e. from my smaller iTunes Library on the MacBook to the main iTunes Library on my PM G5).
    Since it is all nicely synced now, I've discovered that if I use Home Sharing, then transferring the files manually seems to duplicate them on iTunes Match. So instead of doing this, I'm downloading them from the cloud on my PM and then deleting them on the MacBook once they're done... All good so far. However, a bunch of my music is in ALAC and so I don't want to do it this way because I'll end up downloading the files at 256kbps AAC instead.
    So I just wanted to know, is there a good way of getting already-synced ALAC files from one machine to the other without having to get iTunes Match to re-sync them all over again?

    You can preserve such metadata - worth an initial trial on simply moving as outlined - if metadata is lost you can reinstate by accessing the itunes library .xml file, to force itunes to read it you would need to clear the .itl file (if essential this will work but it is best avoided since it requires iTunes to rebuild your library from the .xml file).

  • Best way to move data between instances

    I currently have a procedure that updates our data tables between instances... I would normally do a clone but since developers use this instance to do their work in, it's not a viable option.
    The past few times, I've scheduled the procedure to run via the Oracle Scheduler and it's bombed... This time, it updated 72/433 tables. I'm going to try and run it manually to see if it bombs again, but does anyone have any recommendations?
    Oracle 11.1.0.6 on AIX 6.1
    Non-Rac | All instances on same host
    Any help or ideas would be great!

    You can try EXP/IMP to do this and is the easiest method
    --SVMG                                                                                                                                                                                           

  • Best way to transfer file between two web apps

    I'm looking for some architectural suggestions. Seems like a simple problem, but I'm really struggling.
    -- Problem:
    We have two web servers, both running apps in JBoss. I need to pass a file of roughly 20MB from one server to the other, and get the other server to process it as soon as it receives it.
    -- Details:
    Seems simple enough... My plan was to write a web service to pass it. Our company is all onboard the SOA train. I wrote a service that encoded the file as a byte[] and passed it. Works amazing for small files, but throws an Axis OutOfMemory error when trying to base64 encode the file. I then looked at using attachments for web services, but dismissed that. It creates malformed XML since it treats the service as a multipart MIME message wraps the webservice inside. It quickly became messy and I couldn't get it working. Seemed to defeat the purpose of an XML service too.
    I've considered just doing a HTTP POST of the file to the other server, but that's poorly documented and a bit of a hack way to do it. I also considered just dropping the file in a web accessible folder, then using a web service to pass a URL and get the other server to retrieve it via HTTP. Again, not a very nice solution.
    Anyone have any suggestions? Thanks.

    Kimos2 wrote:
    I don't have access to run/configure services on these machines, so FTP is out. It has to be JVM to JVM. Even if I did, I'd have to worry about triggering JBoss to process the file right away after it had been dropped there. I know i could poll the directory or send a message to trigger the process, there'd be synchronization issues etc to work through and seems to introduce unneeded complication.Yes, I agree with that. Having been through the polling directories and grabbing partially uploaded files scenario ad nauseam. It's much worse with large files too.
    Barring any suggestions I haven't thought of, I'll probably end up settling on the HTTP POST solution. My problem is that it's providing a service without a specification and is not self-describing. No WSDL file to pass to clients that plan on using it. I would do HTTP POST as well. I didn't understand the part about "without a specification". You do have a specification, don't you? Wasn't this it: "I need to pass a file of roughly 20MB from one server to the other, and get the other server to process it as soon as it receives it." Informal, yes, but I don't have a problem with that. Post it to a URL on the receiving server and set up the receiving server to do whatever it's supposed to do with the file.

Maybe you are looking for

  • Need to send a dashboard page as an excel file in an iBot

    Hi, Is it possible to send a whole dashboard page as an excel file in an iBot/agent? We're using OBIEE 11.1.1.5.0 and have a requirement where different users need to access the dashboard pages via excel. Most of the pages have multiple requests and

  • IOS x on my windows PC

    I am thinking of converting to Mac iOS x.  I have a quad core amd with a ton of ram and hd space. I have an iPad and iPhone and have really like the operating of both.  If I install iOS x will I be able to access my files on the windows side while in

  • How to name a dynamically loaded swf

    heres my prblem i have a set of button buried inside a mc when they are clicked i need them to call upon a external mc. ive tried some different code but nothing works. _level0.contholder_mc.contractor_mc.gotoAndPlay() works but only one time. if i c

  • Audio dropouts on onboard

    I've been experiencing audio dropouts and, on idle, clicks and pops on the Intel HD audio. If I use an iMic, I have no problems at all. I am currently working on a realtime broadcast television application that this could affect. Is there a way to in

  • IMessage combining child and parent text messages

    When my child sends a text message it appears that the message comes from me, the adult. When I try to text my child she doesn't receive the message and I text myself. I've tried to find ways to untether child/parent but I can't.  my iMessage setting