Mode bidirectional with 8255A + PCI 6025E

I've tried to interface the 8255 of PCI6025E in mode 2 with a µcontroler PIC but not successful. Need help to configure and program 8255 in mode 2, Is there any examples or already written programs ( Vi)
Advance thanks for your advises

Hello;
I'm attaching an example that shows how to do that.
Hope this helps.
Filipe A.
Applications Engineer
National Instruments
Attachments:
8255Mode2.zip ‏12 KB

Similar Messages

  • Using PCI-6025E with quadrature encoder.

    Hi,
    i'm presently trying to figure out if i can use the PCI-6025E Card to count up/down with a quadrature encoder with no additionnal hardware. I know my answer lies in a document called "Using Quadrature Encoders with E Series DAQ Boards document " but it is not presently available on the ni website.
    Can any1 either confirm me that i can do this or send me the document?
    Thank you,
    Max

    This link seems to confirm that you can
    Link
    Randall Pursley

  • Using PCI-6025E with CVI2010

    I have been bring older legacy CVI Programs to windows 7 and have gotten a snag with use of a PCI-6025E card.  The compiler project works fine in windows XP but when it has been brought over to win 7 it does not drive the DIO ports.
    I checked the the card functions with NI-MAX with no issues.
    Not sure if it is a driver problem or i have to include a new library in the old source code moving into windows 7.  i have the latest NI-DAQ installed but the original libraries that the source code was compiled with was from 2007.
    Anyone have any ideas?
    Thanks

    Hi,
    Could you please confirm if the DIO lines work using a CVI example? -> C:\Users\Public\Documents\National Instruments\NI-DAQ\Examples\DotNET4.5\Digital
    Regards,
    - Miguel

  • Is PCI-6025E full duplexing ?

    Do E series DAQ boards work in full-duplex mode ? Especially PCI-6025E .

    I believe I may have sent you an e-mail about this. However, I would be glad to post about it here as well.
    Full-duplexing is not a term we commonly associate with our DAQ boards. It is usually used in reference to serial-type communication that can go both ways at the same time (such as a modem). The best answer I can give on this is that the 6025E you asked about has 3 additional DIO ports (PA, PB, PC) which can operate in Bi-Directional Mode. This allows them to function as both inputs and outputs. The 6025E User's Manual is the best place to find more information about this.
    Ross C
    National Instruments

  • Trouble using the counter on PCI 6025E

    Hello,
    I am facing a problem with the counter on PCI 6025E. I am trying to count the number of pulses generated by the shaft encoder mounted on the shaft of a motor. I am using a channel from the shaft encoder to count the pulses and generate the line state. So, I have wired the channel to pins 25[line state]and 47[counter]on SCB-100. In my application I am using the count events/time vi from DAQ palette. Every time I run my application I have been getting the error NI 10001 saying that the ordering of the strings is not as expected.

    Hi,
    The Count Events & Time.vi is typically used with older counter hardware such as the 9513 chip. Your E Series card (6025E) uses a DAQ-STC chip. The best way to count your edges is to open up the example "Count Edges(DAQ-STC).vi which can be found by selecting Help>>Find Examples... and you will find it under the DAQ Counter examples as an DAQ-STC example. Hope that helps.
    Ron

  • Digital Handshaking with two PCI-DIO-32HS Cards

    Hardware: two PCI-DIO-32HS Cards
    Software: LabVIEW 5.1, NI DAQ 6.6
    Problem:
    I'd like to do burst digital handshaking with two PCI-DIO-32HS cards.
    One being used for sending bit stream while the other receive.
    Suppose I want to use burst handshake mode.
    How should I wire the connections?
    Where should I wire the REQ, and ACK line from the sending card?
    Should I wire REQ from card one to REQ of the other card?
    Also, how do I configure labVIEW VI to do burst handshaking mode.
    Can anyone send me a VI that can do this.
    Thanks a lot.

    Matt,
    I would recomend using the DIdoubleBufPatternGen.C examples that ships with NI-DAQ. You can find it in your \NI-DAQ\Examples\VisualC\Di folder. If you don't have this example on your machine, you can get it by running NI-DAQ Setup and selecting support for C/C++.
    This example does double buffering to allow you to continuously acquire data from your card. Data is transfered only when a full 1/2 buffer is ready. You can set how long to acquire data by setting the number of half buffers to read, or by modifying the read loop conditional parameters to fit you needs. See the NI-DAQ help on how to set you REQ pulse rate to 100kS/s.
    Nick W.
    www.ni.com/ask

  • DIO functions in MHDDK E series for PCI 6025E

    Hi, 
    I am currently developing a E series driver for 64 bits platforms. I didn't find, in the MHDDK, DIO functions for cards like PCI 6025E with digital I/O located in more than one port. 
    Can you please help me with that? Are there functions for DIO port selection and configurations in MHDDK E series?
    Thanks.

    Hi KBoussema,
    Unfortunately, addressing the other ports is unsupported in the DDK. If you need more DIO lines, you could consider looking at an M Series or X Series board.
    Steven K.
    National Instruments
    DAQ Software Engineer

  • Poor performance accessing PCI-6025E

    NI Software : Visual C++ version 6.0
    NI Hardware : Multifunction DAQ device PCI-6025E
    Driver Version : 6.9.1
    OS : Windows 2000
    I am having a problem with the speed at which the card is accessed. This only occurs on one computer. Other computers are working fine and the code that we
    wrote is the same for all computers. Interestingly, the Test Panel seems to work fine on the computer that isn't running my software right. Also, my software appears to run fine on the slow computer for about 3-5 seconds before it bogs down. Specifically, a call to AI_VRead goes from basically instantaneous response to taking 300-500 milliseconds. The computer with
    the problem is something like a 3GHz P4.

    Could it be a video (or other) driver issue? IRQ issues can cause hiccups like the one you mentioned.

  • Acquisition using PCI-6025E yields undesired additional voltage offset

    I want to acquire the ouput voltage of an Instrumentation Amplifier using PCI 6025E card and LabVIEW
    But It reads a value which is much higher than the actual value. (ex. 5.23V for 1.20V)
    But I am able to read the voltage with multimeter correctly.
    Kindly suggest a solution.

    Hello-
    Can you please let us know a bit more about how you're configuring your tasks and connecting the signals?
    Are you using a differential connection or grounding one of the pins (i.e. RSE as suggested by TipTop)?
    Also, are you creating the tasks/channels programmatically or in MAX? Also, do you see the same behavior in Test Panels in MAX?
    Any insight into the connections and how you're measuring them would be helpful in troubleshooting the problem.
    Thanks,
    Tom W
    National Instruments

  • How do you do a timed DIG out on a PCI-6025E board?

    Im using a 4 channel DI/O of known frequency and duty cycle, and need a timed output on a PCI-6025E board.

    Hi abradamn,
    I dug around and found a few examples that may help you:
    Continuously Generating Digital Pattern Output
    Which DIO Ports to use on 6025E card
    I'm not quite clear on the wording of your question. Are you asking about having 4 timed channels of digital output, or a single channel of output, with 4 channels of input?
    Also, it might be a good idea to initialize your Digital Ports prior to use. Here is a good document on how to do it.
    Setting Default State of Digital Lines on E Series Boards
    Hope this helps!
    Jeremy L.
    National Instruments
    Jeremy L.
    National Instruments

  • How to do a single channel DAQ using NI-DAQ driver software with a PCI-MIO-16XE-10 card

    Hi,
    I would like to find out how I could do a simple one channel Data Acquisition from a signal generator using the NI-DAQ driver software with a PCI-MIO-16XE-10 card.
    I have written some test problem but even when the signal generator is turned on/off I get back some weird values.
    Here is my code.
    CString sFunctionName("");
    double volt[OUTPUT_POINTS*2];
    double out[OUTPUT_POINTS*2];
    short timebase, ready, code, stopped;
    unsigned short sampleInterval;
    int i, status, count=0;
    unsigned long update, points;
    short* ai_buffer;
    short output_ch_vector[16];
    int local_ITERATIONS = 2;
    SAFEARRAYBOUND bound[1];
    double dataItem = 9.9;
    long j;
    long k;
    double* pTheValues;
    LPTSTR lpsz_ErrMsg;
    // Initialise device
    status = Init_DA_Brds (deviceNumber, deviceNumberCode)
    Initializes the hardware and software states of a National Instruments
    DAQ device to its default state and returns a numeric device code that
    corresponds to the type of device initialized
    Init_DA_Brds(DEVICE, &code);
    // Check return code from Init_DA_Brds
    Code return should be 204: PCI-MIO-16XE-10.
    if (code < 0)
    CString sError;
    sError.Format("Code error: %d", code);
    if (code == -1)
    sError = sError + ": No device found";
    LPTSTR lpsz = new TCHAR[sError.GetLength()+1];
    _tcscpy(lpsz, sError);
    AfxMessageBox(lpsz);
    delete lpsz;
    return S_FALSE;
    // Allocate memory for analog output and input arrays
    //ao_buffer = new short[OUTPUT_POINTS*2];
    ai_buffer = new short[OUTPUT_POINTS];
    // Set double-buffering
    status = DAQ_DB_Config (deviceNumber, DBmode)
    Enables or disables double-buffered DAQ operations.
    status = DAQ_DB_Config(DEVICE, 1);
    if (status < 0 )
    sFunctionName = "DAQ_DB_Config";
    goto TidyUp;
    // Get the rate parameters
    status = DAQ_Rate (rate, units, timebase, sampleInterval)
    Converts a DAQ rate into the timebase and sample-interval
    values needed to produce the rate you want.
    status = DAQ_Rate(RATE, 0, &timebase, &sampleInterval);
    if (status < 0 )
    sFunctionName = "DAQ_Rate";
    goto TidyUp;
    // Setup scan
    status = SCAN_Setup (deviceNumber, numChans, chanVector, gainVector)
    Initializes circuitry for a scanned data acquisition operation.
    Initialization includes storing a table of the channel sequence
    and gain setting for each channel to be digitized
    status = SCAN_Setup(DEVICE, 1, ai_channels, gain);
    if (status < 0 )
    sFunctionName = "SCAN_Setup";
    goto TidyUp;
    status = SCAN_Start (deviceNumber, buffer, count, sampTimebase,
    sampInterval, scanTimebase, scanInterval)
    Initiates a multiple-channel scanned data acquisition operation,
    with or without interval scanning, and stores its input in an array
    status = SCAN_Start(DEVICE, ai_buffer, OUTPUT_POINTS, timebase, sampleInterval, timebase, 1000);
    if (status < 0 )
    sFunctionName = "SCAN_Start";
    goto TidyUp;
    while(count < local_ITERATIONS)
    // Check whether we are ready to input another half-buffer
    status = DAQ_DB_HalfReady(DEVICE, &ready, &stopped);
    if (status < 0 )
    sFunctionName = "DAQ_DB_HalfReady";
    goto TidyUp;
    if (ready == 1)
    status = DAQ_DB_Transfer(DEVICE, ai_buffer, &points, &stopped);
    if (status < 0 )
    sFunctionName = "DAQ_DB_Transfer";
    goto TidyUp;
    count++;
    // Clear the analog input
    status = DAQ_Clear (deviceNumber)
    Cancels the current DAQ operation
    (both single-channel and multiple-channel scanned) and reinitializes the DAQ circuitry.
    status = DAQ_Clear(DEVICE);
    if (status < 0 )
    sFunctionName = "DAQ_Clear";
    goto TidyUp;
    status = SCAN_Demux (buffer, count, numChans, numMuxBrds)
    Rearranges, or demultiplexes, data acquired by a SCAN operation
    into row-major order, that is, each row of the array holding the
    data corresponds to a scanned channel
    status = SCAN_Demux(ai_buffer, OUTPUT_POINTS * 2, 2, 0);
    if (status < 0 )
    sFunctionName = "SCAN_Demux";
    goto TidyUp;
    //Convert binary values to voltages (Doesn't actually take a reading from board)
    status = DAQ_VScale (deviceNumber, chan, gain, gainAdjust, offset, count, binArray, voltArray)
    Converts the values of an array of acquired binary data and the gain setting for that data
    to actual input voltages measured.
    status = DAQ_VScale (1, 0, 1, 1.0, 0.0, OUTPUT_POINTS , ai_buffer, volt);
    if (status < 0 )
    sFunctionName = "DAQ_VScale";
    goto TidyUp;

    Hello,
    Please take a look at lots of examples available at :
    1. www.ni.com >> NI Developer Zone >> Development Library >> Measurement Hardware
    2. C:\program files\national instruments\ni-daq\examples\visualc
    Sincerely,
    Sastry V.
    Applications Engineer
    National Instruments

  • Can I generate sine and square waves with NI PCI-MIO-16XE-50 card??

    Can I generate sine and square waves with NI PCI-MIO-16XE-50 card??
    How Do I generate those signals?

    Hello;
    You certainly can do that. The way to go about that is to use one of the Analog Output channels your board have available.
    If you are using Labview to program the board, you can find good examples at Search Examples->I/O Interfaces->Data Acquisition->Analog Output->Multiple Point (buffered) Analog Output.
    If you are using other Software language to program the board, you can fing examples at C:\Program Files\National Instruments\NI-DAQ\example\VisualC\AO.
    Hope this helps.
    Filipe

  • Start okular in presentation mode only with calibre

    Hello all!
    Can someone help me to make Okular to start in presentation mode only with Calibre (ebook management), not for all pdf files?
    Thank you!
    Last edited by mits (2012-04-11 16:32:12)

    Run kdmconfig, if you are using xsun, switch to xorg.
    Configure xorg with:
    /usr/X11/bin/xorgconfig
    Far not all display adapters are supported, make sure that you are using one of the list from xorgconfig.

  • I've lost my iPhone5 like 40 hours ago. I already turned the Lost mode on with Find my iphone app. But my phone has no data plan so it could not connect to the internet at all. I reported to the police, too. What else can I do? Can anybody advise?

    I've lost my iPhone5 like 40 hours ago. I already turned the Lost mode on with Find my iphone app. But my phone has no data plan so it could not connect to the internet at all. I reported to the police, too. What else can I do? Can anybody advise?

    No...see the link I posted:
    If you did not enable Find My iPhone on your missing device
    If you did not enable Find My iPhone before it was lost or stolen, you can't use it to locate or protect your device, but you can still follow these steps:
    Change your iCloud password to ensure that no one else can use your device to delete or make changes to your iCloud data.
    Report your lost or stolen device to local law enforcement and your wireless carrier. Apple doesn't track or flag lost or stolen products, but you can use My Support Profile (supportprofile.apple.com) to find a list of serial numbers for products that you've purchased or registered with your Apple ID.

  • Camera File Generator Won't Run with MAX + PCIe-1433

    Hi,
    I am a camera developer and am trying to integrate a couple of new cameralink cameras with the PCIe-1433 NI frame grabber.  I have installed NI MAX 14.0 and version 3.0.0 of the Camera File Generator.
    I am trying to build a new Camera File for our companies cameras.
    The NI MAX shows the NI PCIe-1433 device when it launches.
    When I try to launch the Camera File Generator, it failis to load with the following message:
    "You must have NI-IMAQ 4.6.0 or higher installed before running the NI Camera File Generator.  NI-IMAQ 4.6.0 is installed with Vision Acquisition Software 2011."
    The MAX configuration tree shows I have version 14.0 of the NI-IMAQ software available.
    Is there any sort of developer's guide for creating a camera file to allow me to use my camera?  I need to write some serial commands to the unit and thought tha tthe Camera File Generator would support this.... 
    Thanks.
    -Mike

    Hi mawillia,
    The latest version of the IMAQ drivers is version 4.9, and it would show up where you said, under the Software tab in NI MAX.  Do you have this latest version installed?  If you like, feel free to expand out your software tab and take a picture of it and post it here.
    Also, you are correct that the serial commands can be set in the camera file.  Here is a link to our support page for the Camera File Generator: http://sine.ni.com/psp/app/doc/p/id/psp-723/lang/en
    Within it is a whole host of various KnowledgeBase articles.  This one seems particularly helpful:
    What framegrabber specifications do I need to know to create my camera file?:  http://digital.ni.com/public.nsf/allkb/9B89C9FA43A6973A86257A62004658D5
    Unfortunately, I couldn't find any articles specific to coding the serial commands for your camera in the camera file.  But I recommend opening up one of the bundled camera files (I'm looking at the Basler acA2000-340kc (Base).icd ) and within that, click the Camera Control tab.  The serial commands for each attribute will show up on the right side, and you can use this as an example for creating yours.
    Let me know if you have any further questions!
    Julian R.
    Applications Engineer
    National Instruments

Maybe you are looking for