Digital I/O port of the DAQCard-AO-2DC

I've been trying to write a LabVIEW program to control a t6963c LCD
controller using DAQCard-AO-2DC. I need one 8-bit bidirectional data
port and 6 bits output lines for control signals. Therefore, I set
port A (PA) of the DAQCard as bidirectional data bus, and port B (PB)
as output for control lines.
An example write/read operation of the ports (O,C: write,I: read) is,
PA: O1 O2 I1 O3 O4 I2 ...
PB: C1 C1 C2 C3 C3 C4 ...
The problem is that if I use port_config, port_write, port_read VI's,
there is confliction in PA (Error code -10612, badLineDirError). I
could only read from PA, but could not write. The output of PA is
always 0. I found some statement from
http://www.cvs.rochester.edu/people/b_singer/IOCard/, sayi
ng
"When Other Digital Ports Might Be Reset
Nearly all cards with multiple digital ports use the Intel 8255 chip,
used in PC parallel ports. When you read from a port for the first
time, or after having used it to write, any other port outputs will be
reset. An easy way to avoid this problem is to use a given port for
either reading or writing, but not both, and to do your first read
before your first write."
DAQCard-AO-2DC uses 8255. Does it mean that we cannot use it as a
bidirectional port? How to understand this statement?
My questions are:
1. First of all, is it viable to use DAQCard-Ao-2DC to reach the
target?
2. Can I use port_config/read/write to program?
3. Is there a way to make the output PA and PB change at the same
time? I used dio_read/write. PA, PB changed one after another and the
speed was too slow (one operation takes ~ms).
Thanks.
Dexter

Yes, this is the behavior of the digital lines on the DAQCard-AO-2DC since it does use the Intel 8255 chip. Any time any port is reconfigured, all lines on all ports are reset. There is some information about the the AO-2DC's digital lines on Page 4-5 of the user manual.
http://digital.ni.com/manuals.nsf/webAdvsearch/4F17D424F3411E8B8625665E0065CDB8?OpenDocument
You'll probably find more on the 8255's data sheet. There's one inside the PCI-DIO-24 User Manual. By the way, you can search for manuals online at:
http://www.ni.com/documents/
Each 8255 port can only be configured for either all input or output at any given time. So this is obviously the main problem for you since you have both input lines and output lines on PA.
So, no, I can't t
hink of a great way to get the DAQCard-AO-2DC to work for this application. The PCI-DIO-24/96 cards also use the 8255, but on them you have access to port C where on the AO-2DC you do not. So this probably would work for you.
If you used a 653x device, you could group all your ouput lines into one port. Then you would be able to have all output lines change at the same time.
Hope this helps!
Russell
Applications Engineer
National Intruments
http://www.ni.com/support

Similar Messages

  • How can i measure a voltage with the digital i/o port on my nudrive using labview?

    I am using a 4SX-411 nu drive to control my stepper motor. I need to measure an input voltage at the digital I/O port of the nudrive. How can I program LabVIEW to do that?
    Thanks

    Hello Raven24,
    Thank you for contacting National Instruments. NUDrive 4SX-411 is a value motion drive and you can connect to it using any of the ValueMotion boards. When using a ValueMotion NUDrive with steppers you have I/O ports 1-4 available for general purpose use, I/O ports 5-8 are reserved for axis inhibit output signals. Refer to section 4-7 of the ValueMotion Hardware User Manual linked below, for information about the jumper settings.
    ValueMotion Hardware User Manual:
    http://digital.ni.com/manuals.nsf/websearch/6CF7A54E0BDEA1388625665F0054FFDF?OpenDocument&node=132090_US
    Once you have setup the jumpers appropriately, you can use the VIs found on the ValueMotion I/O & Limits pallet for configuring and using the I/O channels. Search for "I/O" in the attached help file for more information about these VIs. I hope this helps you out. Have a great day!
    Regards,
    Nipun M
    Applications Engineer
    National Instruments

  • How can I connect my Ipad Air to my PC to see the Ipad screen on the PC? I have connected them via the Ipad to a LIGHTNING DIGITAL AV ADAPTER-ZML connected to a APPLE HDMI TO HDMI CABLE (1.8 M)-ZML, and to the HDMI port on the PC. Thanks

    How can I connect my Ipad Air to my PC to see the Ipad screen on the PC?
    I have connected them via the Ipad to a LIGHTNING DIGITAL AV ADAPTER-ZML connected to a APPLE HDMI TO HDMI CABLE (1.8 M)-ZML, and to the HDMI port on the PC. But now I don't know how to show the Ipad screen on the PC, as if it was a monitor / screen, so that I can then use Lync and share my PC screen with people virtually.
    Thanks for any help! Regards

    Hi Rob - thanks so much for your help!  Could you tell me what "air sever or reflector apps." are? and where can I look for information about them?
    Do you use them on the Ipad or on the PC?
    Do I need a cable too and which one?
    Sorry... I am not very technical as you can see, thanks for your help.
    Regards

  • Write to serial port and digital port at the same time

    hello,
    I need to write to the digital port and the serial port at the same time. Right now I have the two vi's (to write to the serial port, write to the digital port) in the sequence structure. First I write the digital port, then write the serial port. Using the oscilloscope, the interval between these two executions is 10 ms; and I need to reduce this interval to as small as possible. I would appreciate help in any way. Thank you.

    Hello;
    This is a little tricky. Since the transition from one sequence to another is completely Software timed, and windows manages all tasks that are running at one given time, there isn't a method to reduce that transition time.
    The most you can do is try to optimize your code so all the time expent on the transition is due only to the task management.
    Hope this helps.
    Filipe A.
    Applications Engineer
    National Instruments

  • HSDIO Dynamic Generation of Digital Signals on Separate Non-sequential Ports Using the PCI-6542

    I am using the PCI-6542 trying to generate serial data timing on separate non-sequential ports 8, 9 and 16 as shown in the attached Digital Waveform Editor JPEG file
    I would like to be able to send binary data to ports (lines) 8, 9 and 16 without disturbing the other 29 ports on the PCI-6542 board. Looking on various HSDIO examples I don't see the capability of being able to send dynamic generation in binary format to a group of ports or being able to mask out non-timing involved ports like you can in static generation. 
    Was anyone successful in implementing this type of serial binary timing waveforms using the PCI-6542 board.
    Please advise.
    Thanks

    Hi Nycor,
    Outputting your data on lines that you specify is indeed possible on HSDIO cards.  You just need to list the channels you want to use in your Channel List when call the niHSDIO Assign Dynamic Channels VI.  For example, for lines 8, 9, and 16, you would input 8,9,16 into the Channel List.  Order in this list matters, so the first waveform in your file will correspond to line 8, second waveform to line 9, etc.  If your waveforms are out of order in your file, then rearrange the Channel List accordingly.
    One of my colleagues here is actually working on an example that implements this; I believe it may be for an open service request that you have.  I will speak with her when she is done and see if there is some example code we can provide that demonstrates this.  If you have further questions, I am happy to help out here, but you will likely get faster response through your open service request via phone and email.
    Regards,
    Chris E.
    Applications Engineer
    National Instruments
    http://www.ni.com/support

  • Why does my nook open iphoto when i plug it in the usb port on the back of my imac running 10.6.8

    I have downloaded Adobe Digital Editions and downloaded Overdrive from the public library. When I plug the Nook eReader in the USB port in the back of the iMac, iPhoto opens immediately. I know this is not a forum for Nook eReaders, but I have to start somewhere and figured since iPhoto is opening automatically, maybe someone can give me a clue.
    thank you,

    Most likely, because your Mac and iPhoto think that you have connected a camera or mass storage device that has images on it.
    Not sure where to go from there, but I would start by looking at the setting in both iPhoto Preferences and Image Capture if I wanted iPhoto to ignore that device.

  • CD player Toslink optical out to optical digital audio in port. Need  help

    Hello,
    I'm taking the Toslink Optical out of my Sony 707esD CD player into the Audio in/optical digital audio in port of my March 2009 iMac.
    In System preferences>Sound>Input>Digital in Optical digital-in port I see a signal occurring on the input level meter but I do not hear audio.
    Output is headphones port and is working fine from other sources.
    I see a signal input does anyone know how to hear the output.
    Thanks.

    You need the free LineIn app from Rogue Amoeba.
    http://www.rogueamoeba.com/freebies/
    Dah•veed

  • Digital audio out port

    I am having a problem, quite opposite to what most of what I've read about Mac audio port issues online, concerning my audio-out port. I'm running an Intel Imac, 7,1, running OS 10.5.8. The specs do specify the audio port on this mac is dual; analog and digital output. Everything I've read to date relates to the red optical light being stuck on coming out of the audio port. My issue is that I CANNOT, and I emphasize that, get the red light to come on and thus use my optical cable (it's working on other equipment) and connect it to my AV receiver. I have never in the past even thought about using an optical cable so it never was an issue. In fact I never knew the port was dual. The external speaker and headphones work fine and the audio panel in the preference pane reflects that; either says 'internal speakers' or 'headphones' automatically when engaging/disengaging audio phone jack. When I put in my toslink (optical) cable, the panel goes to 'headphones' instead of 'optical out' or 'digital out'. There is never a provision to click on digital out on either the sound panel or the midi setup panel. I've tried everything I can click on at both panels. Audio Output in midi setup says 'master stream' (always greyed out) and Source- either 'headphones' or 'internal speakers'. The default and system output drop downs never give me a 'digital' or 'optical' option. Everything works fine except that I cannot get the red light to shine and cannot get digital out at all. Any ideas? Maybe something in terminal or in openfirmware screen? Thanks.

    have you tried other speakers or headphones and what version bootcamp drivers are you using?
    Moses Kravitz wrote:
    Does this port connect directly to appropriate digital speakers?
    If so can someone recommend a decent set of digital speakers that will connect directly.
    Or does the optical digital audio port connect to an amplifier or receiver and them to speakers?
    With the suggestions i have below the set-up is like this:
    Subwoofer - Connects to 2 (Stereo or technically 2.1) or 5 (5.1) speakers
    The subwoofer connects to a control pod (which has the optical inputs, coax inputs, and analog inputs - atleast all 3 are on the z5500)
    Digital/Optical Audio:
    http://en.wikipedia.org/wiki/TOSLINK
    Suggested Speakers; I Personally have 2 pairs of the Z-5500 set, true high quality audio and variety of settings for whatever you use them for, i have been so pleased by them and their warranty service is by far the best ever, anything ever happens to them, theyll send you a replacement set, logitech/apple great customer service, i also posted a few other priced ones if youre not looking for a huge set up:
    The company site & Speakers: http://www.logitech.com/index.cfm/speakersaudio/home_pcspeakers/&cl=us,en
    Compares a few models:
    http://www.amazon.com/gp/comparison/ref=pdcp_ecmp/104-4843690-8241552?ie=UTF8&ASIN.1=B0002WPSBC&ASIN.2=B0002SQ0AE&ASIN.4=B0002 SQ2P2&ASIN.3=B0002SQ0A4&bf=0
    and some others in that same field:
    http://www.amazon.com/gp/explorer/B00007AKDP/2/ref=pdcp_esexpl/104-4843690-8241552
    And you're going to need a TOSLINK cable to go from the audio port to the back of the control pods; found a nice cheap one
    http://amazon.com/s/ref=srkk3/104-4843690-8241552?ie=UTF8&search-alias=aps&field-keywords=toslink%20cable
    hope that helps!!
    Message was edited by: AppleNewton

  • Where can I find a document listing the instructions one can give the DAQCard-6024E card via the drivers?

    Hi
    We have bought the DAQcard-6024E card with it's drivers. (for PCMCIA)
    I need a list of the instructions for setting up and reading the card using C++.
    Where can I find such a list or document?
    Thanks!

    Hi eben,
    I would recommend taking a look at the DAQ Getting Started Guide. This should have all the information you need. The location of the examples are listed on page 11.
    Regards,
    Kent
    Digital Multimeter Home

  • Using the HDMI-In port of the A300

    One of the key features of the Ideacentre A300 [57115581] is the HDMI-In / HDMI-Out ports.
    First I tried the HDMI-Out port; it worked perfectly - both picture and multi-channel digital audio.
    Now I am attempting to use the display in 'TV' mode by selecting the 'HDMI-In' setting on the touch-sensitive display button. PC is not switched On. Connecting an external HDMI DVD player with HDMI cable connected to the HDMI-In port on the A300. But can't get anything on the display; A300 display shows 'No Signal'! 
    What am I doing wrong? How should the HDMI-In port be used?
    Solved!
    Go to Solution.

    Hi FB, hope your problem was automatically resolved when you rebooted the A300? The display should hv come On in PC mode. Else you can gently touch the same right-most feather-touch sensor (button), on the bottom-right edge of the LCD panel, and keep touching it with your finger tip for 2 secs; the display status will appear on the screen and you will see the current mode highlighted. Again v gently tap the sensor to toggle the display mode thru the other settings -> PC / HDMI-in / LCD-off
    PC mode will take you to the regular Windows display; HDMI-in will show you a display if any video source is connected via an HDMI cable to the system's HDMI-in port; and LCD-off will turn-off the LCD panel. HDMI-in can even be viewed without booting-up the system (just keep the input power adapter switched On).
    'No Signal' will flash on the screen when (a) display is in PC mode and the system hasn't booted-up; or (b) display is in HDMI-in mode and no video source is connected thru the HDMI-in port.
    I hope this helps.

  • Can the 12 Ports of the PCI 6508 set independent from each other to I and O?

    Hello,
    can the 12 Ports of the PCI 6508 set independent from each other to I and O?
    Or are they configured in groups like A, B and C ports?
    Thanks,
    BFutzi

    Hello,
    I am upgrading from Traditional DAQ to DAQmx on an old installation with a PXI-6508 board.
    I struggle with this reset problem.
    I read the post from NI "Archived: PCI DIO-96/PXI 6508/PCI 6503 Digital Ports cannot be Controlled Independently".
    This post states:
    "NI-DAQmx is expected to work around this issue by resetting the other ports of the 8255 to the last known state.This means that the other ports may momentarily be reset, but will return to their previously set values."
    Does anyone can confirm that this is true?
    I notice that e.a. port 11 is reset when I write to port 10, but the values of port 11 are not set to the last value I had written to it.
    Herwig.
     

  • For NI-6534 PCI, does the internal clock send one 8-bit word, for one port, at the clock's Hi to Lo transition​, Lo-hi, any at transition at all or neither?

    here is my understanding of how the internal clock works. There is an 8-bit word for a port ready and waiting. Clock goes at transition, that word id read out, a new word comes up next. Clock transitions again, new word goes out. Is this correct?
    Is "clock transition"="update" in manuel, example code language.
    What does 8-bit word get sent out on, Hi to Lo, Lo to Hi, either, neither.
    No handshake, no trigger.
    I am still using "Buffered Pattern Output VI", and am trying to figure out 8-bit word is sent out to the port via the internal clock and how these work together to accomplish this.
    Thanks much for help

    Nate,
    when doing pattern I/O on NI 6534, by default the data is transferred on the falling edge of the internal clock. Therefore, your 8-bit word from the specified (8-bit) port will be transferred at the internal clock's Hi-to-Lo transition. However, you can choose the edge (falling or rising) you want the data transfer to occur at. In labview, you will have to use Digital Mode Config.vi that is called by the DIO Config VI and specify the REQ polarity.
    You can look at page 2-18 of the NI 6534 user manual available at the following link for more info.
    http://www.ni.com/pdf/manuals/321464c.pdf
    -Afreen Siddiqi
    www.ni.com/ask

  • Can a USB Keyboard/Barcode reader be used with the USB port on the CRio

    Is it possible to use a USB Keyboard or Barcode reader with the USB port on the CRio, I know you can use this port with a USB memory device, but what about other devices?
    I have a project that requires that all hardware elements be connected to the controller and use the HMI purely for display,
    anybody any ideas?? 

    Hi kmoyna,
    The standard CompactRIO range's USB host ports are not suitable for standard USB devices like keyboards or barcode readers - they are intended only for use of mass storage devices. From your description, it seems your project's requirements would be best met by the newer models, cRIO-9081 or cRIO-9082. These two units have Windows Embedded Standard 7 (WES7) and allow the direct connection of a monitor and standard USB devices. We now also have similar stand-alone CompactDAQ models running WES7 - cDAQ 9139.
    I would recommend calling into your local branch to discuss your project further with one of our engineers. If you're in the UK, it's 01635 523 545 - or view contact details for other branches.
    Regards,
    Imtiaz Chowdhury
    Head of Digital Technologies
    Brand786

  • Can the 12 Ports of the PCI 6508 set independen​t from each other to I and O?

    Hello,
    can the 12 Ports of the PCI 6508 set independent from each other to I and O?
    Or are they configured in groups like A, B and C ports?
    Thanks,
    BFutzi

    The attached example demonstrates how to write a digital pattern to multiple ports with a single write call, overcoming the 32-line limitation of the DIO Port Write VI.
    Attachments:
    Write_to_Multiple_Ports_(6507-6508).vi ‏49 KB

  • TS1315 when trying to download photos  from my digital cameras I keep getting the message that pics can't be downloaded because of an unrecognizable format. It shows that they are all jpeg files. One camera is a Canon, the other a Panasonic.

    when trying to download photos  from my digital cameras I keep getting the message that pics can't be downloaded because of an "unrecognizable format". It shows that they are all jpeg files. One camera is a Canon, the other a Panasonic. I have had these cameras for a few years and have never had a problem downloading.

    I am having the same problem which has happened very infrequently before. Generally it's one photo and happened when my battery died.
    However today I tried to download six photos.
    None would download including several others for a total of 21 that would not download.
    Since I had just installed a new powered hub and added three new external 4T hard drives, I got concerned that it was the hub. Then got really worried that I'd have problems with the data I have been backing up.
    However following this sequence of events, I've determined it's not the hub, but still don't know what is causing the problem.
    (1) Put a fresh battery in the camera - same results
    (1.5) Used a different port in the new hub - same results
    (2) Put the card in the card slot in the back of my iMac - no problems except that one image I knew about last week. The six new images imported.
    (3) Tried again using the cable - still same error
    (4) Changed cables - my husband has the same camera - still same error
    (4) Put the card in his camera with his cable - still same error
    (5) Put the card in a card reader and used the same slot in the new hub - no problems - same one wouldn't import but message that there are no new photos to import.
    (6) Moved the offending one image to the Trash while the card was in the card reader
    (7) Put the card back into my camera and used my cable. iPhoto had no error and displayed the message there are no new photos.
    Conclusion:
    Not the camera
    Not the cable
    Not the hub
    Must remove bad photo from the card
    However, I have not had to do that before. I went through several imports on vacation when there was one bad image and just ignored it each time.
    Any idea why this is happening now?
    Thank you

Maybe you are looking for

  • Hi all, i want to know that how can i install mac os on my intel based Acer laptop?

    hello all, i have a acer laptop of intel processor, now i want to install Mac Os on that acer laptop, so tell me ,how can it be possible. regards zahid

  • Solaris 10 on Sparc 5 machine - Install isssues

    I have downloaded the Solaris 10 for Sparc ISO's and burned them to CD and now their ready to be installed. I'm assuming disk 1 is bootable. However, when I boot the computer up w/the cd in - I can't seem to get the installation to kick off. Is there

  • Send E-mail of selected databases to selected Mail profiles

    Hi All, I want to send e-mails to selected users from selected databases and hosts in Oracle Enterprise Manager 11g? How do i configure this issue? Regards, Edited by: user5199319 on Jun 21, 2012 6:43 AM

  • IDOC testing

    Hi all,               After pushing IDOC from my R3 system in SM58 it is giving message: NO Service for system X,client 453 in Integration directory. what could be the problem.. Regards Rao

  • BAPI or RFC Required to in ABAP webdynpro

    Hi All, I am new to the ABAP webdynpro. But i have experience in JAVA webdynpro. In JAVA WD , will access the back system functionality using RFC. But if comes to ABAP WD, is it required the RFC or BAPI? If required why it is required? what is the ad