Ni 6008 acquiring digital inputs from an absolute encoder.

Hi, i'm a student working on my master thesis.
I'm trying to acquire 9 digital channels from a 9bit absolute encoder on the NI-USB 6008 but i'm encountering the following problem.
I'm powering the encoder trough the 0V (GND) and +5V ports on the NI-USB 6008, and if i read the digital outputs directly from the pins
of the encoder with a tester, without connecting them to the NI-USB 6008, i see +5V or 0V with respect to GND.
If then i wire the outputs of the encoder to the NI-USB 6008 digital ports, the readings of the tester,  are 5V or 3.6V with respect to GND, so basically
when i try to acquire the signals with Labview, they never switch to logic low.
I'm a doing something wrong or is it a problem with the NI-USB 6008?
Thank you for the help.

Hi,
It seems that NI-USB 6008 works well and that the encoder is not able to force low the digital output signal.
I think that this problem could have different explanations:
- the encoder needs a pull down resistor in order to work properly
- the encoder try to force low the digital port while the 6008 is forcing high the same port
- the encoder is damaged
Try to take a look at the encoder manual in order to see if the encoder needs some additional circuitry to work properly.
Alex

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

  • Using cRIO-9024 serail port can I read the data from AFM60 absolute encoder, multiturn, SSI interface

    I would like to request you to kindly address the following quarries.
    1. Using cRIO-9024 serial port, can I read or write data from AFM60 absolute encoder, multi-turn, SSI interface (please see the attachment for detail information about the encoder)?
    2. Which type of encoder interface (SSI, TTL/HTL) is compatible with the serial port connection of cRIO-9024 controller?
    3. Are there any limitation on choosing the output frequency and resolution (pulses per step) of the encoder? If the answer are yes, what are the suitable ranges of frequency and resolution?
    Looking forward to your kind reply. Thanking you.
    Regards
    Shantanu
    Attachments:
    afs60_afm60_english.pdf ‏2298 KB

    Hi Shantanu,
    To read and write data from the serial port on a cRIO you access the serial port as a VISA resource, there are serial VISA VIs to read and write data on the serial port.
    If you look under the Hardware Input and Output folder in the NI Example Finder, you should find a Serial folder, this contains examples for serial communication.
    The serial interfaces on cRIO devices use the RS232 standard, unfortunately as SSI is based on the RS422 standard, you won't be able to directly interface the encoder to the serial port as they are not compatible. You would have to either use a separate interface between the devices or use a digital input module in your cRIO to directly process the encoder data.
    To answer your question about frequency, the maximum baud rate for the serial port on the 9072 as listed here is 115200 bps, so this would be the maximum raw data transfer rate for any connected device, the number of steps for your particular encoder is limited by the maximum shaft speed as detailed in its specification. 
    I hope this is helpful to you, feel free to ask further questions and I'll do my best to answer them.
    Regards,
    Adam Brown
    Applications Engineer
    National Instruments UK

  • Accessing digital inputs from signal express (TEK MSO2024)

    Hi,
    i'm trying to access the digital inputs of an TEK MSO2024 from signal express, but no luck.
    I'm using SignalExpress2011, tkpdo2 ivi driver.
    Seems like this driver doesn't support digital input, anyone got a solution or another driver?
    *edit
    topic can be deleted
    on another system DI works...
    Regards
    alex

    Hello,
    The best to way drive digital outputs while acquiring analog inputs is to create two steps in Signal Express. Each step will execute relatively at the same time but there is no way to correlate or synchronize DIO with AI on a 6008 because DIO on that device is software timed while AI is hardware timed. Below is the 'Getting Started with Signal Express' manual which can aid in creating an AI and DIO step. Also, if you need additional examples later, they are located in the Help->Open Examples.
    Getting Started with LabVIEW SignalExpress
    http://www.ni.com/pdf/manuals/373873e.pdf
    Regards,
    Patricia B.
    National Instruments
    Applications Engineer

  • Acquiring Analog Input from Multiple Channels in Labview

    Hello,
    i am working on a VI where i need to acquire signals from multiple channels in Labview using NI-9129.Initially i want to acquire contineous input signals (voltage and current) and display it on the graph.
    Having looked at forum and Labview examples i tried to make an initail VI but i am not sure if the setup i made needs any modification to serve my purpose.I am fairly new to Labview software.
    All i want is
    1.To acquire conteneously current and voltage 
    2.Display current and voltage individually on the graph.
    3.Perform some basic calculations like MAXIMUM,MINIMUM and AVERAGE values of voltage and current.
    4.Log the data into  excel file
    I have attached the VI i made so far.i need abit of advice if i am moving in the right direction or not.
    Thank You for having a look at my question.
    Attachments:
    Voltage-Current VI.vi ‏81 KB

    Engr_tech wrote:
    i think i already have the tdms for  data logging.as far as the tdms data logging is concerned,when i enable the logging mode to "read and log" the data logged inside the excel sheet would be seperate for current and voltage.?
    Is it practically possible to acquire data from 4 different channels and plot them.if yes,then am i right to assume that all i need is to modify the current VI for four channels having all of them in parallel.
    Yes, you are logging directly to a TDMS file.  This is definately the best route for data logging from a DAQ.  The currents and voltages will show up as different channels in the same group.
    To add more channels, just add them to your DAQmx task.  The logging will handle it with no issue.  Your calculations will also a little work to add the extra channels.  Same for the graphs, since you are using seperate charts.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • Acquire sensor input from FPGA using multiple loops/

    Hi,
    I have a sbRIO and I am acquiring inputs from ultrasonic, temperature sensor and pressure sensor in a same while loop. When these inputs go to the RT for processing, only one sensor value changes i.e FPGA is only fetching input from one of these sensors. 
    Should I use parallel loops i.e. acquire each input in a separate loop? If yes, should I be concerned about timings for each loop?
    Regards.

    You don't have to use different loops unless you need the data at different rate. Please show the code how you are acquiring the data and passing it to the RT (A clear snippet or image is good enough).
    The best solution is the one you find it by yourself

  • Trouble Acquiring Digital Input through 1302- 1180- 1349-PCI 6220- software

    Hi,
    I've got an SCXI-1000 chasis, and I'm trying to use an external clock and trigger signal to acquire data from a BNC 2095 board.  I have the 1302 unit to input my external digital signals.  The information feeds through the following units:  1180--> 1349 --> SHC 6868 EPM cable --> PCI 6220 card --> software
    I've got my trigger connected to terminals 39(+) and 24(-) in the 1302 unit.  The external clock is connected to terminals 38(+) and 33(-). 
    Within the DAQ Assistant, I've selected the trigger as PFI 1 and the clock as PFI 0.
    I'd like to test the setup, but the test panel in the MAX won't let me select PFI0 or PFI0 as a channel.  I've also got a acquisition VI made, but it doesn't log any data even though there are no errors.  That's why I want to check that I'm getting the trigger/clock signals properly.
    Any ideas on what to check or change? 
    Thanks,
    Michael

    Hi Michael,
    In general, it's not a good idea to call the DAQ Assistant in a loop, since it allocates and frees resources every time it runs. You might want to take a look at the DAQmx examples in the NI Example Finder (Help>>Find Examples). There are located in the Hardware Input and Output\DAQmx directory in the Example Finder. There are several examples, with several timing and triggering configurations.
    Here is some information about reference triggers: In NI-DAQmx, the stop trigger is referred to as a reference trigger. The reference trigger establishes the reference point in a set of input samples. It allows you to acquire samples both before and after the trigger is received. The number of pretrigger samples to be acquired is set using the Pretrigger Samples input. The number of posttrigger samples to be acquired is automatically determined by subtracting the number of Pretrigger Samples specified from the number of Samples to Read specified.
    Also, take a look at the article I am linking below for information about NI-DAQmx. I hope all of this helps!
    Learn 10 Functions in NI-DAQmx and Solve 80% of Data Acquisition Applications
    Michael P
    National Instruments

  • How to switch USB-6008 between digital input and output modes

    Hi I have been following the examples of setting a specific port to either inout or output using the DAQmxCreateDIChan() or DAQmxCreateDOChan() calls. What I now want to do, is switch betwen inout to output mode and back again.
    DAQmxCreateDOChan()
    DAQmxWriteDigitalLines()
    // do something
    //switch to input
    DAQmxReadDigitalU32()
    // switch back to output
    I can't seem to find any calls or discussions on this.
    rjmiller

    Hi RJM,
    If you want to be able to switch your digital line between input and output, then you will need to use the Tristate Property. There is another discussion forum with more detailed information about using this property and I believe that you have already seen it. I am going to post the link in case anyone else wants to see the other forum as well: Tristate Property Discussion Forum. Reddog's post is very informative.
    Regards,
    Hal L.

  • Question on acquire current input from CB-68LP connector blocks

    hello
    i has a question.I try to get the current input to the labview using CB-68LP.I had wired to channel 1.The correct reading should be 0.0724A.But I cannot get the correct reading
    Thank you
    Attachments:
    lab 2.vi ‏384 KB

    Week end is a difficult time when you need a quick help.
    You should not have post a second message to catch somebody attention : some people just scan the forum to search for unanswered questions...and you gave an answer to your own question, changing its status.
    First thing to do : use MAX to see if you can read the proper signal.
    Second : use the attached vi to see if you can read the signal in LV.
    Things should process smoothly after that.
    CC
    Chilly Charly    (aka CC)
             E-List Master - Kudos glutton - Press the yellow button on the left...        
    Attachments:
    lab 202 [1].vi ‏17 KB

  • ***Resubmitted for further review*** How can I do position maintenance using a digital input to capture an encoder count and adjust the move profile on the fly.

    I have a rotary table (45:1 ratio) being driven by a stepper motor with an encoder attached to the motor. I am using a 7344 motion controller. I want to be able to do position maintenance on the move. The problem is that I am always moving in the same direction and the table has mechanical error. I have a home input on the table, which I have wired to the trigger input for the corrosponding axis. My thoughts were to capture the position when the table goes by the home input and compare it with the previous time and make the adjustment in the next move. I am just not sure what the best way to do this
    is.

    Hello,
    So when you say that the table has mechanical error you mean that the number of steps per table revolution will vary from revolution to revolution? I apologize that I misunderstood this initially. What you could do is use high speed capture to read the position of the stepper every time the home switch (or some other mechanical switch) is hit for each revolution of travel. Then when the high speed capture lined is toggled you can read the current position and modify your next move accordingly. To get details about High Speed Capture please search for High Speed Capture from our Developers Zone at: zone.ni.com
    There are examples programs on our website and examples available with the FlexMotion driver.
    Please let me know if you have any further questions.
    Re
    gards,
    Andy Bell
    Application Engineer
    National Instruments

  • How can I do position maintenance using a digital input to capture an encoder count and adjust the move profile on the fly.

    I have a rotary table (45:1 ratio) being driven by a stepper motor. I am using a 7344 motion controller. I want to be able to do position maintenance on the move. I have a home input on the table. My thoughts were to capture the position when the table goes by the home input and compare it with the previous time and make the adjustment in the next move. I am just not sure what the best way to do this is. I am thinking that I want to tie the home input to one of the trigger inputs as well as the home.

    Hello,
    Your best option will be to use an encoder for feedback in your system. If you use an encoder then at the end of the move, the controller will compare your trajectory position with the position the encoder reads (the actual position) and make the necessary adjustments. Also, this is all handled transparently so you won't have to worry about any complicated programming issues.
    Regards,
    Andy Bell
    Applications Engineer
    National Instruments

  • USB-6009 digital input change detection

    Hi,
      I am trying to acquire digital signals from an ni usb-6009 device using daqmx on labview 8.0. I need to write the signals from a port of the device to an output file only when there is a change in the signals and I am not able to do this successfully. I created a digital task in MAX and was able to select acquisition mode as '1 sample (On Demand) ' only. Any other selection for acquisition mode would result in error 200077 with the following message -
    Measurements: Requested value is not a supported value for this property.
    Property: SampTimingType
    You Have Requested: Sample Clock
    You Can Select: On Demand
    I selected '1 Sample (On Demand)' acquisition mode and was able to see the channel values on running it in MAX as I rotated a device connected to the usb-6009 device. As expected the hex values on MAX were showing up as FF,7F,3F,BF and this pattern was repeated everytime I provided the input by rotating the device.
    Next, I created a simple vi to use the digital task I setup on MAX. I want to be able to record the signals only when there is a change in the digital pattern from the channels.That is when there is atransition from FF to 7F to 3F and so on, the vi should write to an output file and if no change happens, it should not write to file. To do this, I explored the Timing vi and tried using the 'Change detection' mode, but that produced the same error as above. 
    Can anyone please suggest a way to accomplish what I am trying to do ? Any guidance will be a hugely appreciated.
    Thanks
    ~Sej

    All of that effort with sample rates, timing, change detection, etc ciuld have been avoided if you had read the specs. As you finally found out, the device only supports sftware timed i/o and no change detection. You wll have to do your change detection in software this is done with a shift register/feedback loop.

  • "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.

  • SCXI 1600 and digital inputs

    Does anyone know whether the SCXI 1600 card can sample digital inputs from say an SCXI digital input card like the SCXI-1162? The manual and specs say so but I can't see how it is done. The user manual is clear on analog inputs - up to 352 for the 200kS/s max rate but it doesn't say anything specific about digital inputs. An article on DEVZone has a brief response to a similar question to mine that says the specified max channel count does not include digital inputs. I can't work out from the specs at what sample rate one could sample digital inputs with the SCXI-1600 card.

    Hello Andrew,
    As it says in the user manual, the SCXI-1600 is built similar to E Series DAQ devices and can control digital I/O SCXI modules. You are probably looking for dynamic characteristics on the digital side of things kind of like sampling rate. The reason it is not specified is that it is static digital I/O meaning that it is software controlled.
    So a reading is taken when called by software. But rest assured that the SCXI-1600 can support your digital module.

  • Change digital input to frequency

    Has anyone figured out an easy/slick way to convert a digital input into a frequency/Rate?
    I've got this prox switch out on the plant floor that monitors whenever a part goes by. A part goes by at regular intervals, except that once in a while a part may not be there (removed from product stream for QA reasons). Ok, so I want to know (on average, say in the last 2 minutes) what is the rate in parts per hour.
    I guess I kind of want an Derivative Object that will accept a digital input (logical) instead of numeric.
    I am currently using a POT as the input to a Derivative Object (updating in 2 minutes, and a time unit of 1 hour), and Incrementing the Pot with the Digital Input from the PLC. However this only works until the POT max's out, then I automaticly reset the pot to zero, and start incrementing again.
    I just figure it should be "cleaner" than this solution. Any ideas?
    Rich Anderson
    Automation Controls Engineer
    Anamax Group

    Hi,
    Instead of using a Pot that is updated by the Digital input, you could use a counter. On that one you don't need to specify a max and you can make it have a reset programmatically.
    That should be easier and better to use.
    Ricardo S.

Maybe you are looking for

  • Link to trigger a .pdf or .doc file to show in presentation

    I would like to add a link that would trigger the showing of a .pdf file or a .doc file within the presentation itself. I can do this in powerpoint. There must be some way to do this in Keynote, but I can't figire out how to do this. Thanks for any i

  • How to get poster art in the RSS feed using Podcast Producer workflow

    With podcast producer there are standard workflow which create atom feeds. I can not figure out how to automatically generate a poster image (or any type of images) associated with the video to show in the rss feed. Anyone got this to work? Here is t

  • SSRS 2012 Problem understanding View State Validation steps

    Hi, ***** Note I have put my question on Bold to make it easier**** I am trying to Implement this solution on our systems and need help on how to set it up ? Pasted from  http://technet.microsoft.com/en-us/library/cc281307.aspx?lc=1033 How to Configu

  • Windows hijacks iPod and treats like flash drive.

    every time I connect my new ipod to my computer (vista) windows explorer opens up and shows an empty drive, so I close that and then iTunes opens and try's to sync, after 40 songs windows hijacks it, disconnects it, re-connects it and opens it again

  • Locking and Unlocking Transactions

    hi, We have locked SM06 transaction in SM01 and we dont know the time Please let me know if there is way to find out the date and time of when SE06 is locked in SM01 Please guide