Need help in converting DAQ to DAQmx

Hi,
I've struggled with coverting traditional DAQ to DAQmx for two weeks. I really need help from someone.
As you can see the picture below, I've tried to replace the old VI's with new ones. But, it doesn't work. Of course, the VI below is just a part of my VI. VI's after case structure are inside of while loop.
Could you please give me thought that why it doesn't work?
FYI: The strange thing about it is that it runs without any error messege, but there is no actual output (values on the graph, data in arrays, etc).  
Thanks in advance.
Best,
Jay
Solved!
Go to Solution.
Attachments:
Untitled 1.vi ‏74 KB

Hi Jay,
Assuming that the Traditional DAQ and DAQmx code are screenshots from separate VIs, I believe that the following parameter of the read functions in each driver would account for the different behavior that you are seeing (you have both set to -1):
Traditional DAQ:
 DAQmx:
So, when you give DAQmx Read a -1 for "number of samples per channel" when running a Continuous task, the effect is that it will return whatever data is available at the time DAQmx Read is called.  In your case this is immediately after the task is started so there very well could be 0 samples available in the buffer.  I'd imagine that you would see data if you change the value of this parameter from -1 to the actual number of samples that you want to read.
Having said this, if you want to acquire continuously you should call DAQmx Read from inside a loop.  I agree with the others that you should take a look at the DAQmx shipping examples to help get started, you will probably find something very close to what you want to do.  You can find the examples at:
Help >> Find Examples... >> Hardware Input and Output >> DAQmx
Thanks for posting, I hope this helps!
-John
John Passiak

Similar Messages

  • I need help in converting a pdf to a fillable form in my adobe

    I need help in converting a pdf to a fillable form in my adobe

    "Adobe" is a company. If you mean "Adobe Reader" then you can't (at least not easily). You need Adobe Acrobat for that.

  • Need help in converting numbers to Italian text

    Need help in converting numbers to text in Italian language. I want to knw is there any method other than SE63 to translate these text in one shot. I have tried with LSMW also (as the sheet is in XLS format ).Plz reply if anyone is aware of this ..

    hi,
    chk this code.
    CALL FUNCTION 'SPELL_AMOUNT'
    EXPORTING
    amount = amount
    currency = 'EUR'
    filler = ' '
    language = 'E'  => give the language as italian
    IMPORTING
    in_words = amountrs.
    rgds
    anver
    pls mark all hlpful answers

  • Need help in converting date format

    Hi,
    Need help in converting date format from 'DD-MON-YYYY' to 'YYYY-MM-DD' in an .rtf template as I believe xml publisher supports the date format as 'YYYY-MM-DD' only.
    Thanks,
    Raj.

    I got the same problem, anyone know how to solve this problem? I allready found some date functions on http://blogs.oracle.com/xmlpublisher/2008/09/date_functions.html . I also tried <?xdoxslt:month_name(xdoxslt:get_month(xdofx:substr(NEED_BY_DATE, 4,3)), $_XDOLOCALE), 0, 'nl-NL')?>, but then it returns a namespace error (Caused by: oracle.xdo.parser.v2.XPathException: Namespace prefix 'xdofx' used but not declared.). Anyone know how to fix this?
    Edited by: user11165753 on 7-dec-2009 23:50

  • Need help in converting Traditional DAQ subvis to DAQmx configuration

    i need to convert these vis (of traditional NI DAQ) to be used with a new DAQ card that supports only NI DAQmx.
    please help me in this..
    Can i use the same traditional NI DAQ VIs with NI PCI 6221??  if so how can I? does this device can be configured for traditional NI DAQ??? 
    Kudos always welcome for helpful posts
    Solved!
    Go to Solution.
    Attachments:
    traditional ni daq vis to daqmx.jpg ‏1857 KB

    NI has several resources to help move from tradtional DAQ to DAQmx. A good place to begin is the Getting Started page. There is a tutorial on how to transition. There is also the compatability VIs that replace certain traditional DAQ functions with wrappers around DAQmx functions. The DAQ example you posted is pretty trivial and really should not take much time to convert once you get a basic understanding of DAQmx.

  • Need help to convert SQL MSSQL statement to work with PL in ORACLE

    Hi All,
    I have the trigger below and it worked on MSSQL server for windown and
    I really need your help to convert this trigger to work on PL/ORACLE:
    create trigger deleteLD
         on tablea for delete
    as
    set nocount on
    begin
         declare @tablename varchar(100)
         declare @dropSql varchar(50)
         select @tablename= dataset from deleted
         set @tablename = 'LD_' + @tablename
         set @tablename = @tablename + 'UTMSTATS'
         if exists (select * from sysobjects where name = @tablename)
         begin
              set @tablename = 'drop table ' + @tablename
              EXEC (@tablename)
         end
    end
    GO
    Your help is greatly appreciated.
    Thanks,
    JP

    not sure if this is something that you want:
    Create Or Replace Trigger deleteLD
      Before Delete on tablea
    Declare
      vCtr          number := 0;
    Begin
    select count(*)
       into vCtr
       from all_tables
      where table_name = :new.tablename;
    if vCtr > 0 then
       dbms_utility.exec_ddl_statement('drop table '||:new.table_name);
    end if;
    End;note: not tested

  • I need help to convert hours,minutes and seconds to seconds.

    Hi, I need help with the code on how to convert the hours,minutes and seconds to seconds. I don't know which formula to use so that I can get the results in total number of seconds. Thanks.

    Jos ("when in doubt: parenthesize correctly")Bracist.You're more right than you'd known: last week I climbed over a safety
    fence (which I wasn't supposed to do of course) to adjust the position
    of an optical measurement device we installed in a huge production
    machine in a factory. I stepped on some sort of hose; the end of that
    hose broke loose and hit me straight in the middle of my lower jaw. My
    front teeth feel wiggly now and my molars on the left of my lower jaw are
    not what they used to be. This Wednesday I get that all fixed at some
    dental clinic. Keep your fingers crossed because me+dentists == war.
    My tongue continuously keeps on reporting craters and disaster ;-)
    Jos, how's it going? Besides a possible loss of some teeth, I'm fine ;-)
    My Spring/Hibernate journey continues. I'm trying out Hibernate 3.2
    annotations and the Ant tools. So far, so good.Good to hear. At the moment I'm putting my teeth (sic) in that darn snmp
    stuff which simply refuses to work the way I want it and besides that I'm
    heavily involved in some of that SAP stuff. Spring is not in the vicinity for
    me in the next couple of months sadly enough.
    kind regards,
    Jos

  • I need help to convert photos in the .swf format to a format that will open on iOS

    I need help converting photos in the .swf format to a format that will work on my Mac.  Thanks

    SWF is a Flash file that should be able to be opened with your web browser on your Mac. Probably not on iOS though.
    You will likely need to find the source file for the application that created the SWF and the image will be in that. You could then export/extract the image and have it as a stand alone file.
    It does look like there are applications that can do what you are looking for though: https://www.google.com/search?q=SWF+to+JPG

  • I need help to convert a string to date and time

    Good aft,
    1.How can i get a date from the user input thro' Frames?
    2.How to parse it to the date object(I need to include java.util.Date but for the database i need to include java.sql.*,if i do so, i have error as
    found:java.util.Date
    Required:java.sql.Date)
    3.How to insert into the database
    The same i need help to insert time into database?
    I need solution and explanation...
    Reply me immediately...
    If u send me the code, its better to me.

    Hello,
    The best way is to use the HEX to decimal coversion VI in the string pallette. Then, write this decimal directly to your chart. If you are doing it a point at a time put it into a while loop.
    Doug

  • Loader (Need help to convert from AS3 to AS2)

    Since I know this code works fine and that I use it into one of my AS3 flash, I need it in one of my AS2 flash and I don't know how to adapt it. I've searched in over 100 threads and I can't find something similar... Thanks to help me get it to work in AS2! Since I need it in AS2, I thought it would be the right place to post it.
    I posted all the loading process code, but I would need help mostly with the Loader part. How to do it in AS2? Thanks!
    var img = 0;
    var image_total = 0;
    var myImages_array:Array = new Array();
    var myBitmaps_array:Array = new Array();
    function Init();
    // Images urls are loaded into an array before this call
    LoadImage();
    function LoadImage()
        if (img < myImages_array.length) // img is the current image index and myImages_array is my array of URLs
    // I need help with this part please
            var loader:Loader = new Loader();
    // returns the image full path and load it
            loader.load(new URLRequest(my_site_url + myImages_array[img]));
            loader.contentLoaderInfo.addEventListener(Event.COMPLETE, imageLoaded);
        else
            if (count == 0)
    // When everything's loaded, I'll start loading my Bitmaps into a small slideshow
                count += 1;
                init_slideshow();
    function imageLoaded(e:Event):void
        var image:Bitmap = e.target.content;
    // Bitmap manipulation here (removed)
        image_total = myBitmaps_array.push(image);
        if (img < myImages_array.length)
            img += 1;
    // Call next image
            LoadImage();
    function init_slideshow():void
    // Reserts the current index for the first one
        img = 0;
    // Start the slideshow since everything's loaded
        animate_slideshow();

    If you look at the Flash help documentation for the addListener metod of the MovieClipLoader class, there is an erxample there that you should hopefully be able to work from.  It will be better if you get your stuff coded into AS2 before you pursue more help with it.  IT is difficult to tell you how to fix something if you don't show what you are using.

  • Need help for converting c# encryption code to javascript

    I have this below code in c# i need to convert it into nodejs i would really appriciate some help in this.
    Rfc2898DeriveBytes passwordDb2 = new Rfc2898DeriveBytes(passphrase, Encoding.ASCII.GetBytes(DeriveSalt(grains)));
    byte[] nonce = passwordDb2.GetBytes(NonceSize);
    AesManaged symmetricKey = new AesManaged { Mode = CipherMode.ECB, Padding = PaddingMode.None };
    _encryptor = symmetricKey.CreateEncryptor(_nonces[0], null);
    public byte[] Encrypt(byte[] plainText, int blockIndex)
    byte[] nonceEncrypted = new byte[NonceSize];
    byte[] outputData = new byte[_chunkSize];
    _encryptor.TransformBlock(_nonces[blockIndex], 0, NonceSize, nonceEncrypted, 0);
    for (int i = 0; i < _chunkSize; i++)
    outputData[i] = (byte)(plainText[i] ^ nonceEncrypted[i % NonceSize]);
    return outputData;
    public byte[] Decrypt(byte[] encryptedText, int blockIndex)
    byte[] nonceEncrypted = new byte[NonceSize];
    byte[] outputData = new byte[_chunkSize];
    _encryptor.TransformBlock(_nonces[blockIndex], 0, NonceSize, nonceEncrypted, 0);
    int index = 0;
    for (int i = 0; i < _chunkSize; i++, index++)
    if (index == NonceSize)
    index = 0;
    outputData[i] = (byte)(encryptedText[i] ^ nonceEncrypted[index]);
    return outputData;
    Currently i have the below code from what i understood (I am quite new to nodejs)
    var crypto = require("crypto");
    var nonce = crypto.pbkdf2Sync(passphrase, "grains", 1000, NonceSize);
    _encryptor = crypto.createCipheriv('aes-128-ecb', binkey, "");
    _decryptor = crypto.createDecipheriv('aes-128-ecb', binkey, "");
    Encrypt: function (plainText, blockIndex) {
    var nonceEncrypted = [NonceSize];
    var outputData = [_chunkSize];
    var crypted = Buffer.concat([_encryptor.update(plainText), _encryptor.final()]);
    for (var i = 0; i < _chunkSize; i++) {
    outputData[i] =(plainText[i] ^ nonceEncrypted[i % NonceSize]);
    var x = new Buffer(outputData);
    return x;
    Decrypt: function (encryptedText, blockIndex) {
    var nonceEncrypted = [NonceSize];
    var outputData = [_chunkSize];
    var decrypt = Buffer.concat([_decryptor.update(encryptedText), _decryptor.final()]);
    var index = 0;
    for (var i = 0; i < _chunkSize; i++, index++) {
    if (index == NonceSize)
    index = 0;
    outputData[i] = (encryptedText[i] ^ nonceEncrypted[index]);
    var x = new Buffer(outputData);
    return x;

    Maybe, you should post to the Javascript secition of the ASP.NET forum.
    http://forums.asp.net/

  • Need Help opening converted file in Pages

    I have a Mac and use Pages as my word processor.  Pages converts Word documents into its format so that they can be opened, read and edited.  I have never been unable to open/use a document opened this way . . . till now. The downloaded document won't open in Pages.  It says it is an "invalid format."  I hope someone can help me.  The purchase of the Adobe program is no value to me if I can't use it, and I need to be able to use documents in this way.  Thanks in advance.

    You can set up a link to behave as you want, ignoring whatever the user preference is set to, but I don't know if you can configure such a link in InDesign.
    In Acrobat, you can edit the link action (assuming it's a "Go to a page view / Go to a page in another document" type) and select "New Window" in the "Open in" drop down:

  • Need help : Reading from DAQ through TCP/IP ?!!

    Hello
    I have two machines running labview connected to a network. Basically,
    I want to read data from a temperature sensor through a DAQ card
    from one machine, and be able to plot the data in a chart in the
    other machine. I'm trying to use TCP/IP feature to do that but it's not
    working.
    There is a VI in the tcp.lib "simple data client.vi " and
    "simple data server.vi" that does the same thing except that
    the data are of type double generated from a sine function and
    a random number generator. So i tried to do the same but since
    the data read from the DAQ has a thick brown line (not sure what
    type) the task was not easy. In the server part i tried to broadcast
    3 things through (tcp write.vi): The type of the data, the l
    ength of the
    string, and the data itself. On the client side i read (tcp read.vi)
    these things and plot the data. But i'm not getting any output on the chart.
    I had to use (Type Cast), (flatten to string) and (unfatten from string)
    in order to get the right wiring. Both VIs run but there is no output
    on the chart.
    I know it's hard to explain in words, but if anyone is interested i can
    give more detai or send the vis to him to look at them. They seem very simple and
    straight forward but i don't know why they don't work.
    Appreciate any help.
    Thanks
    Sami

    Try running the "Remote Device Access Server" (RDA) on hte machine that has the DAQ card in it. You'll find it in NI-DAQ folder under National Instruments in your Start Menu. (guessing you're running Windows here?)
    With this running, you can start MAX on any machine on the network and access and configure the DAQ cards in the remote machine and program an applicaiton just as if the DAQ cards were local. You'll need to know either the remote machines IP address or network name.
    I've used it quite a bit and have never had a problem. The Help inside MAX gives good details on how to set it up and use it.
    Ed
    Ed Dickens - Certified LabVIEW Architect - DISTek Integration, Inc. - NI Certified Alliance Partner
    Using the Abort button to stop your VI is like using a tree to stop your car. It works, but there may be consequences.

  • Needing help with CONVERT(CHAR(11))

    I need to convert an output(l_line_body_note) to a string and limit the string to a length of 128 characters. I have tried using the Convert to string character and everything i can think of. All help would be greatly appreciated.
    l_line_body_Note := '<Notes>' ||'GIA Notice Event '||pc_log_rec.notice_id||': '|| pc_log_rec.pc_comments || '</Notes>';

    I need to convert an output(l_line_body_note) to a
    string and limit the string to a length of 128
    characters. I have tried using the Convert to string
    character and everything i can think of. All help
    would be greatly appreciated.
    l_line_body_Note := '<Notes>' ||'GIA Notice Event
    '||pc_log_rec.notice_id||': '||
    pc_log_rec.pc_comments || '</Notes>';I believe you are using PL/SQL appending. In jave you can use '+' instead of the '||'.
    String l_line_body_Note = "<Notes>"
    + "GIA Notice Event"
    + pc_log_rec.notice_id + ": "
    + pc_log_rec.pc_comments
    + "</Notes>";If you are actually after a PL/SQL answer then I suggest you don't post in a java forum.
    Ted.

  • I need help in converting PDF to PS and back to PDF

    I am using the ghostScript distiller for PS to PDF file conversions. I need to know if I can make it convert from PDF to PS and back to PDF while optimizing the PDF in the process using the pdfopt.bat. I believe that changes need to be made to idcrefinery.cfg to allow for this conversion (Using an inbound refinery "IBR" to convert certain file types to PDF when checked in through a content server). My need is to be able to optimize PDF files upon checkin to the content server. Any tips, guidance, or ANY help would be greatly appriciated.
    Thank you,
    Roger

    Sounds like a question for GhostScript users, not Acrobat users.

Maybe you are looking for

  • Setting up of Windows backup failing

    I've added a 2TB USB drive (Western Digital MyBook) to a new 2012 Essentials server to allow Server Backup to perform a secondary (non-cloud) backup. The setup routine is failing during (or immediately after) formatting with the message "The system c

  • Problem z Ipad 2

    Od dnia dzisiejszego jestem posiadaczem urządzenia Ipad 2 w wersji Wi - Fi bez opcji 3g. Zakupiłem to urządzenie w sieci sklepów Euro RTV AGD w Dąbrowie Górniczej. Niestety jest to urządzenie wystawowe. Po przyjeździe do domu, i podłączeniu do komput

  • How to update payment method,once generated payment doc through F-58.

    Hi Experts, I want to update payment method,once generated payment doc through F-58. 1)Maintained payment method in XK01 2)Maintained the same in Invoice Number But, i am not able to generate payment method in payment doc through f-58. It can possble

  • Ranges as export parameter in function modules

    hi guys i have to design a function module in such a way that i have to pass a ranges table. watt structure or type should i use? thanks sameer

  • Any one no of interactive genetics ibooks im looking for a good one for the ipad air

    Im looking for a interactive ibook on genetics the ibooks where you can read and watch vidieos and see 3d modls and such lol someone please help me out.                     peace jimmy