Asynchrono​us to synchronou​s data

I have a vi with several sub vis collecting data from a variety of more or less asynchronous processes. In some cases the instruments are triggered but mostly they are supplying serial ASCII strings of various lengths at about 1 second intervals. Some are slower. How do I once per second grab whatever data is available in the all of the individual buffers and put it in a time stamped array, each row having a one-second time stamp. It is not necessary that each data point have unique data. There is no problem if the same data is read more than once for storage in the array.

Hi,
i have a problem.
I saved data from VISA read into a file in a for-loop and then read the data from the same file and display them into a waveform chart, in another for loop.
I want the two operations to operate synchronously, as in, once a string is being read by VISA read, the other for-loop will plot it and plot the point in the waveform chart.
I tried to wire the waveform chart directly to the array of strings collected, but it can only be displayed only after all the strings have been collected using spreadsheet into an array. However, this is not I want. I want to read one string, plot one point, and this process is continued until i get a whole waveform.
I read from the above reply that "Every time that you get new data, send off a n
otifier with the data to the other loop. You can then collect the data and place it into an array every second (using the tick counter to determine that)."
is that suitable for my case?
i am not using a while loop, which is being assumed. So, i am not sure how i should do? should i use the event-driven to make my case work?
student

Similar Messages

  • How to take a single data point for each trigger pulse ( synchronou​s acquisitio​n).

     hi
              im using the pci-mio-16E1 card, with the IDE VC++, so  im looking for an example to explicate me how to make an synchronous acquisition data using an external timing, so the idea is to acquire (take) a single data point for each trigger pulse  from one  input channel ,and saving  the data in a file .
    now im making a code using the AI_setup and DAQ_op functions, im getting  a speed acquisition (it is the start of acquisition data), and  it is  a synchronous acquisition just for one trigger pulse, and me i looking for an acquisition for each trigger pulse. 
      so to  understand my problem you can see my code :
    iStatus = Timeout_Config(iDevice, lTimeout);
             iRetVal = NIDAQErrorHandler(iStatus, "Timeout_Config", iIgnoreWarning);
       //  configuration and selection of  signal trigger  
             iStatus = Configure_HW_Analog_Trigger(iDevice, ND_ON, iLowValue,iHighValue, ND_ABOVE_HIGH_LEVEL, ND_THE_AI_CHANNEL);
            iRetVal = NIDAQErrorHandler(iStatus, "Configure_HW_Analog_Trigger", iIgnoreWarning);
      iStatus = Select_Signal(iDevice, ND_IN_CONVERT, ND_PFI_2,ND_HIGH_TO_LOW);
             iRetVal = NIDAQErrorHandler(iStatus, "Select_Signal", iIgnoreWarning);
        iStatus = AI_Setup(iDevice, iChannel, iGain);
       iRetVal = NIDAQErrorHandler(iStatus, "AI_Setup", iIgnoreWarning);
       while ((iReadingAvail != 1) && (iStatus == 0)) {
     /* Wait until reading is available. */
             iStatus = AI_Check(iDevice, &iReadingAvail, &iReading);
            iRetVal = NIDAQYield(iYieldON);
           //  Acquire data from a single channel 
        iStatus = DAQ_Op (iDevice, iChannel, iGain, piBuffer, ulCount, dSampRate);
       while ((iDAQstopped != 1) && (iStatus == 0)) {
            iStatus = DAQ_Check(iDevice, &iDAQstopped, &ulRetrieved);
            iRetVal = NIDAQYield(iYieldON);
           iStatus = DAQ_VScale(iDevice, iChannel, iGain, dGainAdjust, dOffset,ulCount, piBuffer, pdVoltBuffer);
          iRetVal = NIDAQErrorHandler(iStatus, "DAQ_VScale",iIgnoreWarning);
       /* Set analog trigger mode back to initial state. */
           iStatus = Configure_HW_Analog_Trigger(iDevice, ND_OFF, iLowValue,iHighValue, ND_ABOVE_HIGH_LEVEL, ND_THE_AI_CHANNEL);
      /* Set PFI line back to initial state. */
           iStatus = Select_Signal(iDevice, ND_IN_START_TRIGGER,ND_AUTOMATIC, ND_DONT_CARE);
              iStatus = DAQ_Clear(iDevice);
     /* Plot acquired data  */
          iRetVal = NIDAQPlotWaveform(pdVoltBuffer,ulCount, WFM_DATA_F64);
    so this is the data acquired -0.900879,-0.900879,-0.900879,-0.900879,-0.900879,​-0.900879,-0.900879,-0.900879 and i think that is a noise because all time i get this data.
    tank you very mutch fo your help

    Hello,
    Please see the responses to this thread at the following post.
    http://forums.ni.com/ni/board/message?board.id=250​&message.id=13686
    Also, please only post one thread per issue.
    Regards,
    Sean C.

  • TDMS Advanced Asynchrono​us Write (Data Ref)

    Hello,
    Im using the TDMS Advanced Asynchronous Write (Data Ref).vi to write Data directly from some DMA FIFO´s to TDMS file. I save the Files on a NI 8260 1TB HDD Array.
    Now the question. I´m interested on how this Advanced Asynchronous Write (Data Ref) works. What is done with the external Data Ref from the DMA FIFO and how does LabVIEW work with the data?
    I searched the NI Forums and NI page but found no information on how this works.
    Maybe someone can help me,
    Daniel@amc

    Hi,
    Indeed, there is little information besides the help file online:
    "Writes data to the specified tdms file asynchronously. This function can initiate multiple asynchronous writes that take place in the background."
    Is there something in specific you want to know? Or is the function not behaving as expected (performance issues etc.)
    Regards,
    René

  • When using an asynchrono​us timer need data protection​?

    Global variable in asynchronous timer callback function need to protect data?
    thank you !

    Asyncronous timers are executed in a separate thread, so they are expected to be running while the user is operating on the user interface and possibly on data collected in timer callback. All this means that you need to protect your data from concurrent access from both the timer thread and the main thread (where the user interface is normally handled) to prevent unexpected  program behaviour.
    Proud to use LW/CVI from 3.1 on.
    My contributions to the Developer Zone Community
    If I have helped you, why not giving me a kudos?

  • I install window 8 and Unfortunatly all drive format. And all drive mix, now i have only 1 DRIVE C. I want Bit locker Drive's data Back

    Last sunday i install a window 8 and this window format my all drive & make it 1 drive (DRIVE C). Before all of this i have 5 drive in different size with 1 Bitlocker protect drive.
    So i try data recovery software to recover my data. i got back all my data without that ( bitlocker ) protected drive.
    so please guys help me how can i get back data from bitlocker protected drives.
    please please help me.

    Hi,
    I sorry for your experience, but there is no way to recovery the data encryped by BitLocker untill now.
    BitLocker is designed to make the encrypted drive unrecoverable without the required authentication. When in recovery mode, the user needs the recovery password or recovery key to unlock the encrypted drive. Therefore, we highly recommend
    that you store the recovery information in AD DS or in another safe location.
    Please refer to the link below for the statement:
    http://technet.microsoft.com/de-de/library/ee449438(v=ws.10).aspx#BKMK_RecoveryInfo
    Roger Lu
    TechNet Community Support

  • MB5B Report table for Open and Closing stock on date wise

    Hi Frds,
    I am trying get values of Open and Closing stock on date wise form the Table MARD and MBEW -Material Valuation but it does not match with MB5B reports,
    Could anyone suggest correct table to fetch the values Open and Closing stock on date wise for MB5B reports.
    Thanks
    Mohan M

    Hi,
    Please check the below links...
    Query for Opening And  Closing Stock
    Inventory Opening and Closing Stock
    open stock and closing stock
    Kuber

  • Refreshing the Data from a embed view in a view container

    Hi everybody
    I would like to know how can I do to refresh all data from a View with a view container the problem is:
    that I have a window that has a view at the same time this has a view container.  The Main view brings the data of editable elements when I select one element of the main view the view container brings a list for that element (dependencies) but only the first time a choose an element loads the correct data, when I choose another one it brings the same old data and doesn't make the call for the wdDoInit() method.
    The question is:
    How do I force the view to refresh all the data or call again the wdDoInit() method?
    Thank you for your help

    Aida,
    Lets say you have two components C1 and C2 and you want method from C1 to be available in C2 then follow these steps:-
    1) Goto the Interface Controller of C1 and create a method there lets say doSomething
    2) Then goto C2. There you can see Used Web Dynpro Components --> Right click Add Used Component --> Give some name say C1Comp --> Click browse and select C1 --> Click Finish.
    3) Next goto Component Controller of C2 --> Properties --> Click Add and check if C1 is added. If not then select the checkbox and select OK.
    4) Now goto Implementation tab of C2 and lets say wdDoInit you can write following code:-
    wdThis.wdGetC1CompInterface().doSomething();
    Chintan

  • ITunes & Windows Vista Home - Error File C:\Program Data\Apple Computer\Installer\Cache\iTunes 10.5.142\iTunes.msi was rejected by digital signature policy.

    Tried
    https://discussions.apple.com/thread/2713232?start=0&tstart=0
    and
    http://www.vistax64.com/vista-general/159940-computer-blocking-anything-no-digit al-signature.html
    with no avail!!!
    iTunes opens after I click OK on the above message however I cannot do anything within the app its like Windows it preventing it from running.
    PLEASE HELP!!!

    Update:
    I tried what the diagnostic told me to do, and repaired the installation. I was able to burn a CD in iTunes, but after I restarted, the drives have disappeared again! Here's the diagnostic info now:
    Microsoft Windows Vista Home Edition (Build 6000)
    MICRO-STAR INC. MS-6728
    iTunes 7.6.0.29
    QuickTime 7.4
    CD Driver 2.0.6.1
    CD Driver DLL 2.0.6.2
    Apple Mobile Device 1.1.3.26
    iTunes Serial Number 20D6EAF059AB94B4
    Current user is not an administrator.
    The current local date and time is 2008-01-15 19:09:32.
    iTunes is not running in safe mode.
    Video Display Information
    ATI Technologies Inc., Radeon X1600/X1650 Series
    ATI Technologies Inc., Radeon X1600/1650 Series Secondary
    ** External Plug-ins Information **
    Plug-in Name: Last.fm iTunes plugin
    Plug-in Loaded: Yes
    Plug-in Version: 0.0.13
    Plug-in File Version: 2.0.13.0
    Plug-in Path: C:\Program Files\iTunes\Plug-ins\itw_scrobbler.dll
    No drives showed up to be tested.

  • Format C drive, what steps to take for retaining all data of iTunes?

    Hello
    I want to format my C drive of Laptop and shift my itunes to E drive. I'm on windows 7. C drive is having itunes and in that I have synced my 2 iphones and 1 ipad.
    Now I want to format the C drive and want to retain all the data, backup, media etc of my synced data with the itunes.
    What I've done is that I transferred my music location from C to E drive by using apple forum discussion. I changed destination to E drive in ADVANCED TAB in Edit-Preferences. Then orgainzed data. That was successful.
    Now please help me on what to do next so that i can retain my all my data of itunes safe before formatting my C drive.
    Thanks in advance

    This definitely isn't intended as a substitute for tt2's tutorial (which is comprehensive and more detailed - in case of any differences I'd follow what's stated there), but in summary you should be doing the following.  I've assumed that, as per your original post, you've changed your media location to E:\iTunes and consolidated the library.  You now have a "split library" where:
    E:\iTunes contains a folder called iTunes Media which in turn contains several subfolders such as Automatically Added to iTunes, Audiobooks, Music, ...
    C:\Users\your user name\Music\iTunes contains the following folders and files:
    Album Artwork (folder)
    Previous iTunes Library (folder)
    iTunes Library Extras.itdb (file)
    iTunes Library Genius.itdb (file)
    iTunes Library.itl (file)
    iTunes Library.xml (file)
    I'd suggest making sure that you're running the latest version of iTunes before proceeding - by default, this will be the version that you download and install when you rebuild your PC.
    Before you change anything else, exit iTunes.  Now copy all of the folders and files in C:\Users\your user name\Music\iTunes to the same folder on your external drive (E:) that contains your media folder.  You should now have this:
    or something very similar.  Now restart iTunes while holding down the SHIFT key.  You will see this dialog:
    Select "Choose Library ..." and navigate to the folder on your external drive with the content as described above.  Select the iTunes Library.itl file and click OK.  iTunes will load - check that everything you expect to see is there.
    You now have a "portable library", i.e., all your media and the files that iTunes uses to organize them.  You can use this in conjunction with any PC running Windows and iTunes (noting limitations regarding your iTunes account and authorizations).  As tt2 suggested in his response, before you go any further:
    Make a backup of your new portable library to another device.
    De-authorize your iTunes account.
    Back up everything else you need to retain from the C: drive of your PC (this is beyond the scope of this forum - there's plenty of help out there on various Microsoft sites, etc.).  Just remember that once you take the plunge and reformat the C: drive anything that you haven't backed up is gone ...
    Once you've reformatted the drive and reinstalled Windows, install iTunes.  As befpre, hold down the SHIFT key when you start it up and select the iTunes Library.itl file on your external drive. You can then re-authorize iTunes and be back in business ...

  • I was given the wrong macbook when I gave mine in for repair.  I want to complain.  Also, they wiped ALL my data off the hard drive.  I want to complain to someone in authority.  How?

    I am extremely disappointed and angry with Apple service.  I am a writer and booked three weeks in Spain so that I could finish my book.  On the second day my laptop cut out on me asI was working on it, so I took it to Goldenmack in Cadiz.  Not only was I given someone else's macbook when I went back to collect it, but then when I returned to the UK, the Apple shop in Brighton managed to delete ALL my data from the hard drive because I was unlucky enough to get a trainee on her first day.  I have since learned she should not have deleted my data without even running a diagnostic.  She told me she was going to 'restore' the drive.  I took this to mean she was going to restore my work.  But no!  She erased the lot.
    I complained and eventually was put in touch with a supervisor, who I was told  had authority to resolve the issue. She said she would get the shop to phone me.  That was ten days ago and I'm still waiting. 
    Ok so there's nothing I can do now to get back the three chapters of my book that I have lost and didn't back up, but the  hard drive on this laptop is still faulty.  I try to back up my work every time I use the machine but as soon as I attach an external drive, the whole thing shuts down. I can't use it any more as I can't risk losing any more work.    This laptop is only just over a year old and this is just not acceptable, especially since I have really looked after it. 
    This is an appalling service I have encountered from Apple, and I am not going to ignore it.  I have contacted the young chap whose laptop I was erroneously given, and the repair of which I paid for! (although I did eventually get a refund),  to ask him if he had been given mine as well.  He said he had been completely unaware that his laptop had been given to me and he is furious as he had loads of "sensitive material" on it."  I have no idea in whose hands my laptop has been either, or indeed what damage it sustained while it was supposed to be in for repair.

    Contact Apple Support:
    http://www.apple.com/support/contact/
    Apple - How to Contact Us:
    http://www.apple.com/contact/
    Be sure to refer to the repair ticket number.
    Sounds like a terrible mixup.
    Good luck & happy computing!

  • Data Back Up Plan

    Hi,
    My internal hard drive, 320 GB, 'fully loaded', on my 2 year old imac crashed 10 days ago.
    Since I had the extended warranty, the 'local' Apple store replaced the internal drive within hours
    at no charge and even loaded Snow Leopard and iLife. With a well updated TimeMachine on an external hard drive I was back working at my imac the next day. When I realized after the crash that my precious 250 GB of pictures in Adobe Lightroom and iPhoto, along with a few videos were saved on just one older Maxtor external hard drive, it made me think about a more solid back up procedure.
    The idea now is to move all big volume files to one or more external hard drives.
    In the meantime I have transfered the iPhoto and Lightroom files to an external hard drive (WD MyBook II, 2x1 TB in RAID 1), which gives me the first layer of back up: http://www.bhphotovideo.com/c/product/552322-REG/WesternDigital_WDH2Q20000N_2TB_My_BookStudio.html
    In a second step I am planning on making a clone (with SuperDuper or CarbonCopy) of the internal hard drive (mainly operating systems and applications) and the external hard drive (all big data files) on one additional external hard drive, i.e. OWC Mercury Elite AL Pro Raid 0, 2 TB http://eshop.macsales.com/item/Other%20World%20Computing/ME8Q7T20GB64/
    I am looking for advise here:
    Do SuperDuper or CarbonCopy (I only know the names from the discussion forums) allow me to make a clone from 2 separate hard drives
    Would it be good practice to create a large clone of ultimately 2 TB with ALL files or wouldn't it be better to make 2 clones , one of the internal and one of the external drive.
    TimeMachine had helped me to get back to work quickly after the crash. I expect to fill the WD 1TB drive rather quickly. Where should I plan on using Time Machine in my new back up plan?
    Would appreciate comments and advise.

    reckling wrote:
    Do SuperDuper or CarbonCopy (I only know the names from the discussion forums) allow me to make a clone from 2 separate hard drives
    No. A clone is of your boot volume only. But those apps can make separate backups of multiple drives, either to multiple drives or to separate partitions on the same drive.
    Would it be good practice to create a large clone of ultimately 2 TB with ALL files or wouldn't it be better to make 2 clones , one of the internal and one of the external drive.
    2 is not only better, but your only option with CCC or SD.
    TimeMachine had helped me to get back to work quickly after the crash. I expect to fill the WD 1TB drive rather quickly. Where should I plan on using Time Machine in my new back up plan?
    There is no "right" answer, just a number of possibilities. Some thoughts:
    You could use TIme Machine to back up both your internal HD and the WD set to the OWC, if it's at least twice the size of the data on both. It looks like it can be configured as a +Concatenated RAID set+ (both drives into a single 2 TB volume), so that should work well.
    Or use TM to back up your OSX drive, and CCC or SD to back-up the media drive.
    The CCC or SD backups usually aren't practical to run more than once a day, so consider them your "secondary" backups.
    Also strongly consider getting something off-site (safe deposit box, workplace, relative's house, etc.), so you're also protected against fire, flood, theft, direct lightning strike on your power lines. Portable external HDs are great for that. Some things may even be appropriate to take to DVDs.
    The problem with that is, there aren't many portables over about 640 GB (LaCie has a 1 TB for either $300 or $400: http://www.lacie.com/us/products/product.htm?pid=11357).
    CCC is donationware, so you can use it free for a while. If you decide to keep it, send them some $$ so they can keep it up to date. SD has a free version, but to do updates (rather than a full replacement) or automatic scheduling, you need the paid version (about $30). Either is available via Google, VersionTracker.com, or MacUpdate.com.

  • How do I install all my old programs and data from an old system folder after I have reinstalled the same OSX system after a crash?

    The system is OSX10.5.8 Leopard on a 2009 imac. A new system was installed from the installation disks and the original system saved to a folder.
    I need to use my Adobe programs, rescue my email, i-tunes and iphoto data.  The disk utility indicates that my Time Machine back-up disk is damaged and I don't want to take a risk of having Time Machine erase my hard drive and try to reinstall the exact system existing at the time of the crash.  There was over 650 gb of stored files that I was copying and removing from the drive at the time it crashed. The total size of the original system file is still about 650 Gb.
    I would prefer to go back in Time Machine and only rescue the programs as most of the files have been copied to external hard drives, but I can't access the back-up hard drive from the new version of the Time Machine.  Or by I don't want the Time Mchine to start copying the new operating system which would include all the data in the old system file. Time Machine was working fine at the time of the crash.

    No, the disk was backed up with time machine a few hours prior to the crash.  I was unable to open the computer when I tried to restart it- got a grey screen with the spinning disk- after a few minutes the screen would go black and would reboot continuously, but not load any images or programs. I started the computer from the 10.5.4 installation disks and checked both the time machine external hard drive and the Imac internal drive with the disk utilities. Both showed as damaged --the internal drive and permissions were repaired, but the external drive (time machine back-up)  was damaged and not repairable by disk utilities. I don't believe that the external drive for Time Machine was connected to the computer at the time of the crash as I was copying files to a different hard drive drive. And I was not having any problems with the TM back-up drive prior to the crash.
    I accessed the Imac internal disk by firewire (as a target disk) and copied as many data files as I had room for on my external hard drives available.  And I deleted quite a few files from the imac internal drive (mostly just jpegs, duplicate tifs, etc--nothing that was used by i-photos, i-tunes or the Mail program).
    Then I installed a new OSX10.5.4 system from the installation disk and the old system was moved to a folder on the hard drive.  I previousy had had the option to reinstall the complete system from Time Machine when I connected that drive and booted with the installation disks with the C key depressed.  But it didn't seem like a good option because I was unsure of the condition of that external disk and whether it would be able to reinstall my data correctly, once it had erased my internal hard drive. 
    I'm considering buying some new external hard drives and backing up the present system to time Machine (so I'll still have my old data in the old system folder).  And then I would try using the old Time Machine back-up to try to reinstall the sytem previous to the crash.  That back-up would reinstall about 700gb of data and operating software and programs which sounds like a lengthy back-up.  Since I have never used Time Machine to do a full reinstallation (I've only used it for individual files), I'm reluctant to do anything rash.
    I'm a professional designer (with a deadline) but I can still use my Illustrator and Photoshop by opening them from the old system folder and saving the files to an external drive.  So it's not neccessary to do anything hasty except to delete some of the excess art and document files that were causing the computer to run slowly and the  Adobe programs to crash when I tried to save my work. I have quite a few books on tape in the i-tumes folder which is probably talking up tons of space but I don't where the i-tunes files live.
    Thanks for any help. Peggy
    Message was edited by: peggy toole

  • Data Recovery from Partitioned and formatted Bit Locker Encrypted Drive

    Recently because of some issues in windows 7 installation from windows 8 installed OS. it was giving as the disc is dynamic windows can not be installed on it. so at last after struggling hard no other solution i partitioned and formatted my whole
    drive so all data gone included the drive which was encrypted by bit lockers.
    For recovery i used many software such as ontrack easy recover, get data back, recovery my files professional edition but still i couldnt able to recover my data from that drive. then i found some suggestion Using CMD to decrypt my data first 
    http://technet.microsoft.com/en-us/library/ee523219(WS.10).aspx
    where it shows it successfully decrypt my data at that moment my drives were in RAW format excluding on which windows is installed and then in CMD i check Chdsk which also shows no problem found. but now problem is still i coudnt able to recover
    my data then i format the drive D and again tried to recover data using above software after decryption still no result. 
    Now i need assistance how i can recover my encrypted drive as it was partitioned and also formatted but decrypted also as i have its recovery key too. thanks

    Hi ,
    I am afraid that we cannot get the data back if the drive has been formatted even if use the
    BitLocker Repair Tool.
    You’d better contact your local data recovery center to try to get data back.
    Tracy Cai
    TechNet Community Support

  • I am using Windows 8.1 i have an External Hard Disk and one drive is now inaccessible due to sudden power failure few days ago. Now it shows "Data error (Cyclic redundancy check)". I want all my important files and Pics. How ?

    Hi,
    I am using Windows 8.1
    I have an External Hard Disk i have partitioned it to 4 parts.
    One drive is now inaccessible due to sudden power failure while listening Music from that drive few days ago.
    Now it shows "Data error (Cyclic redundancy check)".
    I tried all the procedures provided here like
    chkdsk /f, diskpart, rescan etc
    but no result :( (i mean all processes failed. They could not detect the drive).
    Please help me to get those data, pictures and project files.
    thank you

    Then why aren't you posting this in the Windows 8 forums found @
    http://social.technet.microsoft.com/Forums/windows/en-US/home?category=w8itpro
    This is a Windows 7 forum for discussion about Windows 7.
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. ”

  • FORMAT WINDOWS 7(64) BY MISTAKEN NOW HOW I RECOVER ERASED DATA WHICH I HAD LOCKED DRIVE BY BIT LOCKER

    i'm using windows 7 (64 bit) but experiment to install mac on my PC (i 5-4 GB ddr 3-500sata sea gate).by mistaken its format my whole hard drive which is 500 GB sea gate sata.after this i'm confused and install windows 8.1 and then again i had install windows
    7 (64 bit) now after 2 time partition erased i'm trying to recover my data 50 percent data but which drive i had locked with windows 7 bit locker it cant recover any thing I've remember its password.
    any one help me to get back my data from this locked drive ?
      

    RB
    If the drive was both formatted and bit locked you cannot recover your data.
    Wanikiya and Dyami--Team Zigzag

Maybe you are looking for