Labview example for data capture using 5102 scope card

How can I program a Labview Vi to control, and capture a waveform using the 5102 scope card. I need to be able to set it up to continually capture a waveform (Channel 1 and Channel 2) when triggered on a rising edge of channel 1 and then store the data on disk automatically, then wait for the next trigger.
Any help or tips as to how I could do it would be helpful.
Thanks
Allan

Allan,
Please find the attached zip file that has some useful LabVIEW examples with scope 5102
Zvezdana S.
National Instruments
Attachments:
scope.zip ‏181 KB

Similar Messages

  • Standalone application for data acquisition using NI DAQ card

    I have made a standalone application in labview GUI for data acquisition and signal processing. if i have to run this application in any other computer what all softwares should be installed other than labview runtime engine...NI DEVICE DRIVER CD alone is to be installed or do i have to install any other software for data acquisition using NI daq card??
      thanks and regards
    Solved!
    Go to Solution.

    You should only need the run time engine, The device drivers for the device, maybe need VISA drivers if you are doing serial or something of that nature, You may need the channels or tasks created in NI measurements and automation if you created them there.
    There may be other things that you will need depending on what you include in your code and what tool kits that you have installed.
    Tim
    Johnson Controls
    Holland Michigan

  • Can any one please tell me how to write labview program for data logging in electric motor bike.

    Can any one please tell me how to write labview program for data logging in electric motor bike. I am going to use CompactRIO for getting wide range of data from various sensors in bike. I need to write labview program for data logging of temperature, voltage and speed of the bike. Can any one help me?

    Yes, we can.   
    I think the best place for you to start for this is the NI Developer Zone.  I recommend beginning with these tutorials I found by searching on "data log rio".  There were more than just these few that might be relevant to your project but I'll leave that for you to decide.
    NI Compact RIO Setup and Services ->  http://zone.ni.com/devzone/cda/tut/p/id/11394
    Getting Started with CompactRIO - Logging Data to Disk  ->  http://zone.ni.com/devzone/cda/tut/p/id/11198
    Getting Started with CompactRIO - Performing Basic Control ->  http://zone.ni.com/devzone/cda/tut/p/id/11197
    These will probably give you links to more topics/tutorials/examples that can help you design and implement your target system.
    Jason
    Wire Warrior
    Behold the power of LabVIEW as my army of Roomba minions streaks across the floor!

  • HT5100 How do I sign up for Itunes without using a credit card?

    How do I sign up for Itunes without using a credit card?

    Take a look here:
    http://support.apple.com/kb/HT2534
    Read the steps carefully as the order in which you follow them is  critical. Note that you can do this only when creating a new Apple ID. You cannot use an existing ID. 
    You will of course not be able to get anything other than the free apps,  iTunes U content or podcasts without entering in some sort of payment method (credit card, prepaid iTunes card, gift certificate, etc.)
    Regards.
    Forum Tip: Since you're new here, you've probably not discovered the Search feature available on every Communities page, but next time, it might save you time (and everyone else from having to answer the same question multiple times) if you search a couple of ways for a topic, both in the relevant forums and in the Apple Knowledge Base, before you post a question.

  • BC4J Query by example for dates uses wrong date format

    When querying by example on date fields, I get the following nested exceptions:
    oracle.jbo.SQLStmtException: JBO-27121: SQL error during statement execution.
    JBO-26044: Error while getting estimated row count for view object
    and
    java.sql.SQLException: ORA-01830: date format picture ends before converting entire input string.
    It would seem to be caused by the following clause added to the end of the entity object's query:
    "QRSLT WHERE ( ( (DATE_FIELD = TO_DATE('23/12/2003', 'yyyy-mm-dd')) ) )"
    which causes problems as our entity objects use a 'dd/MM/yyyy' date format.
    Is there a way we can make the query by example use the same date format as the rest of our app?

    I‘m not an expert on this but I see nobody is replying so this might help you. I've been having problems with dates as well and I‘m pretty sure that the attached formatter isn't used in find mode. That is because the java date class (can't remember which one) used by the BC4J has the format yyyy-mm-dd. I don't now if it is possible to change it but I got around the problem by writing my own domain. You can take a look at Toystore demo, by Steve Muench, that uses a custom date domain, ExpirationDate (see the code below). It is mapped to a VARCHAR column in the database but it is possible to map it to a DATE column.
    I have been watching the postings with questions about dates and I have noticed that a lot of people have problems with this but I haven’t seen an answer yet.
    package toystore.model.datatypes.common;
    import java.io.Serializable;
    import java.text.SimpleDateFormat;
    import java.util.Calendar;
    import java.util.Date;
    import oracle.jbo.Transaction;
    import oracle.jbo.domain.DataCreationException;
    import oracle.jbo.domain.DomainInterface;
    import oracle.jbo.domain.DomainOwnerInterface;
    // --- File generated by Oracle Business Components for Java.
    * This custom datatype implements an immutable domain class that
    * maps to a VARCHAR column containing values like '10/2004' representing
    * expiration dates of credit cards. We could have chosen to implement
    * this as a domain that stores itself in a DATE column instead of a
    * VARCHAR column, but since the Java Pet Store demo schema stored the
    * information in a VARCHAR column, we decided to illustrate how to
    * accommodate that case using domains.
    public class ExpirationDate implements DomainInterface, Serializable {
    private Date mDate;
    private String mDateAsString;
    protected ExpirationDate() {
    mDate = new Date();
    convertDateToStringFormat();
    * Return the value of the expiration date as a java.util.Date
    public Date getDateValue() {
    return mDate;
    * Allow expiration date to be constructed from two
    * strings representing month and year
    public ExpirationDate(String monthVal, String yearVal) {
    this(monthVal+'/'+yearVal);
    public ExpirationDate(String val) {
    validate(val);
    convertDateToStringFormat();
    * The getData() method must return the type of object that JDBC will
    * see for storage in the database. Since we want this ExpirationDate
    * datatype to map to a VARCHAR column in the database, we return the
    * string format of the date
    public Object getData() {
    return mDateAsString;
    * <b>Internal:</b> <em>Applications should not use this method.</em>
    public void setContext(DomainOwnerInterface owner, Transaction trans, Object obj) {
    * Performs basic validation on strings that represent expiration dates
    * in the format of MM/YYYY. Note that in the process of testing whether
    * the string represents a valid month and year, we end up setting
    * the private member variable mDate with the date value, so if the
    * validate() method does not throw an exception, the mDate will be setup.
    protected void validate(String val) {
    if (val != null) {
    if (val.length() != 7 ||
    val.charAt(2) != '/' ||
    !isAllDigitsExceptSlashAtPositionTwo(val) ||
    !isValidMonthAndYear(val)) {
    throw new DataCreationException(ErrorMessages.class,
    ErrorMessages.INVALID_EXPRDATE,
    null,null);
    * Returns true if all digits except position 2 (zero-based) are digits
    private boolean isAllDigitsExceptSlashAtPositionTwo(String val) {
    for (int z=0, max = val.length(); z < max; z++) {
    if (z != 2 && !Character.isDigit(val.charAt(z))) {
    return false;
    return true;
    * Returns true if the val string, assumed to be in "MM/YYYY" format
    * is a valid month and year value, setting the mDate member variable
    * if they are valid.
    private boolean isValidMonthAndYear(String val) {
    try {
    int month = Integer.parseInt(val.substring(0,2));
    int year = Integer.parseInt(val.substring(3));
    Calendar c = Calendar.getInstance();
    c.setLenient(false);
    c.set(year,month-1,1); // Month is zero-based !
    mDate = c.getTime();
    catch (IllegalArgumentException i) {
    return false;
    return true;
    public String toString() {
    return mDateAsString;
    * Convert mDate to String format
    private void convertDateToStringFormat() {
    if (mDate != null) {
    SimpleDateFormat sdf = new SimpleDateFormat("MM/yyyy");
    mDateAsString = sdf.format(mDate);
    * Return true if the expiration date is in the future
    public boolean isFutureDate() {
    return mDate.compareTo(new Date())> 0;
    * Compare the Expiration Dates by comparing their respective
    * getData() values
    public boolean equals(Object obj) {
    if (obj instanceof DomainInterface) {
    Object thisData = getData();
    if (thisData != null) {
    return thisData.equals(((DomainInterface)obj).getData());
    return ((DomainInterface)obj).getData() == null;
    return false;

  • ETL for Data warehouse - use view instead of transformations?

    When populating staging tables, is anyone else using this approach of using a view - as opposed to transformations within your ssis dataflow ?  I had not thought of this approach, but I suppose it results in the same goal - to get the wanted schema
    for data flowing into the destination.  I suppose it would be just a matter of using the view as your source - as opposed to the underlying table(s), followed by transformations before the destination?

    Hi sb,
    I would say that it depends.  You want your load to be efficient and your want your load to be simple and easy to enhance later.  Sometimes these goals can be conflicting, so you need to decide what's important for your implementation.
    Regarding efficiency, you will typically be better off with a view as the filtering, lookups etc will be done at source, so less data transferred to your staging area.  For example, the view might only ask for 12 of 25 columns in a source table, so
    you will be bringing over, perhaps, half the amount of data.  Another example, your view might join two tables at source, while another design option would bring over all of the larger table and perform a lookup (on the smaller table) for each record
    of the larger table.  This could be extremely inefficient if each lookup went back to source.
    Regarding easy enhancements, in the first example, if you bring over all 25 columns, you might find it easier to add one of the, as yet, unused 13 columns.  Regarding the second example above, with views, there is a risk that a new view will be created
    for new requirements, resulting in multiple views importing overlapping data.  You really only want to import each datum once, with no duplication.  Note; duplication is unlikely if the views are essentially one view per logical table in the source
    system.
    I've sat on the fence a bit answering this question, but it really does depend, and it is a big question.  What you need to do is understand the ramifications of the design you implement.  Having qualified my response, I very often use views to
    perform simple 1:1 mainipulation of the source data.
    Hope that helps a little,
    Richard

  • Any LabWindows/CVI examples for SPI communication using DAQmx?

    I have a PXIe-6363 module in a PXI running as a real time target, and I'm trying to talk to an accelerometer that communicates with SPI.  I know the 6363 isn't one of the special modules built for SPI, but my understanding is it should be capable; the issue is just the programming.  I've seen examples of this for LabVIEW using DAQmx.  Are there any examples out there for doing it in LabWindows/CVI?
    I'm looking to save time and avoid reinventing the wheel here.  SPI is easy on an Arduino, so it should be doable in LabWindows/CVI, right?  
    Thanks,
    Matt

    Hey Matt,
    I was unable to find any full examples of SPI communication with DAQmx in C. My best suggestion would be to use the LabVIEW examples and implement the same series of function calls to implement the LabVIEW code in C. The DAQmx C API is good about keeping a standard with naming conventions to map with the function names in LabVIEW.

  • Any labview example for resonator parameter measurement?

    Hellow!
    I am doing the measurement of the resonator parameter(like C0,L,C1,R) using network analyzer, are there anybody has some experience about it, are there any example code? thanks a lot!
    Mike 

    Mike,
    Which network analyzer are you using.  You may be able to find some LabVIEW drivers for it at the following link:
    National Instruments Instrument Driver Network
    You may also check the other thread you started and the responses from JL Chew.
    Network Analyzer
    Hope this helps!
    Andy F.
    National Instruments

  • Where can I get LabView examples for PXI-6551 or 6552? Thanks

    We are thinking of buying a 655x and wanted to see sample code to get an idea of its capabilities.
    Does anyone know where I could find LabView examples?
    Any other information related to the PXI-655x would be appreciated too!
    Thanks,
    -KP

    Hi KP,
    Thanks for your interest in the NI 655X. These products use a brand new driver, NI-HSDIO, which is based on DAQmx. We are still working on a more bandwidth-efficient web installer for the driver, but for now I have placed it on our temporary ftp site. You can find it at ftp://ftp.ni.com/incoming/HSDIO.zip
    This driver contains a full set of example programs for both LabVIEW and CVI, and the help files are a great way to learn about the physical capability of the board.
    Do you have any other questions about these products?

  • Labview examples for an "http transponde​r"

    I’m looking for Labview examples (LabView 5.1 or 6i) to make an “http transponder” between an intranet and internet networks.
    I’ve a “system” configured with a TCP-IP address in the local intranet network, it isn’t a PC but its behaviour is like a local “web server” without external access, so it is possible to send it URLs from an every PC (with internet explorer) inside the local network, to get the “system” status.
    I’d like to monitor that “system” in the internet network also, so I need to make an “http transponder” on a PC connected in the local intranet network, but with external access permission.
    So it can be possible to s
    end URLs to the transponder by a PC in the internet network, and the transponder can redirect them to the “system” in the intranet area.
    The “system” can send his status along the inverse route.
    Thank you in advance.
    Natalino.

    Thank you, it would be useful, but I haven't an "Internet Toolkit" at the moment.
    I made some attempts with low level Tcp-ip functions, and I obtained good results by loading static html pages, bad ones by loading dynamic pages.
    I think is an integration problem (timeout, waiting times, etc..), so some "previously tested" examples with Tcp-ip function would be very useful.

  • Connection verification failed for data source using mySQL

    Hi,
    I having problem with mySQL datasource and getting the above error. This is only happening in our staging server. We are using ColdFusion 8 running JRUN4 and trying to connect to mySQL v 5.1.41. I tried adding DSN from my localhost using ColdFusion 9 developer edition and I am able to connect without error.I know that mysql server, username & password is valid. I can access the mysql also using mySQL gui tool from different pc and it works fine. I'm believe that this has something to do with mySQL driver? Can somebody shed some light on how can I fix my DSN connection problem? Thank you.
    here's the error:
    Connection verification failed for data source: forum
    com.mysql.jdbc.CommunicationsException: Communications link failure  due to underlying exception:   ** BEGIN NESTED EXCEPTION **   java.net.ConnectException MESSAGE: Connection timed out: connect  STACKTRACE:  java.net.ConnectException: Connection timed out: connect      at java.net.PlainSocketImpl.socketConnect(Native Method)      at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)      at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)      at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)      at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)      at java.net.Socket.connect(Socket.java:519)      at java.net.Socket.connect(Socket.java:469)      at java.net.Socket.(Socket.java:366)      at java.net.Socket.(Socket.java:208)      at  com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:173)       at com.mysql.jdbc.MysqlIO.(MysqlIO.java:267)      at com.mysql.jdbc.Connection.createNewIO(Connection.java:2739)      at com.mysql.jdbc.Connection.(Connection.java:1553)      at  com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:266)       at  coldfusion.server.j2ee.sql.pool.JDBCPool.createPhysicalConnection(JDBCPool.java:589)       at  coldfusion.server.j2ee.sql.pool.ConnectionRunner$RunnableConnection.run(ConnectionRunner. java:67)       at java.lang.Thread.run(Thread.java:619)   ** END NESTED EXCEPTION **    Last packet sent to the server was 0 ms ago.

    http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=6ef0253
    HTH
    Tim Carley
    www.recfusion.com
    [email protected]

  • Changing Field Label length for Data Element using ABAP code.

    Hi Experts,
    We have a scenario where we have to update the maximum length of the various Field Labels (Short, Medium, Long..) for a Data Element using ABAP code.
    Does anyone know how to do this ? Is there a Function Module available for this purpose ?
    Appreciate your valuable inputs.

    Hi ,
    Use the view
    DD03M
    Give
    TABNAME as table name,
    DDLANGUAGE = EN / sy-langu
    and order by position. (for correct sequencing)
    You will get description of the fields (short,medium, long etc). You will also get the length and other details.

  • Codec options for DV capture using Firewire

    I have a number of DV tapes that I want to capture using Firewire.   Instead of capturing them as DV files, is there any way to have them captured as MPEG-4 files?  I am using CS3 and debating whether to upgrade ti CS5.5  Thanks for any help.

    Short answer: nope.
    Capture as dv-avi then convert.
    Why do you want them as mpeg-4?
    DV-avi is much easier to edit.

  • LabVIEW Example For Younger Crowd.

    Hello,
         I am giving a presentation for a group of younger kids this friday, June 29th and I need a LabVIEW example that I can show them and talk about.  So I need something that younger kids, ages 5-13 can understand.  Its ok if its too boring for the older kids and too confusing for the younger and vise versa.  I can adjust how I talk to compensate.  So far I have a bouncing cube demo, but that is not complex enough to talk about for a length of time.  I would also like the example to relate to engineering as much as possible and is not just a game like Tic Tac Toe. Thank you for your suggestions.
    Michael Boyd

    It is always good to do something where the students can be involved during execution. For example you could fill two parallel tanks with random numbers and take bets which one fills first. (learn about loops, shift registers, comparison (see if it is full), decision, etc.)
    You might also do some real DAQ with the soundcard. Again do a "race" where the two tanks fill according to sound volume. Do a FFT and tie one to the high frequency (girls!) and one to a lower frequency (boys!) and let the class scream their heart out to advance each tank/slider.
    Other soundcard things would be a simple voice scrambler or changer (doesn't work that well without RT). SImply record some sentences, do some digital signal processing, then play it back. See how the sound changes depending on settings (double/half the frequency, low-pass, hi-pass, etc.)
    If you have more time, you could also e.g. test batteries and see what brand is best. See:
    http://forums.ni.com/ni/board/message?board.id=170&message.id=107032#M107032
    LabVIEW Champion . Do more with less code and in less time .

  • How to pay for icloud? I no longer trust apple with my credit card. How can we pay for icloud without using a credit card?

    Having had recently a problem with my credit card with itunes (the only place I ever used that particular card), and several fraudulent charges, I no longer wish to give my credit card information to itunes or any other apple outfit. Can we pay for icloud by cheque, or money order, or some other way, perhaps a bank account where I would leave just enough money to cover the payment. This would be the only I would pay for icloud. Please let me know. thanks.

    See here:
    http://support.apple.com/kb/HT4874
    iTunes Store credit or gift cards cannot be used as a form of payment to upgrade your iCloud storage (payment methods accepted include credit and debit cards).

Maybe you are looking for

  • Transfering pictures from iphone 3GS to pc

    i have a iphone 3GS and i'm going to upgrade to a 4S. when i try to transfer pictures from my camrea roll it stops about half way what can i do to transfer them all? i have 300+ pictures in my camera roll

  • Error: "Not possible to determine shipping data for material" in STO

    Gurus, I have maintained the shipping point determination properly, still I get above error while creating ME21N. What could be the possible reason? Regards Trupti

  • Airtunes 2.0 Update

    With the 2.0 update - Is it possible to stream to both the apple tv and another airtunes (airport express) at the same time. In other words can you stream the same song to multiple rooms at the same time?

  • Volcano 7+ trurn off my computer!

    Hello. I bought Volcano 7+... but when I'm trying to O/C my CPU my computer is turning off. I mean... when I chose for example 1.4Ghz@2Ghz and Vcore 1.8V, when Windows is loading... computer turns off. :-( (no power) I have got high temperatures... a

  • Rwclient.sh command line

    Hello,I've searched a lot of forums to know how can the username and passwords are hided when we invoke reports through rwclient.sh.I am getting a perfect output if I issue a rwclient.sh but I am hardcoding userid parameter while issuing the command.