Read data in real time and save as an excel file

Hi,
I want to write a LabVIEW progarmme which able to read data in real time and save it as an excel file from Varian Vacuum muli-gauge.
It is using RS232 port.
Can anyone give me some examples or point me in the right direction?
I am a beginner of LabVIEW. Hope anyone can help me.
Thank you very much!!
Joanne

Thanks for your reply.
I just use MAX to verify that the rs232 port is operational.
However, there is an error (please refer to the attachment).
One possible reason is in MAX I am trying to do the default command *idn? ...but it doesn't work.
I read the vacuum multi-gauge manual but I don't know which command should I use...
I attached the manual and can you tell me which command should I use?
Or can you tell me other possible reason for this error code?
Thank you very much. 
Joan
Attachments:
Varian Multi-Gauge Controller.pdf ‏2747 KB
error1.JPG ‏111 KB

Similar Messages

  • Viewing data in real-time and saving on-demand - USB4000 Spectrometer

    Hey,
    I am trying to create a program with a USB4000 Fiber Optic Spectrometer to allow the user to view the data in real-time on the front-panel, yet to be implemented, and also be able to save the data to an excel datasheet, or if another format if more appropriate. I am reasonably new to LabVIEW and have limited experience with saving data to excel.
    I am currently trying to build upon one of the example VIs given with the drivers. Currently the VI produces data like the following:
    Wavelength (nm)    Spectrum Data
    xyz                               xyz                      
    xyz                               xyz
    xyz                               xyz
    xyz                               xyz
    I want my VI to continue to append to a new column every iteration but I think due to me inputting an array of dimension size 2 it can't but am unsure how to get around this?
    The current VI starts off by creating the Headers and then appending to insert the spectrometer Data.
    Any help would be much appreciated, apologies if I am unclear about anything.
    Attachments:
    USB4000 15-07-14.vi ‏18 KB

    Ok, a couple comments. First, it is easier to build a 2D array by appending rows and then transposing the array before saving it. Also it is much more efficient to preallocate the array if you know how many columns the data is going to have.
    Second, adding a new column or row isn't a problem because an additional column (or row) doesn't effect the number of dimensions.
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • Reading data from Real-time Infocube

    Is it possible to read data from the Real-Time Infocube by using the function module
    RSDRI_INFOPROV_READ

    Hi,
    If records from both the request should be read ie Request under processing(which is in yellow) and Request which is processed(Which is in Green) at a time. What should be done.
    Is there any function module which returns the records of both requests.
    Rgds,
    Ganesha

  • How to continuous data acquisition and save to an excel file using vc++

    Hi,
    I’m trying to build an MFC application with MSVC++6, where I would continuously acquire
    samples from 2 channels of a USB-6289. I’m using the DAQmx C functions.  I use the following codes to continuously get data:
    DAQmxErrChk(DAQmxCreateAIVoltageChan(taskHandle,"Dev1/ai0,Dev1/ai1","",DAQmx_Val_Cfg_Default,-10.0,10.0,DAQmx_Val_Volts,NULL));
    DAQmxErrChk(DAQmxReadAnalogF64(taskHandle,1000,-1,DAQmx_Val_GroupByChannel,data,2000,&read,NULL));
            DAQmxErrChk
    (DAQmxRegisterEveryNSamplesEvent(taskHandle,DAQmx_Val_Acquired_Into_Buffer,1000,0,EveryNCallback,NULL));
            DAQmxErrChk (DAQmxRegisterDoneEvent(taskHandle,0,DoneCallback,NULL));
     static int32 EveryNCallback(TaskHandle taskHandle, int32 everyNsamplesEventType, uInt32 nSamples, void *callbackData)
        int32       error=0;
        char    errBuff[2048]={'\0'};
        static int  totalRead=0;
        int32       read=0;
        float64     data[1000];
        // DAQmx Read Code
        DAQmxErrChk(DAQmxReadAnalogF64(taskHandle,1000,-1,DAQmx_Val_GroupByChannel,data,2000,&read,NULL));
       if( read>0 ) {
        fflush(stdout);
            Error:
        if( DAQmxFailed(error) ) {
            DAQmxGetExtendedErrorInfo(errBuff,2048);
            DAQmxStopTask(taskHandle);
            DAQmxClearTask(taskHandle);
                return 0;
    static int32 CVICALLBACK DoneCallback(TaskHandle taskHandle, int32 status, void *callbackData)
        int32   error=0;
        char    errBuff[2048]={'\0'};
        // Check to see if an error stopped the task.
        DAQmxErrChk (status);
    Error:
        if( DAQmxFailed(error) ) {
            DAQmxGetExtendedErrorInfo(errBuff,2048);
                //MessageBox("errors in DoneCallBack");
            DAQmxClearTask(taskHandle);
            //MessageBox(errBuff);
        return 0;
    I have two questions:
    1. how to save the data into an excel file? Can anyone show me some sample codes please?
    2.Are
    the data acquired from the two channels simultaneously? If I set the
    starting time at 0, sample frequency 1khz, can I directly multiply the
    sample number by 0.001 to calculate time (as shown below)?
    Time    channel1  channel2
    0.001    d11           d21
    0.002    d12           d22
    Thank you! 

    You aren't going to get much help with Visual C++ programing when asking questions in the LabVIEW forum. 
    Try the Measurement Studio for Visual C++ forum.
    Message Edited by Ravens Fan on 12-05-2008 04:24 PM

  • How to read data from analog input and export it to a file using Components Works

    I've made a simple application (Delphi 5 using the activeX) that read data from analog input channel 0. After I read the data, I want to export it to a file using the Components Works on a 6035E NIDAQ. (I'm not using labview and don't want to use it)
    How can I do that???
    Regards,
    Francis

    Here's a sample code to do this...
    P.S.: If you read only one channel this code won't work.
    function MyFunction: Integer;
    var
    Low, High, i, j, ChannelCount, RowCount: Integer;
    Po: P;
    begin
    //you are reading multiple channel
    ChannelCount := VarArrayHighBound(Buffer, 1);
    RowCount := VarArrayHighBound(Buffer, 2);
    for i := 0 to ChannelCount do begin
    for j := 0 to RowCount do begin
    WriteToDisk(Buffer[i, j]));
    end;
    end;
    end;

  • Overlay real time and date for video playback

    I have made a mock CCTV film with Final Cut as an art piece and I want to play it with the current real time and date overlaid. Is there an application that does that?

    there are several TIMECODE reader/titles avail ...
    (best source for free plugins: http://www.fcp.co/forum/9-free-fcpx-plugins-and-templates )
    or, 'camcorder mockups' with a blinking red dot etc ...
    funny thing is: none of these plugins avail yet are able to display the sources 'real' TC, but only the projects TC (which, in my humble opinion, is pretty nonsense) … but. some plugins allow at last a manual off-set of the starting TC.
    or …
    FCPX bulit-in effect 'Night Vision' allows in its settings some 'data blah blah'
    Plan C)
    create your very own CCTVlook/effect in Motion5 ...

  • Oracle Data Integrator - Real Time Integration

    Hi,
    I want to know that, is there any possibility of integrating data in real-time using Oracle Data Integrator?
    If yes, does it affect the OLTP system performance? (Could it read from db logs,etc..)
    Thanks..

    Using ODI with Logminer-based CDC will affect performance on the source system more than using Oracle Goldengate, let me explain why:
    When using the ODI Logminer-based Journalisation the Logminer functionality will move the primary-key of the affected row into the journal table. When you are then ready to move the changed data, running an interface to move the data reads the Journal-view, which joins the journal table (primary keys) to the source data (and dealing with deleted rows), optimising out duplicate rows in order to bring across the then-current state of the data, which can then be loaded into the target system, on completion, the moved rows can be removed from the journal table. The data will appear in the journal table as soon as Logminer puts it there, which may be a lag of up to two minutes using asynchronous setting, whereas Synchronous Logminer applies "system triggers to the table, with the consequent overhead.
    With Oracle Goldengate, the comitted transactions are read from the log as soon as the log-writer puts the commit into the log. All the data is picked up from the log, at that point. It is then written to the trail-file system of Oracle Goldengate which can be propogated to multiple other systems potentially with sub-second latency, and minimal impact on the source system due to the efficient reading and writing mechanisms. One other consequence of using Oracle Goldengate is that you get every change of the data, not the optimised then-current state of the data when moved.
    Hope this explanation helps.

  • How can i control NI-6115 to collect data from 2 channels and save as 2 files?

    I want to program NI-6115 card to collect data from 2 channels and save the two data into two different filenames that i specified?
    How do i write in labview codes?

    Calibur,
    LabVIEW includes a number of examples that demonstrate how to acquire analog input data and write it to disk. Dependent upon the type of file you would like to use, I would suggest that you examine one of the following examples:
    Cont Acq to File (binary).vi
    Cont Acq to File (scaled).vi
    Cont Acq to Spreadsheet File.vi
    With regards to writing each channel's data to a separate file, you will need to use the Index Array function to generate two 1-D arrays, each containing data for one channel. These arrays can then be written to separate files using two Write File functions.
    Good luck with your application.
    Spencer S.

  • We want to read data from weigh bridge and display in oracle forms & store

    Sir/Madam,
    in our organisation we had one requirement. i.e is reading data from weigh bridge using serial port, displying that data in oracle forms and when ever user click save button we store that into my oracle database. we are using oracle 8i and forms 6i and windows OS environment. we don't know reading data from serial port and placing that into form items. please help me as early as possible if there is any property available in d2k regarding this requirement .
    thank you,
    vishnu

    There's no property in Forms that makes you read serial ports, but as far as I know you need to know the API of the machine which you want to read data from (it should come with machine's manual) and then it will be easy to store it in forms item.
    Tony

  • Confirmation date in real time

    Hi, Is it possible to set the confirmation date as real time date meaning, the system should accept prsent date confirmation only, not yesterday confirmation in CO11N screen. Pls advise how to set the same.

    HI,
    If you know the Exit name, go to transaction CMOD.
    Choose menu Utillities->SAP Enhancements. Enter the exit name and press enter.
    You will now come to a screen that shows the function module exits for the exit.
    Using Project management of SAP Enhancements, we want to create a project to enahance trasnaction CO11N
    Go to transaction CMOD
    Create a project called ZCO11N
    Choose the Enhancement assign radio button and press the Change button.
    Please check this links which will help you to know more detail on user exits.
    http://sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    http://sap-img.com/abap/what-is-user-exits.htm
    http://sap-img.com/abap/what-is-the-difference-between-smod-and-cmod.htm
    http://sap-img.com/ab038.htm
    http://help.sap.com/saphelp_46c/helpdata/en/4a/5b75387be80518e10000009b38f889/frameset.htm
    Hope this will help.
    Regards,
    R.Brahmankar

  • Export journalized data in real time

    Hello,
    I must pull journalized data in real time out of Oracle DB source.
    my package has ODIWaiForData operator and interface which triggers only in case of Journalized Data in my source table. Interface loads data to target Oracle table in real time and it works.
    Is it possible to send Journalized Data out of Oracle database in real time? Maybe some insert/update statements within sql file, csv file or through ODIOSCommand operator somehow?
    Regards

    Hi,
    did you already see about Logminer?
    Cezar Santos
    www.odiexperts.com

  • Real-time and Developement System

    I have a very premitive question. what is real-time OS? what are differences between real-time and Developement labview.

    Real-Time in general is not about speed, it's about guaranteeing, that a specific function will be executed within a specified time window.
    Imagine a car with some sort of fieldbus. You want the brakes to be working at any time within a time limit (say, 1ms). That's Real-Time.
    Windows for example uses some sort of scheduler to distribute CPU time to the different threads with a granularity of - i think 1 ms. So each thread gets 1 ms, then it is interrupted and the next thread gets its 1 ms. Of course there are priorities which thread gets a little more time (or more "slots") and which thread gets less. BUT: You cannot tell in Windows, that your application will execute in a specified time window - at any time, it can be interrupted and therefore delayed and theres nothing you can do about it.
    Real Time OS make sure, that - if some specified event happens - it will be executed within a specified time window.

  • I need to host a Shared PDF on SharePoint. If it is on SharePoint can only one person comment at a time? I know documents have to be checked out when using SharePoint. I need multiple users to be able to comment in real time and see comments in real time.

    I need to host a Shared PDF on SharePoint 2010. If it is on SharePoint can only one person comment at a time? I know documents have to be checked out when using SharePoint. I need multiple users to be able to comment in real time and see comments in real time. Is this possible?

    try here:
    http://www.bbb.org
    File a complaint with them. Verizon will call you to fix the blunder.
    But remember it is always up to the customer to insure what they are getting and what it costs. Don't trust the word of a sales person who makes their living on getting that sale. Lies, deceit or false promises will be and have been used by sales people for thousands of years.
    Good Luck

  • The new version of firefox does not shut down when I close the browser it continues running in the background. In addition it opens Adobe Reader for a brief time and then that closes. Everything worked fine before this new version.

    Firefox automatically loaded a new version recently. The new version does not shut down when I close the browser it continues running in the background. In addition it opens Adobe Reader for a brief time and then that closes. Everything worked fine before this new version.

    See "Hang at exit":
    * http://kb.mozillazine.org/Firefox_hangs
    * https://support.mozilla.com/kb/Firefox+hangs

  • Fcp4 Excessive render time and save time

    Excessive render time and save time ...... i mean this can take 2 hours!!! what can be done to fix this? is this normal? what may be the problem? its killing me!! mac g5 duel 1.8 512 meg

    More info.
    Is it a long sequence?
    Is it effects and layer intensive?
    How large is your project file after saving?
    What are you rendering to/
    What are you editing... DV... HD etc.
    Render time can vary greatly depending on these and other issues.
    As for long saves, is only one project open when you are saving?
    When projects get really large they start to take longer and longer to save and become harder to work with.
    rh

Maybe you are looking for

  • How do I put a new icloud account on my device when I forgot the password to my old one?

    Here is the deal, I forgot the icloud password on my device so now I cannot put a new one on my device because the "find my phone" feature requires me to enter the password before I can turn that off, aka delete that account off my phone.

  • "Search Result Types" Error on page view

    When visiting "Search Result Types" under Site Collection Administration on a few of my site collections I get an error. This only happens on some of the site collections and I can't pin down why its occurring. I've tried disabling "SharePoint Server

  • Sending csv files to database

    Hi,any suggestions welcome.I have a page that gets a .CSV file for user names from the local system and sends it a servlet to parse and send to the database.I inetnd to use a servlet to parse the csv files and insert into the database.Is there any ea

  • Http receiver adapter - url parameters

    I have a scenario where I'm calling a client proxy and passing a file name to xi.  I have a receiver http adapter configured to post to a servlet.  I want to pass the file name from payload to my query string variable.  i.e PATH = parser/servlet/pars

  • Question on passive serial sub interface EIGRP

                       Hi Everyone, I know how passive interface default works in EIGRP. I need to confirm below say we have se0/0/0 no ip address se0/0/0.10 ip address 192.168.50.1 x.x.x.x Router eigrp 100 passive interface default no passive interface