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

Similar Messages

  • 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

  • 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.

  • 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

  • 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

  • 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.

  • HOW CAN I ACQUIRE AND DEPLOY DATA IN REAL TIME WITH DAQ 6024E?

    HI ENGINEER,
    I'M PROGRAMING AN APLICATION WHICH I NEED ACUIRING AND DEPLOYING AN ANALOGOUS SIGNAL IN REAL TIME.
    I HAVE:
    LabVIEW 7.0
    WINDOWS 2000
    DAQ CARD 6024E
    THE SIGNAL I WANT TO ACQUIRE IS 0-10 Vcd FROM A SENSOR, THE PROBLEM I HAVE, IS THAT I AM ACQUIERING THE DATA AND IT SEEM THAT THEY ARE UPDATING EACH SECOND, BUT I HAVE BEEN MOVING THE PARAMETERS SUCH AS TASK TIMING IN THE DAQ ASSISTANT VI AND NOTHING HAPPENS.
    CAN YOU TELL ME WHICH PARAMETERS I HAVE TO MOVE TO AQUIRE AND DEPLOY DATA IN REAL TIME

    Hi barron,
    If you want to see the data update quicker, you can decrease the value in the "Samples to Read" field of your DAQ Assistant. This number controls when data is transferred from the DAQ buffer to the PC. If the sampling frequency remains the same, but this field decreases, it means the buffered data will be returned more quickly.
    Hope this helps.
    Thanks,
    Lesley Y.

  • Acquiring data from daq-pad and saving video at the same time

    I am trying to record data from my daq-pad at 100 samples per second. At the same time I am using a usb interfaced camera to record a video feed. The idea is that when i begin recording data i also begin recording the video feed.
    The way I record the video  feed works fine in its own VI (I need it to record at 30fps and it does this just fine). But when I integrate it with the data record/capture VI the framing rate slows down to only 10 fps. I suspect this is because the VI  gets caught capturing the data from the daq-pad thus slowing down its ability to record the video feed. I was hoping you could give me some help with how to record the data at 100 samples per second and get the VI to capture 30 frames per second. Thanks in advance for anyone who helps out.
    I've attached the VI that has both the data capture and the video capture already integrated.
    Attachments:
    usa_swimming with video21.vi ‏892 KB

    Hi,
    I took a look at your code and the problem is that you have both the data acquistion and the image acquistion in the same loop.  Have you tried using parellel loops?  There is more information about this in the labview tutorials that are available online if you are unsure how to do that.  The problem is that you are doing a lot of things in that loop (acquiring data, doing some analysis, and writing to file), so you can't acquire images very fast because it depends on the speed of the loop iteration.  I hope this helps.
    Have a great day,
    GG

  • Obtaining data in real-time from Microstrain wireless orientation sensor 3DM-GX2

    Hello, all.
    I am using
    a wireless inertial sensor 3DM-GX2 with a USB Base Station from
    Microstrain, and I want to read and use data values from it in LabView in real time.
    But the problem is that I am not able to use the LabView examples or
    the SDK provided by Microstrain either.
    Link for SDK is here:
    http://www.microstrain.com/updates/orientation-sdk.zip
    I
    have used the VI called "Read Accel and Ang Rate Serial.vi". I chose
    the correct COM port for my sensor, that is COM3. When I run, I get an error in the node "VISA Read" (code -1073807339). Attached you can see a snapshot of this VI.
    However,
    I don't know if I have to use this VI because my sensor is a wireless
    sensor (USB Base Station linked to 3DM-GX2 inertial sensor) and this
    seems to be a program for reading from a serial sensor.
    You can see in the link: http://forums.ni.com/ni/board/message?board.id=250&thread.id=42319&view=by_date_ascending&page=3; that there is another topic related to this, in which the discussion ended up with the users being able to read from the sensor, but I can't understand what they discussed there about communication protocols. I think I would need basic information so I could fix
    my problem.
    I am using LabView 8.6.
    I hope you can help me. Thanks in advance.
    Regards,
    Francisco
    Attachments:
    Read Accel and Ang Rate Serial.vi Block Diagram.JPG ‏85 KB

    Hi there, I had the same problems with this wireless sensor and the labview Vi's from the microstrain homepage. Please use the newest ones which are available from the microstrain homepage.http://www.microstrain.com/updates/labview-examples.zip  The problem is in the "Read Accel and Ang Rate Wireless.vi". The node adress is missing. The node address are the last two digits of the
    serial number (SN: 4200-1076 - node address=76) and is preset at the factory.
    Here is a picture of the changed program.
     I hope that may help you.
    Kind Regards
    Alex

  • Unable to open real-time application saved file

    Hi all, I've build a specification for my thermocouple target. My modules over here is cFP-2120 controller, cFP-TC-120 & cFP-CB-3. However, I'm not sure whether did I set the correct setting for every page of the real-time application, I can't seem to open the temperature data file from the destination for saving the file. The type of file is Bitmap Image. Thanks. =)

    What does a bitmap image have to do with the datafile?  How are you creating your datafile?  What kind of errors are you getting when you try to open the data file?  What is "every page of the real-time application"?
    Perhaps you can post your VI's and clarify your question some more.

  • High sample rate data acquisition using DAQ and saving data continuously. Also I would like to chunck data into a new file in every 32M

    Hi: 
      I am very new to LabView, so I need some help to come up with an idea that can help me save data continuously in real time. Also I don't want the file to be too big, so I would like to crete a new file in every 32 mega bytes, and clear the previous buffer. Now I have this code can save voltage data to TDMS file, and the sample rate is 2m Hz, so the volume of data increase very fast, and my computer only have 2G ram, so the computer will freeze after 10 seconds I start to collect data. I need some advise from you briliant people.
    Thanks very much I really appreciate that. 
    Solved!
    Go to Solution.
    Attachments:
    hispeedisplayandstorage.vi ‏33 KB

    I am a huge proponent of the Producer/Consumer architecture.  But this is the place I advise against it.  The DAQmx Configure Logging does all of it for you!
    Note: You will want to use a Chart instead of a graph here.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines
    Attachments:
    hispeedisplayandstorage_BD.png ‏36 KB

  • Data guard real time apply vs archived log apply on physical standby

    Dear DBA's,
    last week i configuared DR , now the phyiscal stanby database is archive apply mode,
    i want to confirm is it better to apply the archived log or should i cahnge it to real time apply .
    give me sugesstions.
    Thanks and Regards
    Raja...

    One question are you using ARCH transport to move the redo? or have you configured standby redo logs and logwr transport (either async or syncronous), if you are using the archiver to transport the logs then you can not use real time apply.
    If you are using log writer to transpor the redo the realtime apply reduces the recovery time required if you need to failover as trher should be less redo to apply to bring the standby up to date, which mode you use to transport redo will depend on what is acceptable in terms of data loss and the impact on performance.

  • Best data provisioning tool for very large amount of data updated real time?

    about a few hundred million entries of data a day and it must be replicated to sap hana in real time, what would be the best option?

    Hi Wayne,
    If you are looking for real time replication, then SLT is the best option. What is the source system for this replication?
    Regards,
    Chandu.

Maybe you are looking for

  • FRA in use, backups written directly to a deduplication device

    Oracle 11.1.0.7 An FRA is in use to store archive logs and flashback logs.  RMAN full and incremental backups write directly to EMC's Data Domain, a deduplication storage system, this appliance replicates to a secondary recovery location.  The Data D

  • Why is the iTunes download on XP failing?

    I've tried to download the  iTunes executable file onto my XP numerous times this evening via Firefox. I confirmed that I'm downloading the version for Windows, and I've confirmed that I have Service Pack 2. I direct it to save onto my desktop, but i

  • Hp is saying suspected water damage

    I have a hp dv6, i was working on my PowerPoint at my desk and the computer shuts off with no warning. A power chord will not power it back on. I called hp, they sent a box out, I have a factory warranty on it. I called and talk to someone who says t

  • VAT and CST Report

    *How to view VAT & CST report for india Edited by: deep_srd on Aug 1, 2011 7:46 AM

  • Error in X11 (unable to start device PNG)

    Hello. I have a problem with running embedded R script. First script runs fine: begin sys.rqScriptCreate('Example1', 'function() { ID <- 1:10 res <- data.frame(ID = ID, RES = ID / 100) res}'); end; The second one is not so fine: select * from table(r