PCI 7330 Read Digital Input

I have a 4 Motion Axis PCI 7330 card, and I am operating 2 motion axes with it. This system is operating a drill system that will send back a signal once the drill has reached it's full drill length (completed the hole). I have tried to use the "Read Digital I/O Data" VI for this but I can't seem to read in a signal. IS THERE AN EASY WAY TO DO THIS?
For this VI the voltage to the port will be zero until the drill sends back the voltage signal that it has completed the drill. So all that it needs to do is read that there is a voltage (so anything other than 0) across this line.
Thanks

Hello,
The Read Digital I/O data VI should be an easy way to do this, but something may be going wrong in the code. Can you post/explain what you have done so far? You also may want to try posting in the Motion Control forum. There may be more people there that have done what you are trying to do, so you might get more responses.
-Erik S
Applications Engineer
National Instruments

Similar Messages

  • Is LabView able to read digital inputs from maxon motors controller, EPOS2?

    Hello,
    I would like to ask that if LabView is able to read any digital inputs directly from a maxon motor controller, EPOS2. As i have tried making a new VI from the maxon example VI, but the difference is that i've added a input control. But the program doesn't seems to work.
    That's why i would like to ask if LabView can read a direct digital input from the maxon motor controller.
    Thank You & Regards,
    ParkyPak
    Attachments:
    sensor.vi ‏34 KB

    Hello Parky,
    I understand now. I check on the motion controller and it is connected through USB to your computer. In term of controlling the motion controller, you are using some LabVIEW library from maxon. The photosensor is connected to the motion controller may be as a switch or as a limit switch.
    In order to read the value of the Digital input port, you may need to take a look of the libraries to check on what function call and the supported command to check the digital input port. If this is not successful, then question or referring to examples from Maxon motors would be the best.
    I hope that this helps.
    James
    - Meadow -
    LabVIEW 7.0 - 2011, Vision, RT, FPGA
    TestStand 3.0 - 4.5

  • Read digital input

    To read the data sent via a 'printf' use VISA Read, Did I want to know that I could use in LabView function to see if a digital input is active on a microcontroller?
            Thank you

    Hello, since this question is LabVIEW-related it should better be posted in the appropriate board.
    In any case, LabVIEW has a complete set of functions to operate on the RS232 channel and is equippend with all fucntions that are normally used to decode messages coming from external device. Nevertheless, keep in mind that when speaking about two independent device, the interaction between them depends on how both behave. That is, if the microcontrolles sends informations about its I/O then yes, LabVIEW is capable of reading these informations. In order to have some more concrete help you will need to supply some more informations about the messages your device sends on the serial cable.
    Proud to use LW/CVI from 3.1 on.
    My contributions to the Developer Zone Community
    If I have helped you, why not giving me a kudos?

  • Creating VI for MCB2300 to read digital input

    Hello,
    I am a student working on a project to use embedded Labview (2009) on a MCB2300 (LPC2378) to do multiple tasks. I have some experience in Labview, but I am a fast learner. I was able to get the board to produce an LCD response to the potentiometer, using my PC's computer as the controller.
    I eventually want the microcontroller running an embedded VI to read signals in and produce outputs.  I was able to create a new target for the LPC2378 and view all the elemental I/O's that go with the chip.
    Right now I am stuck on calling the Microcontroller's I/O's in Labview. For right now, I want to apply a test voltage with an external PS to one of my input pins on the microcontroller and have it respond by producing some message on the LCD (or spitting out a signal on some other output pin). I have the chip grounded properly.
    I don't need help on the LCD callout so much as I need help on getting the microchip's I/O's working. There are so many sub VI's provided by Kiel that I don't really know where to begin.
    If anybody can steer me in the right direction or even show me an example VI that uses the microcontroller's pins, I am sure I could pick it up and go from there.
    Let me know if you need any additional information. Thanks for your time.
    Mark

    Hi Mark,
    Many of these examples can be accessed via the NI Example Finder. To open the Example Finder, go to Help»Find Examples.... When the Example Finder loads, browse to Toolkits and Modules»ARM»Keil. There are a few folders in that directory that have some great examples that can get you on your way.
    Aaron P
    National Instruments
    Applications Engineer
    http://www.ni.com/support

  • Can you perform simultaneous timed digital input and output using a PCI-6120?

    Is it possible to do simultaneous timed digital input and output using a PCI-6120? It seems that timed digital operations require using the group read/write commands, which utilize an entire port. Since the PCI-6120 has only 1 digital I/O port, I would like to be able to use 2 lines as outputs and 1 line as input, and do both in a deterministic fashion. i.e. create a digital signal with known pulse widths and read an input line at a known time after the outputs were set. Is this possible to do with only one digital I/O port?

    Hello,
    This can be done in LabVIEW. There is actually an example that installs with NI-DAQ.
    Below is a link to a Knowledge Base that explains how to find the correlated digital I/O examples.
    http://digital.ni.com/public.nsf/websearch/B849664604EB34B886256D12005B5520?OpenDocument
    Just take a look at the example titled �Continuous CDIO with external clock (E).vi�
    Best regards,
    Justin Tipton
    National Instruments

  • Reading a PWM and determining pulse width using a digital input pin on a NI 9425 DAQ

    Hello!
    I have been experimenting with LabVIEW for about a week now and have run into a brick wall.  I have found a fairly effective way of reading a PWM signal through an analog input and determining the pulse width.  However, it is becoming necessary for this project to do this same thing using a digital input.  I've been playing with this for about a day now and am not making much headway.
    For reference, I will be using a 9524 device
    Any ideas?

    Also, if it is helpful at all, I've attached two vi's.  One, functions just as I need it to - but it doesn't involve data aquisition.  The second should be similar to the first, but is non functional - I keep getting an error that my amplitude is zero.
    Any thoughts?
    Attachments:
    DigitalEdgeDetectionKnown.vi ‏47 KB
    DigitalEdgeDetectionRead.vi ‏148 KB

  • How to read out a RPM signal in labview using UMI 7764 and PCI 7330

    Hi
    I have a problem getting a encoder signal into a labview program. The encoder is connected to a UMI 7764 motion device. This device is connected to a PC trough a PCI 7330. I heard rumors that I can't have more than two axis on a PCI 7330. But can I have more than 2 encoders on it?
    The big problem is that I am new to the motion system and I don't know where to begin.
    I'm going to finish a uncompleted system, but when I look at the VI, I get nervous. So you are my last hope.
    I have taken screen captures of the VI and uploaded it.
    My task is to implement a new encoder signal to the already-made VI.
    Question is:
    How do I add and read out a RPM signal from a new encoder?
    VI download:
    http://www.mediafire.com/?k1ckbozeppffv1z
    Best regards
    Henrik Myhre

    From your post it seems like you wants to read back the RPM value of a particular move based on your encoder. There actually is a specific VI that you can use that does exactly this. The Read Velocity in RPM.VI should output the RPM of the current move that you are doing.
    In the code that you posted, it looks like you are performing a two axis move. Therefore you will need two instances of this VI, one for each axis. You should utilize these VIs within the while loop and after the move has been started that way the RPM values are continuously updated.
    It also seems like you have inherited some code that looks very complicated. We would highly recommend that the you begins experimenting with basic motion to get familiar with it.

  • NI PCI-6514 Digital Inputs

    I would like to know if the digital inputs in this card can work with a pressure transmitter. I'm working with a test machine that needs to compare pressure of about 2000psi and activate some valves (24V). If this can read a sensor it would be great to just use one card for this project.
    This is the transmitter that I want to use:  http://www.ashcroft.com/products/pressure_transduc​ers_transmitters/high/upload/AshA2-1-3.pdf    (0-10Vdc)
    If I can't use the digital inputs for this I would be grateful to get other options.

    Hi F430gx,
    Just as Dennis said, it seems that you’re trying to connect an analog signal output to a digital signal input. NI 6514 is a digital I/O interface so I suggest you to switch to an analogue DAQ like the 6281 or similar.
    Hope this helps.
    Regards,
    Luis Castañeda
    National Instruments
    Ingeniería de Aplicaciones
    www.ni.com/soporte

  • About pci-6013 digital input

    i want to know what volume resistor i can used between 5vcc and digital input, order to keep input higt.
    i found it must less than 2k om.
    i need your propose.( i use pci-6013)
    thank you !

    Hi,
    in pci-6013 card, DIO state is pulled down by putting a resistor of 1.5 Kohm between DIO & DGND. If you connect 1.5K resistor between Vcc & DIO, you will get 2.5V approx.
    Further to increase voltage at this DIO, you have to reduce the value of this resistor. Lets say, if you connect a resistor of 150 ohm between Vcc & DIO, you will get (10/11)x5V which is near to 4.5 V which is surely TTL high signal.
    So you can connect any value between 150 ohm to 1.5 Kohm to get high TTL logic at DIO.
    Hope it works. Your feedbacks are welcome.
    Best Regards,
    Nirmal

  • How can an unconnected indicator read an FP digital input?

    SYSTEM DESCRIPTION:
    A Dell desk top computer with a Field Point system attached. There are a variety of modules including analog input, 2 digital inputs, relay out, Strain gage input, quadrature input. The system is running XP. The Labview program is written in v6.1.
    PROBLEM
    In an application written by others, I have found 4 front panel indicators that react to Field Point digital inputs. On the block diagram, the indicators are not wired to anything. They have no local variables and no global variables associated with them. How can they be reacting to the FP inputs? The problem is that one of the indicators reacts to the wrong input and I need to fix it.  See "In(Rescue)Limit, In(Cargo)Limit, 4067 Out Limit and EStop".
    Also, when the vi is launched, it starts up the FP system and the vi has no FP vi's in it and none of the sub-vi's have any FP vi's in them either. Any clues how this could be working?
    I have attached the vi. There are other vi's in this project, just too many to include unless more information is needed.
    Thanks,
    Chris Dreike
    Advantage Automation, Inc.
    [email protected]
    310-214-2175

    Chris,
    It doesn't look like you attached the VIs.
    You can use front panel DataSocket binding to link an indicator or control to a FieldPoint ethernet item. Right-click on the indicator and choose Data Operations>>DataSocket Connection.
    Regards,
    Aaron

  • "External sample clock" and "Rate" for digital input acquisition

    Dear all,
    I want to acquire digital input (21 bits with external clock = 50 kHz) with a PCIe-6343 NI board. Using the  DAQ assistant under Labview, I selected the advanced timing with the sample clock time parametrized as External. However, it is also possible to select the Rate of the acquisition. In my case, i want to get the data at the rising edge of the external clock signal, so at a frequency of 50 kHz.  How can I do that ? I just need to put a Rate of 50 kHz ?
    thanks for your help.
    Cedric 

    Cedric,
    dddsdsds wrote: 
    [...]In my case, i want to get the data at the rising edge of the external clock signal, so at a frequency of 50 kHz.  How can I do that ?[...]
    You answered your question already. If you want to use an external clock, you have to configure the timing source of your task to be external. In order of proper buffer configuration, you should enter 50kHz as rate in addition to the external configuration, but this will not influence the speed of the acquisition (since it is "clocked" externally!)
    hope this helps,
    Norbert
    CEO: What exactly is stopping us from doing this?
    Expert: Geometry
    Marketing Manager: Just ignore it.

  • Pci1200 digital input output

    Hi,I'm a student using labview 6.1 for the first time. I use the digital input/output lines of a pci 1200 card. I use 8 digital input lines placed in one sequence, and 7 digital output lines placed in another sequence. The VI can read the input lines but the output lines give a voltage of 0.5 Volts instead of 5 VOLTS, how can I solve this problem?

    What are you writing to the digital output lines in LabVIEW? Writing a Boolean value of False to a digital line will write a TTL logic low voltage and writing a Boolean value of True to a digital line will write a TTL logic high voltage. Make sure you are writing a true Boolean value to the lines you want to output 5 V.
    Also, make sure you are not loading down the digital outputs. The digital lines can source 13 mA of current. If you are connecting a small resistance load across the digital outputs, you might be loading down the digital ouputs. I hope this helps.
    Regards,
    Todd D.
    Applications Engineer
    National Instruments

  • Digital inputs. PFI trigger inpurs

    Hi,
    I want to be able to to start the data acquistion by the use of digital tigger, say on the rising edge. Do i use the PFI inputs and if so how. Or can use one of the digital input channels. Any help would be grateful. Note that I am using NI PCI 6259 and labview 7.
    Regards,
    Tadhg

    Using one of the PFI lines is actually a great idea.
    For analog input, you could try the LabVIEW example VI, "Acq&Graph Voltage-Int Clk-Dig Start" you'll be able to get up and running quickly. You may select which line to trigger from using the controls under "Trigger Parameters".
    If you are performing analog output, the "Gen Mult Updates-Int Clk-Dig Start" works in a similar way.

  • Daqmx simulated digital input

    I'm having trouble using the simulated digital input feature.
    I create a simulated digital input in MAX - a simulated NI PCI-6534, single channel, port 0/line 0, acquisition mode is 1 Sample (On Demand)
    When I click the "run" button I see the indicator flash on and off as I would expect.
    However, when I bring this task in to LbView, I can't get the indicator to flash no matter what I've tried.
    No doubt I've missed some basic concept. Can anyone tell me what I'm doing wrong?
    (VI attached).
    Solved!
    Go to Solution.
    Attachments:
    digItst.vi ‏11 KB

    You do not have N channels, you have 1 channel.  Use the appropriate DAQmx Read version.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines
    Attachments:
    digItst_BD.png ‏16 KB

  • Reading digital port with external clock at maximum speed

    I have a PCI-6509. I am programming a fast loop to read 32 bits values from the digital input using an external clock ( injected into one of the card pin inputs )
    The environment is Windows2000 + Visual C++ .
    basically I am doing
     DAQmxErrChk (DAQmxCreateTask("",&taskHandle));
     DAQmxErrChk (DAQmxCreateDIChan(taskHandle,"Dev1/port0:3","",DAQmx_Val_ChanForAllLines));
     DAQmxErrChk (DAQmxSetSampTimingType(taskHandle,DAQmx_Val_ChangeDetection));
     DAQmxErrChk (DAQmxCfgChangeDetectionTiming (taskHandle,"/Dev1/port5/line4:4", NULL, DAQmx_Val_FiniteSamps  , sampsRequested));
     DAQmxErrChk (DAQmxStartTask(taskHandle));
     getSystemTime...
     DAQmxErrChk (DAQmxReadDigitalU32(taskHandle,-1,-1,DAQmx_Val_GroupByChannel,data,sampsRequested,&sampsRead,NULL));
     getSystemTime...
    I pass a data buffer big enought to hold the number of samples I am requesting ( for example 10000 of uInt32 ).
    It works fine. I get my values but the speed I get is only around 10 KHz.
    I print the system time before and after the call to DAQmxReadDigitalU32 as you can see from the above code. 
    This makes no sense because my external clock in ,"/Dev1/port5/line4:4" (as selected on the ChangeDetectionTiming call) runs at 2.0 MHz.
    Could someone tell me what parameters I have to pass to this sequence of NI DAQ functions calls in order to really read at the speed of my external clock?
    many thanks in advance,
    Roberto AButer.
    Note :
    I am going desperate with the web pages, documentation , online helps and the pletora of products and so on.
    I did pay to NI a considerable amount of money for the card , the labview software etc and I just want to do the simplest 20 lines C program to read my digital signal at the speed is being injected. Should that be that difficult????

    Hello caca,
    the board you are using is specified as a static IO board. That means it was not constructed to do highspeed DIO operations.
    You cannot use a hardware clock to time your input and output
    operations, so you have to use a software timing or, as you chose, the
    change detection interrupt. But the maximum speed you can archieve
    doing this, is somewhat limited of course.
    Check this thread for some more information.
    Ingo Schumacher
    Systems Engineer Sound&VibrationNational Instruments Germany

Maybe you are looking for

  • Can no longer send or get mail. All settings are correct. Worked fine before.

    I can use a secondary account but not my primary yahoo.verizon account. Verified all settings are correct but the password was erased. After re-entering password a message says I have to verify my password by entering it at www.yahoo.com. However, I

  • [svn:fx-trunk] 4982: Moving DataGroup from item based lookup to an index based lookup.

    Revision: 4982 Author: [email protected] Date: 2009-02-16 23:31:05 -0800 (Mon, 16 Feb 2009) Log Message: Moving DataGroup from item based lookup to an index based lookup. Also, we now cleanup old item renderers when the dataProvider changes. This sol

  • Audio stops working right after login

    Hi everyone, I have a macbook pro 13inch mid 2009 running mac osx 10.7 lion. Few weeks ago the audio stopped working but after few moments and 2 reboots it started to work fine again. Now are 2 days that the problem came back. I tried to reboot multi

  • Reconnect media dialogue not working properly after advanced pulldown rem..

    i'm running a macpro with the latest version of FCP (5.1.4) and tiger (10.4.9) i have a project where some of the footage is 24Pa, but was captured as regular 29.97 ntsc footage. because it's 24pa it's creating some interesting banding when i try to

  • WLC failed to connect to WCS by snmp

    Hi fellows, I've a solution implemented that contains 1 WCS and 3 WLC. For some unknown reason, started from some point, one of the WLC started to fail to connect by snmp to the WCS, given the next error " %AAA-3-LDAP_CONNECT_SERVER_FAILED: ldap_db.c