NI-DAQmx Base - "Read or Write task without first setting line states"

I am writing an application to interface with the USB-6501 hardware platform. In my application, I am first initializing all the lines on each digital port to be either read or write lines. After these lines have been initialized to the correct state, I would like to write data to a specific port, or read data from that port, without having to again define the line states (i.e. I'd like to write data to the port based on the already configured lines).
Here's how I approach the problem. On initialization, my program will create a DAQmxBase task which will set the lines I specify as "Write" lines for port0, following this is another task which specifically sets the "Read" lines for port0. When I create a task to simply read or write data to a port (without again defining which lines are write and which lines are read) I receive the error "-200428 - Value passed to the Task/Channels In control is invalid.". If I define the read and write lines as a step in the same task which reads or writes data (respectively), the process seems to work ok.
Can anybody offer any insight to whether or not I should be able to accomplish this task using this approach?
Thank you for your help.

Hello DarkCloud. Thank you for contacting National Instruments. If you create a task in the DAQmx Base Configuration Utility and set the direction of the line, you don't need to reset the direction in LabVIEW. There are some examples of how to do this at Start>>All Programs>>National Instruments>>NI-DAQmx Base>>Examples>>LabVIEW 7.1. Open the static example for DIO>>Write Dig Port. Please let me know if you have any questions. Have a great day!
Marni S.
National Instruments

Similar Messages

  • Cannot find Data Neighborhood in NI-DAQmx Base to create a Task

    I cannot find Data Neighborhood in NI-DAQmx Base inorder to create a Task.
    I am trying to follow the "Learning with LabVIEW 8" tutorial book.
    I am using a NI USB-6008, and have downloaded NI-DAQmx Base 3.0.
    The book says to right click on Data Neighborhood and "Create New". I cannot find Data Neighborhood anywhere. The help documents referance Data Neighborhood but I still can not find it. Is Data Neighborhood not in the base version?
     Please Help Thank you

    Hi Lazysmartperson,
    DAQmx base uses a different utility to create tasks.  This is called the NI DAQmx Base Configuration Utility.  It can be found in Windows by going to Start » Programs » National Instruments » NI-DAQmx Base » Utilities » C Interface.  The reason behind this is because NI DAQmx Base is typically used on non windows operating systems such as Linux, Mac OSX, and some RT systems.  Since there is no Measurement and Automation Explorer (MAX) for these operating systems we use a different utility for customers to configure tasks.  If there is no specific reason you cannot use DAQmx, I would highly recommend switching to it.  Our DAQmx driver is fully supported within MAX and should show up as in Matthew's last post.  If you are looking to develop in DAQmx Base so that the applications can be used later on Linux, Mac, or other DAQmx base supported operating systems, I would suggest taking a look at the DAQmx Base Configuration Utility.
    I hope this helps,
    Paul C.

  • Can NI-DAQmx Base read more than one channel at a time?

    I need to read and record two channels off of my Ni USB-6008 using NI-DAQmx Base. Is there a way to do this or is a lost cause?

    Of course it can read multiple channels. In your channel setup, do something like "Dev1/ai0:2". This will read channels 0 through 2.

  • Alert: Logical disk transfer (reads and writes) latency is too high Resolution state

    Hi 
    We are getting following errors for my 2 virtual servers. We are getting this alert continuously. My setup Windows 2008 R2 SP1 2 node Hyper V cluster. Which is hosted 7 guest OS out of am facing this problem with to guest os. Once this alert started
    my backup running slow.  
    Alert: Logical disk transfer (reads and writes) latency  is too high
    Source: E:
    Path: Servername.domain.com
    Last modified by: System
    Last modified time: 4/23/2013 4:15:47 PM Alert description: The threshold for the Logical Disk\Avg. Disk sec/Transfer performance counter has been exceeded.
    Alert view link: "http://server/OperationsManager?DisplayMode=Pivot&AlertID=%7bca891ba3-e9f2-421f-9994-7b4d6e867b33%7d"
    Notification subscription ID generating this message: {F71E01AF-0BE6-8377-7BE5-5CB6F5C037A1}
    Reagrds
    Mahesh

    Hi,
    Please see if following helps
    Disk transfer (reads and writes) latency is too high
    The
    threshold for the Logical Disk\Avg. Disk sec/Transfer performance counter has been exceeded
    If they are of no help, try asking this question in Operations Manager - General forum since alerts are generated by SCOM.
    Regards, Santosh
    I do not represent the organisation I work for, all the opinions expressed here are my own.
    This posting is provided AS IS with no warranties or guarantees and confers no rights.

  • HT201436 How do I get my voicemail messages, without first setting up a password and greeting when it says I have to set up password & greeting & I'm "unable to save greeting"?

    Problems with voicemail

    Contact your cellular carrier. The greeting is stored on their system. Other information: http://support.apple.com/kb/TS4430

  • NI-DAQmx base vi's compatibility

    Hi All
    I have two questions
    1. I am using a PCMCIA card 6024E to perform analogue input on a pda. The specifications state that a sampling frequency of 200kS/s is guaranteed. Is there any way I can measure the sampling frequency programmatically or is there any VI for this already available in thevi library?
    2. I have written a simple program  in Laview 7.1 for analogue input data acquisition using NI-DAQmx base 1.0 vi's (e.g.Ni-daqmx base read, write, etc.) which runs on a pda using the above card. I would like to  run the same program using the same card on a laptop which uses windows 2000 operating system. I believe that the NI-DAQmx base vi's are exclusive for use on pocket PC's and cannot be used with other devices such as a laptop. Is this correct?
    Is there a simple way to make the program compatible , or upgrate it for use on a laptop or maybe to convert the mx base vi's into NI-DAQmx vi's without having to rewrite the program?
    Many Thanks
    Rupa

    Hey Rupa,
    Please dont start different threads for the same question. This will create confusion for the newbies like me. So please hence forth start only one thread for one question.
    I can assure you that you will get the answer for your posting. So please keep this in mind.
    Thanks.
    Regards,
    Sarang Dhananjay Jaiswal
    Satyam Development Center, Banglore, INDIA

  • How do i get my external hard drive permissions changed from read only to read and write?

    Does anyone know how to get an external drive to unlock the permissions from read only to read and write? Without reformatting or buying an app?

    Hey P,
    If you single click on your external drive icon on the desktop and then goto
    'File > Get Info' a window will display the information for that drive. At the
    bottom of the window their should be a check box that either allows you
    to recognise users of not. You probably want to uncheck this box.
    Or... You can keep the user option and just change the permissions
    using the same Get Info window.
    A.

  • Mac OS X 10.9.1 will not read or write my WD external hard drive. How can I permanently make it so that it can without losing files on drive?

    I have a Macbook pro 10.9.1 that will not communicate with my WD external hard drive. Whenever I connect the drive, this pops up:
    NTFS-3G could not mount /dev/disk1s1
    at /Volumes/Elements because the following problem occurred:
    dyld: Library not loaded: /usr/local/lib/libfuse.2.dylib
      Referenced from: /usr/local/bin/ntfs-3g
      Reason: image not found
    I have important photos and videos on here of my family and can't lose them. I tried downloading multiple third party applications like Tuxera and NFTS 3G but they're only trials. How can I permanently set up my mac to read and write without risking to lose all my stuff on the external hard drive. Thanks in advance for any support.

    babowa, it seems like it is using Fuse & NTFS, so I don't think it's the classic WD + 10.9 mess, but extra WD tools & drivers can still break things MtTran.
    MrTran, if you must use unsupported disk formats on your Mac you must also consider actually paying the developers that made the trial software.
    It's probably a good idea to follow the developers removal instructions, reboot & then install one tool at a time.
    MacFuse, FuseOSX, NTFS-3G are all likley to confict if you run older versions so you need to be sure you are using the latest version. I can't remeber which one depends on the other, so you will need to read the manuals.
    When the disk is readable copy the data to another disk. You could probably do this from a Linux distro or Windows if OS X won't do it.
    If you insist on only using the trial versions you will need to reinstall Mac OS, copy data off this disk & reformat it.
    Is there any good reason for not using the Mac HFS extended format?

  • Slow read and write operations on DAQmx

    I am trying to build up a feedback control system using PCI-6052E and PCI-6722 cards, so that the computation of the control algorithm is performed on computer's CPU. I am trying to reach sampling period of 1kHz. It turns out that the bottleneck of my system are the read and write operations from and to cards that consume lot of processor time.
    An example code (C#) that shows how the reads and writes are implemented is as attachment. On my tests the example code produces a read-time of 1000 samples on 6 channels 7.58s and a write-time of 4.69s. Is there any way to improve the performance?
    The program is running on Windows XP on 1000Mhz processor.
    Attachments:
    DAQmxPerformanceTest.cs ‏3 KB

    Petteri,
    I don't have the hardware to reproduce this, but I have a few ideas. For analog output, are you creating a task, starting it, and calling write repeatedly, or are you simply calling write? While an AO Task will auto start on write, it will also go through the process of stopping when the write is complete. Which means next time you call write, the task will need to start again. It will be much more effecient if you explicitly call start on the task once, perform as many writes as required, and stop/clear the task when you are done. This same principle applies to you analog input reads as well.
    I hope this helps,
    Dan

  • ORA-22292: Cannot open a LOB in read-write mode without a transaction

    Hi ,
    somebody can help me, what is that problem.
    I run the script by using the Oracle SQL developer to update the clob column.
    error message is :
    ORA-22292: Cannot open a LOB in read-write mode without a transaction.
    Regards,
    Message was edited by:
    user533045

    Without posting the code its difficult for anyone to figure out whats wrong with this
    error.Please paste the code.
    Khurram

  • Pda daqmx base task information

    Hi!
    I use LV PDA Module 8., Windows Mobile 5 OS on PDA and CF-6004 acquisition card.
    I configure 3 tasks in DAQmx Base Task Configuration Utility, which have different sampling rate and samples per channel property.
    Problem is that I can't get this properties programmical, since PDA Module doesn't support Timing Node, so I have no information what sampling rate is set when I select new Task in my application.
    Thanks,
    andrej

    Hi Andrej,
    Since DAQmx Base does not offer property nodes or the waveform data type, there is currently not a way to programmatically check which sampling rate was used by the 6004.  If you feel strongly that this feature should be included, I encourage you to create a product suggestion and describe your application in detail.  R&D considers these suggestions very seriously when making decisions about future products.  I hope this helps.
    Best Regards,
    Jeff Tipps
    Applications Engineer
    National Instruments

  • How to enable the NTFS Read/Write support without 3rd party software?

    Is there a way to enable the NTFS Read/Write support of Mac OS X 10.6.8?

    Well, I've used Paragon NTFS, but if you don't want to use 3rd party software, you should do this AT YOUR OWN RISK:
    Open Terminal.app (/Applications/Utilities/Terminal)
    Type "diskutil info /Volumes/volume_name" and copy the Volume UUID (bunch of numbers).
    Backup /etc/fstab if you have it, shouldn't be there in a default install.
    Type "sudo nano /etc/fstab".
    Type in "UUID=paste_the_uuid_here none ntfs rw" or "LABEL=volume_name none ntfs rw" (if you don't have UUID for the disk).
    Repeat for other NTFS partitions.
    Save the file (ctrl-x then y) and restart your system.
    After reboot, NTFS partitions should natively have read and write support. This works in both 32 and 64-bit kernels. Support is quite good and fast, it even recognizes file attributes such as hidden files.
    Good luck!

  • USB 6009 and DAQmx Base Concerns

    Hello,
    I just received a USB-6009 multifunction DAQ device along with DAQmx Base for use on Windows XP with LabWindows/CVI ver 7.1.  Both the 6009 and DAQmxBase are successfully installed however I have several questions, I hope I am missing something obvious:
    1. The Task Configuration Utility is not needed for use with LabWindows/CVI?  I believe I read this in the Getting Started Guide.
    2. There is no function panel for the DAQmxBase functions?  I even searched the installation CD and found no .fp files.  So the only way to know what functions are available with DAQmxBase is to open the NIDAQmxBase.h file and search through the function prototypes?  Then, to know what a function does it is necessary to open the C Function Reference Manual via the Windows Start button and search for the function name of interest?
    3. When creating a digital input or output channel with DAQmxBaseCreateDIChan or DOChan is it only possible to setup a "channel" as an entire port?  Is it not possible to setup a channel as a single input or output line?  Similarly, once the channel is configured is it only possible to read or write an entire port with DAQmxBaseReadDigitalU8 or WriteDigitalU8?  I was expecting something similar to the DIG_out_line function used in Traditional NI-DAQ where a board number, port number, line number and state are passed so that a signal output line can be set on or off.
    Thanks in advance for the assistance,
    - Aaron

    Aaron T. wrote:
    Hello,   I just received a USB-6009 multifunction DAQ device along with DAQmx Base for use on Windows XP with LabWindows/CVI ver 7.1.  Both the 6009 and DAQmxBase are successfully installed however I have several questions, I hope I am missing something obvious:   1. The Task Configuration Utility is not needed for use with LabWindows/CVI?  I believe I read this in the Getting Started Guide.  
    **The Task Configuration Utility is not necessary, except that there is significant functionality missing from DAQmx Base but present in the utility. That includes a lot of what DAQmx calls "proerties", and includes things like the convert rate for AI scanning.
    2. There is no function panel for the DAQmxBase functions?  I even searched the installation CD and found no .fp files.  So the only way to know what functions are available with DAQmxBase is to open the NIDAQmxBase.h file and search through the function prototypes?  Then, to know what a function does it is necessary to open the C Function Reference Manual via the Windows Start button and search for the function name of interest?  
    **I don't use CVI so I don't know anything about this. It strikes me that even if you have such a panel reading the documentation is a good idea
    3. When creating a digital input or output channel with DAQmxBaseCreateDIChan or DOChan is it only possible to setup a "channel" as an entire port?  Is it not possible to setup a channel as a single input or output line?  Similarly, once the channel is configured is it only possible to read or write an entire port with DAQmxBaseReadDigitalU8 or WriteDigitalU8?  I was expecting something similar to the DIG_out_line function used in Traditional NI-DAQ where a board number, port number, line number and state are passed so that a signal output line can be set on or off.  
    **Well, the ReadMe file says that USB-6008/9 is supported with both Line I/O and Port I/O. On the other hand, the documentation for DAQmxBaseCreateDOChan and DAQmxBaseCreateDIChan say for the lineGrouping parameter, "Always pass DAQmx_Val_ChanForAllLines." So your question is a good one! Perhaps one of the NI engineers can comment on this.
    - Aaron
    Thanks in advance for the assistance,
    John Weeks
    WaveMetrics, Inc.
    Phone (503) 620-3001
    Fax (503) 620-6754
    www.wavemetrics.com

  • NI DAQmx Base error

    We're trying to use the NI USB 9233 DAQ card with DAQmx Base 3.4 on Windows 7 and we're getting a lot of errors in the process.
    The card seems to be recognized properly, as it shows in the Measurement and Automation Explorer (the one that came with DAQmx Base).
    But when we open the NI Data Logger, it says "Error 200036 at Requested Sample Clock Rate not supported by device".
    We're tried changing the sample rate quite a few times, and to a lot of different values, with the same result.
    Also, in the NI Nase Configuration Utility, we're unable to create a task. The Device simply shows up at "Dev1" i.e. without any name. And when we try to create a task, the "OK" button is greyed out.
    Any ideas what may be going wrong?
    Thank you in advance
    Sarthak

    Wow, I did not know there were two different things... I thought it just meant it was a base error.
    Neil, can you provide all of the code that you have that controls your DAQmx stuff? You're showing a small part of the whole DAQmx process and it's just not enough information to get to the root of the problem.

  • USB-6009 Daqmx Base 3.3 Cannot creat 2 or more channels on Windows mobile 6

    Hello,
    I have USB-6009, PDA iPAQ 214, WM6, Daqmx base 3.3, Labview 2009. In order to create new mobile project I use wizard and standart dynamic example: Cont Acq&Graph Voltage-Int Clk.vi. All works ok, but if I add more chanels in VI "Create Channels" or place new VI block and enter "Dev1/ai1", exe on my PDA cannot work correctly. Exception after RUN. I have no idea how build correct application with 3 channels without this exeption...  On PC all works. Whay right way to create channels? I attach VI which don't work, for examle. I read daqmxbase cannot support WM6, but 1 channel work ideal!
    Attachments:
    diagramm.jpg ‏113 KB

    Vital000,
    I forgot to mention that, yes, Windows Mobile 6 is not supported along side of DAQmx Base. That means you might be able to get some  of the same functionality(limited) that you would with Windows Mobile 5, but most likely not 100% functionality. This could explain why 1 channel works and multiple channels do not. I will try and help you out, but as this is not supported my ability to help is limited.
    Ben Sisney
    FlexRIO V&V Engineer
    National Instruments

Maybe you are looking for