Acquire data continuously, but write to Excel at intervals

I'm the continuous acquisition of data (voltage & temp) of a unit DAQmx. At the same time I want to record to in spreadsheet X number of samples (for example 100) at intervals of 1 minute only. Also, I would really only two records of these 100 samples (a min & max value). I have a working code, but I can't understand how to write on the worksheet at intervals of 1 minute for X number of samples. So I'm stuck. TIA

you're right about the loop into two.

the other part is to close the queue as the closing of a file

Tags: NI Software

Similar Questions

  • write data to the cell in excel

    Hello

    I am trying to write data to a cell in excel. When I'm looking in sample program, I felt a bit difficult to understand.

    I have written code to read data from a particular cell that works well. I am facing difficulties in writing data in the cell. pls help someone.

    to read a data cell that works

    status is Excel_RangeGetItem (rangeHandle, NULL, CA_VariantInt (i + 1), CA_VariantInt (j + 1), & MyVariant);.
             
    Get the pointer of SHIPPING
    status = CA_VariantGetDispatch (& MyVariant, & MyDispatch);
               
    Create a Range object pointer for SHIPPING
    status = CA_CreateObjHandleFromIDispatch (MyDispatch, 0, & ExcelSingleCellRangeHandle);
               
    Get the value of the range of simple cells
    status = Excel_GetProperty (ExcelSingleCellRangeHandle, NULL, Excel_RangeValue2, CAVT_VARIANT, & MyVariant);
              
    status = CA_VariantGetCString (& MyVariant, &val);)
    strcpy (CellValue, Val);

    to write data in a cell

    status is Excel_RangeSetItem (rangeHandle, NULL, CA_VariantInt (i + 1), CA_VariantInt (j + 1), MyVariant);.
             
    status = CA_VariantSetDispatch (& MyVariant, & MyDispatch);
               
    status = CA_CreateObjHandleFromIDispatch (MyDispatch, 0, & ExcelSingleCellRangeHandle);
       
    status = Excel_SetProperty (ExcelSingleCellRangeHandle, NULL, Excel_RangeValue2, CAVT_VARIANT, & MyVariant);
             
    status = CA_VariantSetCString (& MyVariant, writedata);

    I know I made a mistake in the code above.

    Thank you very much, Roberto. You have solved my problem.

  • To generate a sinusoidal waveform of given the frequency of acquiring data 6251

    How can I generate a sine wave of given the frequency of acquiring data 6251? I tried to use the generation of waveform of the signal processing Toolbox, but it seems that it is written that the first or the last sample, not all. I have faced this condition when I tried to write through 1 d double multichannel analog waveform.

    In the examples, look at Gen Con voltage Wfm - Int CLK.

    If you continue to have problems, according to the code you have written.

  • acquire data from the oscilloscope DPO2024

    I am trying to acquire data from the oscilloscope DPO2024 using labview. I am able to do, but my vi file only works for channel 1. Other than channel 1, it does not work and instead, it changes the adjustment of the oscilloscope as well. Find the vi files attached.

    Any help is very appreciated.

    You must connect the channel in the waveform of reading.  It is default to channel 1 if thread continues.

  • Get the highest value of acquired data

    Hi, how can I get the highest value of data according to data acquired using the accelerometer ADXL345 and LINX in LabVIEW?

    I want the highest data to be shown with a flag. However, the data being shown are always the last acquired data. My problem would be what happens if the highest data somewhere at the beginning or in the middle of all the acquired data? How to display the highest data using an indicator?

    Here's a look at my front, block diagram, and sample of the acquired data.

    From the front panel, the basic indicator of detected last poster 0.1929 (amplitude), which is the last value. But looking at the Excel file, the highest data are data which is 0.2013. The highest, I want to be displayed on the indicator not the last value. How do I do that?

    Thank you!

    I gave you an example of what you need to do - it is not okay if wire you the new value and the old value for the X or Y - it will always return the maximum of the two values so the order doesn't matter. It would have been more useful if you had posted what you tried the max & min. You need a registry to offset inside the loop (like I did with my while loop). If you only want to display the maximum value for each iteration of the loop for external, you must initialize the shift register by plugging a 0 to its terminal on the left. A shift register her pinned the value of the last run - probably not what you want here.

  • Do you know if you can acquire data from a microcontroller that runs under the PLUS + 1 environment, using the NI 9201 platform?

    Hello world

    Do you know if you can acquire data from a microcontroller that runs under the PLUS + 1 environment, using the NI 9201 platform? I need to build a test environment in labview, but entries must be purchased from the microcontroller MC024012 Sauer-Danfoss. The problem is that this microcontroller interface provides the programming amiente MORE + 1 Sauer-Danfoss. Can you help me?

    Thank you

    Elza Figueiredo

    double post and bad advice

  • How to acquire data through several channels in parallel using E 6070 PXI, PXI-4071 and LabVIEW?

    Hello

    I use LabVIEW and NI PXI-4071 PXI NOR 6070E to measure the current through a variable resistance. Now, I use a single channel of SCB - 68, but I want to add another channel at the same time so that I can have two resistors instead of one that I cam measure current through them.

    I have attached a Pdf file showing installation of equipment to use and code LabVIEW also.

    Can someone look at these files and give me some guidelines or ideas that can help me solve this problem, please.

    Thanks in advance.

    Best regards

    Shaheen.

    Your 4071 can do a measure at a time. Your data acquisition cannot measure resistance is not she of the analog inputs.

    However, you could use a multiplexer and multiplexer your 4071 DMM. This habit give you simultaneous action, but can acquire data one after the other, the speed depends on the multiplexer, you choose!

    I hope this helps.

  • How to acquire data from the memory of the meter

    I am a beginner of Labview. I don't know how to acquire data from the memory of the meter.

    I read a few examples of data acquisition, but apparently not similar to my case. I can't use DAQ in my computer, because I don't have DAQ card.

    Could someone give me some pointers? Similar examples would be great.


  • Windows 7 continues to write thousands of jpg files on c:\windows\serviceprofiles\networkservice\appdata\local\microsoft\media player\art cache\localmls subdirectory in the form of system files.

    Let me describe what is happening. I used the 'get info' in iTunes to add various jpg work at the individual level of CD (i.e. selecting song at the same time) multiple.  ITunes displays the work very well and works very well. Over a period of time, I noticed deterioration in system performance and when I tried to create a disc using CMS Bounceback Ultimate image has noticed that the number of files on my hard drive had increased from 250,000 to about 1 000 000. After much research and a bit of luck, I determined that Windows 7 has written these JPGs repeatedly in the subdirectory cache\localmls of c:\windows\serviceprofiles\networkservice\appdata\local\microsoft\media player\art. These are the same files jpg, I added in iTunes. When I discovered, there are about 700,000 of these small files in this subdirectory in the form of system files which are hidden files. I was able to remove these files first reset file attributes (attrib s h - r *.jpg) and using the del command. Unfortunately, the system continues to write the same files in the same sub and a few hours, I have thousands of these files written again. I checked the system for virus/malware using the latest versions of sophos, malwarebytes, and spy hunter. There is no malware reported by one of these programs.  I also stopped Sophos and tried again but the problem persists. I have also rebuilt iTunes library by following the steps described by Apple, but this does not solve the problem. Any suggestions I can try next?

    "Turn off"Windows Media Player Network Sharing Service"seemed, if stop it... for now =)"

    Lack of disk space (windows 7)
    http://forums.techguy.org/Windows-7/920441-missing-hard-drive-space-Windows.html

    Microsoft.public.Multimedia.Windows.MediaPlayer
    http://groups.Google.com/group/Microsoft.public.multimedia.Windows.MediaPlayer/browse_thread/thread/b4593bd2d12cec0f?TVC=2

    http://www.Google.com.au/search?q=c%3A%5Cwindows%5Cserviceprofiles%5Cnetworkservice%5Cappdata%5Clocal%5Cmicrosoft%5Cmedia+player%5Cart+cache%5Clocalmls&SourceID=IE7&RLS=com.Microsoft:-to the: IE-SearchBox & ie = & oe = & redir_esc = & ei = Bt99TMivOM2PcffGtcgJ

    If not, perhaps, you create a batch file to run at startup or schedule tasks to remove *.jpg files that appear in this folder?

    An approximate example of a batch file would be in this sense. It would be created in Notepad but recorded in a .bat file.

    C:
    CD "windows\serviceprofiles\networkservice\appdata\local\microsoft\media player\art cache\localmls".
    DEL *.jpg

    pause

    This is only a rough guide and may need a lot of amendments by you that I'm not familiar with batch files, but it shouldn't be too hard to do.  The batch by operating manually or in scheduled tasks file would need administrative privileges or the localmls access permissions set properly for the user.

  • Export data from the forms to Excel

    Hello

    I am facing a problem with exporting data from a form to excel.

    When I go to the menu - and file-> export. The export starts then progress, then disappears.

    If I do just steps above and hold down the CTRL key... the excel opens.

    I remember there was a setting to recognize that this export goes to Excel. But have forgotten what I did to solve the problem.

    My pop Blocker is turned off.


    If anyone can help out me... that would be greatly appreciated.

    Thank you

    Hello

    In the browser, please add the URL of the application to the trusted sites list and sign the application again.

    Also, be sure that no errors are reported in the log database (no space).

    Export option in menu Apps does not work under Windows-XP OS
    Export option in menu Apps does not work under Windows-XP OS

    Export form data to Excel the FILE using file > EXPORT
    Export form data to Excel the FILE using file > EXPORT

    Kind regards
    Hussein

  • My computer says it can't sync my iphone 6 s more because itunes is not up-to-date.  But my itunes is updated 12.2.2.  Suggestions?

    My computer says it can't sync my iphone 6 s more because itunes is not up-to-date.  But my itunes is updated 12.2.2.  Suggestions?

    You will need iTunes 12.3.2 and your Mac to be OS X 10.8.5 or later version

  • Hello! I just bought an iphone 6 and I was starting the phone due to what he says, but right after the icloud copy was made the phone do not respond... He says decides to continue, but slice to reload button does not work... What can I do?

    Hello! I just bought an iphone 6 and I was starting the phone due to what he says, but right after the icloud copy was made the phone do not respond... He says decides to continue, but slice to reload button does not work... What can I do?

    See if the troubleshooting steps in this article to take help supported:

    If the slide on the upgrade screen does not disappear once you upgrade to iOS 9 - Apple Support

    See you soon,.

    GB

  • labView send data wireless node for the excel file

    Hi all

    I used the basic tutorial for the network of wireless sensors OR. http://www.ni.com/tutorial/8890/en/. I finished it with a single node. The next phase of my project is to send the data from the node and the date and time in an excel file every hour. Is there any advice I can get to at least send the date and the data in the excel file? I'm using labView in 2012

    I change, because I put the text instead of excel file

    You cannot connect a scalar to the entry level that is needed. A solution would be to insert a table to build before the writing on the worksheet.

  • Edge counting and Source of Timing for timed loop on the request for Acquisition of data - not acquiring data on specified rising edge

    Operating system: Windows XP

    Hardware: PCI 6259

    Terminals used: PFI0 and PFI2

    Counters used: Ctr0 and Ctr1

    IM developing an application for the acquisition of data where timed loop synchronization source comes from my PFI2 (using the string A of an encoder).  IM basically trying to acquire data based on the number of ticks from my encoder.  For the synchronization source, I use counter 1 to capture the rising edge and have the loop time-acquisition of data.  At the same time, Im using the counter 0 to count the number of rising edges so I know exactly in what tick data was acquired.  PFI0 and PFI2 are connect to channel A of the encoder.

    Questions:

    Timed loop acquires data at each tick, because when I discover the data (text) file is missing count of my encoder value.  Is it because there is a limitation on the Windows operating system?  I used a noculars to measure the frequency at the maximum rotation of the channel encoder and 6,757 kHz.  All solutions?

    Also, is there anyway I can route the source channel internally an encoder to generate synchronization source instead of using another counter?  I have attached my VI.

    Hello

    All the samples that you acquire will be read by LabVIEW in a sequential manner. Figure 4-21 on the M-series on page 80 (4-34) shows that you will acquire all the samples you request all channels that you enjoy in sequentially.

  • NEITHER 9213 acquire data of the CJC in mode Scan interface

    Hello

    I would like to ask if somehow possible to acquire data of CSF (voltage or temperature) of map sensors NI 9213 uses the cRIO (9076) scan interface mod or I have to develop my app using the FPGA?

    Why do I need data CJC aims that I use thermocouple type L which is not supported by the card and so I need to have the thermocouple voltage and temperature of the CCM in order to calculate the temperature measured.

    Best regards

    Hello

    The only way you can do this develops the FPGA application.

    Why not use a different type of thermocouple?

    Kind regards

    Ion R.

Maybe you are looking for

  • UJ - 831S - firmware update problem

    I am with a problem updating firmware V1.02 for ' DVD-RAM MATA * a UJ - 831S ", according to press [OK] appears the message"THE TARGET DISK no IS NOT PRESENT", as to decide?

  • cRIO exe "before the communication of the Commission" and no LabVIEW

    I have a project with a cRIO VI and an FPGA VI.  The cRIO VI is run with 'communication front' which means that the front is open on the Windows host.  Is it possible to create a stand-alone executable file that I could place it on a laptop that has

  • Issue fixed

    I have a simple test program that is a digital FIR filter. I'm simulate for Rio indeed, as I have similar problems there. as it is, the program in the picture below actually works well. Should null to a sample rate of 1/4 what it does. However, if I

  • Black Berry sync software unable to Synch with Yahoo

    My Black Berry Desktop software Sync used to work perfectly, backup and sync phone Contacts and calendar with Yahoo. Now it errors when it tries to synchronize the calendar with the server connection is lost. The version is up-to-date.

  • Black bar above my page of windows on the internet does not allow close

    When I'm online and try to close the window, a black bar appears under my web search toolbars and page and either takes a long time to close or hangs and will not be closed. I ran my AVG 8.5 free, but I still have the problem. Anyone had this problem