Replace AI read.vi with DAQmx read.vi

Hi,
I'm trying to replace AI read.vi with DAQmx Read.vi. The old VI, "AI read.vi", is returning two data: 'scaled data' and 'binary data'. However, the new DAQmx read.VI has only one output. Can anyone tell me how to get both data in new DAQmx read.vi?
Thank you for your support.
Best,
Jay  
Attachments:
POT9.230.VI ‏252 KB

duplicate thread
Stick to your original!

Similar Messages

  • How can I read pdf with ebook reader on JounE touch

    How can I read pdf with ebook reader and where could I put the pdf in Journe

    Hi there
    You said that you want to read pdf with ebook reader .
    For me ,i usually read the pdf files using another pdf reader which supports to read the pdf files directly.
    And i am now just using their free trial.
    You can also have a try.
    +Message was edited: Advert has been removed+

  • Error 200278 and error 200279 with DAQmx read

    Good day everyone,
    I have been trying to write a code which generates a sine wave and a trigger signal and send them out to two different devices. I am trying to phase lock device-1 on a certain phase angle of the operating signal  (sine wave) of the device-2.
    The device-1 which receives the trigger signal also generates a trigger signal at the same time it receives the trigger. It also can not work with trigger signal with a frequency which is greater than 4 Hz.
    I got that part to work and then I realized that I need to make sure that the responses of the devices have the same phase difference. So I added another part to the code which reads the trigger signal generated from the device-1 and the sine wave generated by the code (which basically goes to the device-2).
    I did not have any loop in the code at the beginning, and I just set the sampling frequency and sample rate and I though that it would work at the rate which I want. Unfortunately it did not. So I added a while loop to control the speed of the writing and reading process, and slow it down to 4Hz which is the limit of device-1.
    I have tried the reading process with finite sample and continuous sample on the sample clock and I got Error 200278 and Error 200279 correspondingly. Attached please see the main VI and subVIs. There are some subVis for writing data to the file which are not attached.
    I really appreciate it if you can help me to solve this problem and get the code to work in a way that the whole process works at 4 Hz frequency.
    I am not sure if my code is completely optimized. Any suggestion to optimize the speed of the code and the way it acquires data is also highly appreciated.
    Regards,
    Pooya
    Attachments:
    Trigger_Seq_R1.vi ‏115 KB
    time.vi ‏23 KB
    wavegen.vi ‏33 KB

    Hello Pooya,
    You need to add some wait delay in your while loop. Try adding a Wait Until Next Millisecond Multiple to your while loop with a constant wired in.
    You are acquiring data too quickly. Here is a link that discusses this in general.
    Regards,
    Jeff L.
    Applications Engineer | National Instruments

  • Error when starting an analog read task with DAQmx 8.5 while 8.0 works

    I am programing a measurement application with Borland C++ Builder 6.
    Problem: Every time when I try to start an analog input task with the DAQmxStartTask() command of DAQmx 8.5 the program execution is interrupted and the error message "Invalid floating point operation" is given out. This problem does not occur with DAQmx 8.0 !

    Hello Johannes,
    the error occurs every time, when I try to start an analog voltage input task either with a simulated or a real device (PXI-4472). Changing any of the measurement parameters did not have any effect. I also tried one of the C-source code examples, which came with the original NI-documentation of the DAQmx 8.5 driver, resulting also in the same error.
    However, starting a counter task with a simulated PXI-6601 device worked without any problems !
    Do you have any ideas ?
    Regards,
    Thomas

  • UNIX 'read' conflicting with Myclass:read()

    Hello!
    I'm cretaing a class FileChannel, qith a method called read. This mehod has the prototype:
    int read(Buffer& buffer, int offset =0);And the implementation is like this:
    int FileChannel::read(Buffer& buf, int offset){
         ssize_t howmanyQ = read( this->fileDescriptor, (buf.data()+offset), (size_t)buf.capacity()-offset);
         return howmanyQ;
    }The compiler throws me this error(GCC 4.1):
    ../FileChannel.cpp: In member function �virtual int raxIO::FileChannel::read(raxIO::Buffer&, int)�:
    ../FileChannel.cpp:29: error: pointer of type �void *� used in arithmetic
    ../FileChannel.cpp:29: error: no matching function for call to �raxIO::FileChannel::read(int&, void*, unsigned int)�
    ../FileChannel.cpp:27: note: candidates are: virtual int raxIO::FileChannel::read(raxIO::Buffer&, int)
    ../FileChannel.hpp:31: note: virtual int raxIO::FileChannel::read(raxIO::Buffer&, int, int)
    ../FileChannel.hpp:32: note: virtual int raxIO::FileChannel::read(void*, int)
    make: *** [FileChannel.o] Error 1
    The include files at the beginning of my .cpp file are:
    #include "FileChannel.hpp"
    #include <sys/types.h>
    #include <sys/uio.h>
    #include <unistd.h>
    How can I solve this? :S Hlp Please
    Edited by: RaulHuertas on Apr 7, 2008 1:34 PM

    You haven't shown all the declarations that would affect whether the code is correct, nor shown which line numbers apply to the portion of source code that you supplied, so I can't provide a detailed answer. But I can make these observations, assuming line 29 is this one ssize_t howmanyQ = read( this->fileDescriptor, (buf.data()+offset), (size_t)buf.capacity()-offset);line 29, �void *� used in arithmetic:
    Apparently you have declared Buffer::data() to return void*, and are trying to add an offset to the return value. That operation is not valid. If p is pointer type, p+1 means adding sizeof(*p) bytes to the address that p points to. Since sizeof(void) has no meaning, the operation is not valid. Probably Buffer::data() should return a type like char* or unsigned char*, but I can't say without seeing the design for class Buffer.
    Note: Some compilers allow using void* in pointer arithmetic as a non-standard extension. Such code violates the C++ language standard, and you should not write code that depends on such an extension.
    line 29, no matching function:
    The call to read in function FIleChannel::read will try to call one of the overloaded "read" functions declared in FileChannel, which is probably not what you intended. Fortunately, none of the FileChannel::read functions has a matching parameter list, so the call failed at compile time instead giving a bizarre result or crashing at run time.
    - If you meant the system call "read", you have to qualify the name to show you mean the one at global scope. If that is the case, write the name as ::read.
    - If you meant some other function, use its fully-qualified name.
    - If you actually meant to call one of the other FileChannel::read functions, you have to supply a set of arguments that matches the parameter list of one of them.

  • Slow loop with DAQmx read

    Hello,
    I am trying to read 8 channels at once using the NI9213 and DAQmx (see image attached). With this setup, the loop takes ~500ms each iteration. What can I do to improve this?
    Thanks,
    JP
    Solved!
    Go to Solution.
    Attachments:
    slowloop.PNG ‏21 KB
    tim.vi ‏20 KB

    You have not coded any timing so it's running at default speeds.  Look at the DAQmx examples like Thermocouple - Continuous Input.vi.  Your module even has a high speed mode you can use for really fast acquisition.  Read the manual.
    BTW, NOT connecting your error wires WILL byte you in the butt eventually.  Always connect them so you can monitor errors while debugging.
    Using LabVIEW: 7.1.1, 8.5.1 & 2013

  • Why do I get a "termination character was read" warning with VISA read and TCPIP?

    I am using VISA Reads with TCPIP raw sockets without issue with NI-VISA 3.0.1 but when I moved to NI-VISA 4.4 I was getting timeout errors.   The timeout errors went away when I set the termination character enable property to true (which seemed to be default in NI-VISA 3.0.1), but now I get a warning stating that the "termination character was read".   
    Can I disable this warning?   Can I set the termination character enable to default?   How can I get rid of this annoying warning?
    Solved!
    Go to Solution.

    Hey Dagwood,
    Unfortunately there isn't a way to globally change the attribute VI_ATTR_TERMCHAR_EN to VI_TRUE.  I spoke with R&D about possible use of the registries and they say it's not accessible through that.  To address why this change was made, the developer who made the switch isn't around anymore so I can't find his reasoning as an explanation for you.  The best this for you to do in your code would be while initializing, use the VISA Property Node to make the change and until that VISA Resource is closed, this change will remain set to the value you assign.  I'm sorry we cannot provide any other solution for this inconvenience.  Also, if you feel this is a large burden on your programming practice you can definitely submit a product suggestion for the ability to change global default values for VISA attributes.
    Thanks,
    David Pratt
    AES - Test Side Products
    NIC

  • Can't read xml with a Reader?

    hi,
    is it correct that the java Reader classes for reading character streams can't be used for reading XML (in one-pass)?
    ie you don't know what encoding to read the file as until you've read the encoding attribute of the top level tag - and by then its too late - you'd have to start again?
    (i think this is how xml parsers must work?)
    thanks,
    asjf

    to be honest this was motivated by wanting a quick method to remove the DTD reference from an inputstream, without having to worry about whichever XML API was in use further down in the code (we've since settled on a particular API so this is no longer an issue)
    I've been told there are 2 legitimate ways to do this (with the help of the parser)
    A) configure the parser (parser-implementation-dependent)
    B) in SAX, provide an EntityResolver
    Last year I had opted for a gratuitous munge-around by manually reading the inputstream and removing the DTD reference
    this year we've started working with chinese documents.. so the code doesn't work since I was using the platform-encoding rather than the xml-declared encoding
    its pretty clear that (B) is the way to go but there are a few other technical hurdles to overcome first..
    i'm beginning to think that /all/ quick-workarounds come back to bite you soon enough..

  • Avoiding IAK file/FP Read debacles with Datasocket reads

    Hi Folks,
    I should first say that this isn't intended as a rant session, more of an open discussion on how to avoid some common IAK file pitfalls and possible alternatives. Currently I'm importing my IAK file and using FP Read / FP Write routines.
    Here's my problem: I have over a dozen cFP-2010 comissioned that are running independantly across a few areas, performing the same operations. For sake of argument let's say they all have identical hardware/software. Each is tied to a dedicated workstation on a peer-peer network.
    Right now I am spending the majority of my debug time messing with the IAK and project. There is nothing within the IAK file that changes-channel 'names' stay the same. However for each new deployment I have to open the last-used IAK, link it to the cFP/download names, save, import into my project, and build. I can't just take a common build and apply it to each, and it's becoming a problem to service as well.
    SO, I'm looking for suggestions on how to move away from this approach. I would like to put all the cFP's on the network, be able to 'browse' for available targets, and chose which to connect to from the workstation. I've found a VI to search for available cFP's on the subnet (via broadcast), but I'm limited to Datasocket reads/writes. I can't imagine creating an IAK file for each... every workstation would need update then if one changed.
    Is anyone else using the Datasocket functions in place of FieldPoint Read/Write for similar reasons? If so what protocol (there are a slew, lookout, psp, fieldpoint) did you use for your reads/writes? How has performance compared?
    Thoughts?
    Jamie
    v2009 devel. w/RT

    1 - Add all the Field point targets to your project. 
    2- At startup of your main vi. Create a case structure and use the IP address (as string) for each rack based on the 1 - Add IP address. Place a cluster of field point IO constants in each case. To Get the Real Time CFP  IP address use the String To IP Function . Leave the string unwired and connect the IP (U32) to the IP To String Function. Wire dot notation as true to  Convert back to a string so you can use the IP address as the case selector. Create a cluster for the fieldpoint IO for the CPU, each slot and any attributes you may need. You can then use unbundle by name and the field point read VIs to read/write to the IO. As your program requires.
    3- Also add the main folder to my computer that has all the files for the project using auto poulate . Under each target add only the VI that will run on the Field Point target. This simplifies file management and will allow you to have only 1 main vi. that is the same for all targets. Any Config. parameters or other differences can be saved as a file on the individual field point CPU drive.

  • Sync adobe reader app with adobe reader on computer

    Can you sync the two?

    Yes. Use iTunes as described here: http://www.adobe.com/devnet-docs/acrobatetk/tools/ReaderiOS/index.html#itunes
    hth.
    Ben

  • Is DAQmx Read limited to 9 digital channels?

    I'm trying to read multiple digital channels with DAQmx Read (Digital 1D Wfm NChan NSamp). The output the DAQmx Read vi is a 1D array of digital waveforms. If I put that output through Array to Cluster the resulting cluster seems to be limited to 9 elements, data[0] through data[8]. Is the DAQmx Read output limited to 9 digital waveforms? I'm using Labview 2009.
    Solved!
    Go to Solution.

    Converting an array to a cluster to use unbundle to break out the elements of the array is a hack.
    You should be using Index Array to get the elements.  You can resize that function so that you can have additional outputs.  You won't even have to wire up any constants for the indices usually.  The top element will be element 0, the next element 1, element 2, and so on down to the bottom of the function.

  • Can't print a pdf file with adobe reader 10.1.12 on a Windows Server 2012 R2 RDS session

    Situation : My users are connected with RDP on a Windows Server 2012 R2 Datacenter Remote Desktop Service and when they log on, their share printers are installed.
    When some users open a pdf file, they can't print it. When they try to print a file, nothing happen... No file sent to the printer...
    I have seen a difference between the shortcut icon of adobe reader for users who have this problem and others.
    No Problem :
    Problem :
    If someone can help me
    Thanks !

    Hi Ajlan,
    To fix my problem, i uninstalled adobe reader X with "Adobe Reader and Adobe Acrobat Cleaner Tool", rebooted the server, installed Adobe Reader XI and rebooted again.
    For some users, this fix the problem but with some others i had to define Adobe Reader by default again.
    I tried without use "Adobe Reader and Adobe Acrobat Cleaner Tool" before and adobe reader X wasn't really uninstall.
    Thanks,
    Regards,
    Sullyly

  • Play sound in specified duration and desired file when reading data with VISA functions ?

    Hi.
    I read data with VISA read function and then I use functions like multiple for showing data on Chart. every thing is OK.
    now I want play a specified sound (like a 3s song in my desired folder) when signal amplitude cross over from specified value. then after desired time, it will be wait for new cross over from specified value and this procedure repeat again until I stop the program. 
    Data comes from MCU and it doesn't stop when system play sound and when system play sound, incoming data for this part (play sound) will be ignore them until specified expired.
    I use this VI for reading data and mentioned part which is sound part is empty and I don't know what I must done ?
    altougth I use another while loop for sound apart because I want save CPU time.
    Thanks.
    Solved!
    Go to Solution.

    I would recommend making the data type of the notifier a cluster that contains a path and a numeric (double).  The path tells the player which file to play.  The numeric is the duration.
    Now for a slightly complicated, but really neat, way to stop your second loop.  Do not use a second notifier.  Instead, send the normal notification but use Not A Path for the path in the cluster.  Your second loop can do a check for the Not A Path and stop when that is recieved.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • How to read three parameters for exemple temperatur​e,current and voltage from the same port with visa read and separate them in a table

    Hi i want to read parameters with visa read, from three sensors related to  pic16f877a, using  module xbee ..but i want to make every one from those parameters (temperature, voltage and current) in a table ..it's the first time i use Labview so i don't know if ther is a solution for my problem so if any one have any idea please help me. thnx in advance. 

    [email protected] wrote:
    Hi i want to read parameters with visa read, from three sensors related to  pic16f877a, using  module xbee ..but i want to make every one from those parameters (temperature, voltage and current) in a table ..it's the first time i use Labview so i don't know if ther is a solution for my problem so if any one have any idea please help me. thnx in advance. 
    The short answer is: "Yes, of course."  But you are going to have to do the legwork and learn LabVIEW basics before we can offer meaningful help.
    Bill
    (Mid-Level minion.)
    My support system ensures that I don't look totally incompetent.
    Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.

  • Error in reading voltage using DAQmx with PXI-6259

    Hi,
    We are trying to acquire analogue voltage from 5 channels using PXI-6259. We trigger the data sampling with clk 0 (i.e. using PFI 12).
    The problem we had is:
    1)When we tried to get voltage from 5 channels, we get 2 data at the same after twice the period. For example, If we set the 
      sampling rate to be of period 1 second, we get 1 signal at 2 second and around (2+t), where t is a random time less than the execution period of the loop.
      Then the next cycles would be 4 second and (4+t).
    2) This timing problem did not occur if we only acquire voltage from 2 or less channels.
    3) We tried to run exactly the same program with NI USB-6210 and everything worked just fine.
    4) We replaced the DAQmx read with DAQ assistant and still encountered the same problem.
    Attached is the a simple program that showed the error. Is this possibly a bug in PXI or DAQmx?
    Please help us
    Arul (CLAD)
    Attachments:
    test rig.vi ‏74 KB

    Good afternoon Nitin,
    Thanks for contacting National Instruments with your issue, we'll try our best to resolve it for you as quickly and efficiently as possible.
    As the error message stated:
    "Analog input virtual channels cannot be created out of order with respect to their physical channel numbers for the type of analog device you are using. For example, a virtual channel using physical channel ai0 must be created before a virtual channel with physical channel ai1."
    If you need to randomly switch which channels you want to either control IEPE excitation or coupling on, a better approach rather than having all of these channels in one task as you've done in your attached VI, is to parse your program down to multiple tasks that can run simultaneously. 
    I have attached a screenshot of this approach, which hopefully is not a compromise to your application.
    Best of luck with your project.
    Sincerely,
    Minh Tran
    Applications Engineering
    National Instruments
    Attachments:
    ParallelTasks.JPG ‏52 KB

Maybe you are looking for

  • PDF Problem in Reports6i

    Hi, I have problem with pdf format in reports6i, i'm usually using pdf in my reports, but i have problem with it. When I print a reports in PDF format it's always shown my old data that i have open previously, this is cause by the cache on Browser. I

  • Video in PDF

    does Pages support an export to PDF files with videos embedded?

  • ITunes Not Working Correctly When Clicking Open

    Okay, im sure that someone has had this problem and posted a topic, but i have dial-up which is amazingly slow and i dont feel like browsing all of the posts. that being said, here is my problem. I recently downloaded itunes 6.4 because i needed quic

  • How to implement a "plugin system" in JSF?

    Hi! I would like to make a system with can be extended using JAR (or WAR?) plugins...I know how to do using Swing but I'm new in JSF and I have a lot of doubts, I'm trying to find something on the net, I know I can force the navigation to go to a spe

  • Trouble Installing Photoshop CS6

    I have not had any success with installing Photoshop CS6 trial. I have probably tried installing it a dozen times. I've spent the last two nights either waiting for tech support or getting poor suggestions from them on how to fix my problem. I have a