Digital input configuration

Good Morning,
I am trying to get the picks of a signal of variable frequence, that goes until 24 Hz. When I acquire with 1 sample on demand, I loose some picks. When I try to configure "N samples", it tells me to configure external clock, and when I choose "diclock", it doesn't work. How can I configure it?
Thanks

Take a look on your other post.
http://forums.ni.com/t5/Digital-I-O/digital/m-p/2196408
Abel Souza
Engenheiro de Aplicações
National Instruments Brasil

Similar Messages

  • How to I connect Sourcing digital output from My Interface Board to NI USB 6501 channel configured as Digital input

    When I connect an input to DI channel of USB 6501 card  from my board which has sourcing Output t, iIn the Off state it is not pulled down properly. The volatge on the port in is 2.1V -2.5V based on the pull down resistor on my board. I suspect that  it acts as a voltage divider.
    The state on the card is still show as "HIGH "state, even my sourcing output driver has a pull down  resister.  when I use this interface board for PCI mseries devices it works fine. Do the pull down resister on my sourcing output is not worth. Is this because of pull up resister 4.7k inside USB card 6501.
    USB 6501 specifications shows the Digital input accepts both source and sink modes. By default the card is in sourcing digital input mode. How do we can convert this in Sinkind digital input mode.
    Could anyone Please give your suggestions to overcome this issue .
    Thanks you.

    You really should not have both a pull up and pull down on the same line.  Really weird things can happen.  If you insist on having a pull down on your board, then I highly recommend putting a digital buffer chip between the DAQ and your board.
    Some boards with DIO have a pull up, while others have pull down.  You just have to watch the specs.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • How can I use 4 DIO lines as digital input in a E series-SC 2050-ER8 set up ?

    I have a DAQ system with an E series DAQ card that is connected to SC-2050 and ER8. I want to use 4 DIO lines (out of 8) for digital input. How can I do this?

    Hello Suresh,
    There are a variety of ways to accomplish this. If you are using LabVIEW, you will use the DIO Port Config VI and the DIO Port Read VI. You will use the line direction map input of the DIO Port Config VI to setup which 4 lines you want to be the input lines. The LabVIEW shipping example entitled 'Dig Multi-line Direction (E) VI' shows how to use the lines of the digital port on an E-Series device for input and output.
    If you are using NI-DAQ function calls, you can use the Dig_Line_Config and Dig_In_Line calls to configure a digital line for input and then read from that line.
    I hope this helps.
    Regards,
    Todd D.
    NI Applications Engineer

  • Can't change sample rate for digital input on Mac Pro

    Hello all,
    on my Mac Pro with 10.4.10 I can't change the sample rate for the digital input. Whenever I choose 48000 or 96000 Hz it returns to 44100 Hz after a few seconds. Feeding a 24 bit/96000 Hz signal from an external ADC into the optical input doesn't help. No input signal is available for digital recording software such as Sound Studio or Cubase. After changing the sample rate in audio midi configuration to 96000 Hz the sound can be heard for a few seconds but when the setup returns to 44100 automatically the signal is, of course, lost.
    I've deleted all relevant preferences and restarted with resetting paramter RAM. Still the same. With external hardware such as M-Audio Firewire equipment setting the sample rates works properly.
    Thanks to all for helpful clues.

    Hi,
    when E&M signaling is configured on digital interface like the VWIC is, 2 or 4 wires operation is not applicable because there are no wires at all, and reported only for compatibility with the analog E&M card.
    Consequently, you cannot configure that and it will not make any difference to effect of the connection.
    Please rate post if it helps!

  • Simultaneous Digital Input and Output from NI 9403

    Hi,
    I was wondering if it is possible to digital output through one line in this module(NI 9403) while simultaneously reading from 10 other lines?
    Basically what I need is for line0 to always be closed(true), and read lines1:10 - at very least 1sample/second.
    I have attached a stripped down version of my code illustrating my error. I thought I was getting the error because the two tasks were using different clock configurations, but I tried using the same inputs and that doesn't work for me.
    Any input is greatly appreciated.
    Thank you
    Attachments:
    Digital I-O.vi ‏22 KB

    Hi Matthew,
    The behavior you're seeing is expected for the 9403 module, since it is a serial module. The DAQmx help has the following restrictions in the Digital I/O Considerations for C Series Devices section.
    Timed digital input/output restrictions:
    You cannot use parallel and serial modules together on the same hardware timed task. 
    You cannot use serial modules for triggering. 
    You cannot do both static and timed tasks at the same time on a single serial module. 
    You can only do hardware timing in one direction at a time on a serial bidirectional module.
    So you can only do timed input or output at one time, but not both. However, based on the VI you attached and the description of what you want to do, you don't necessarily need both timed tasks in your loop. You can create a static output task to update that one line and after that, you can just start your timed input task on the rest of the lines. This should maintain the state on the DO line, since you're not acquiring from it.
    Cheers,
    Cristina
    Cristina

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

  • Producer consumer with analog and digital inputs and outputs

    Hi everyone,
    I am working on a control system program for some practical test work. Currently I am working on the data acuisition component of the Labview program. My architecture is produced-consumer loops with a que. My system will have analog inputs, analog outputs, digital inputs and digital outputs. It's not a time critical sytem, but I would like all of the data acquisition to be synchronised. I have attached my program as it is at the moment. I am having trouble getting all of the data into the que since I have two data types. Also, I'm not sure if i've synchronised the four read/write sequences correctly. I would greatly appreciate if somebody could take a look at my program and give me some advice. Thanks in advance.
    Solved!
    Go to Solution.
    Attachments:
    control_v2_DAQ loop.vi ‏46 KB

    Robert, the specific error that I get is:
    Error -200462 occurred at DAQmx Start Task.vi:6
    Possible reason(s):
    Generation cannot be started because the output buffer is empty. 
    Write data before starting a buffered generation. The following actions can empty the buffer: changing the size of the buffer, unreserving a task, setting the Regeneration Mode property, changing the Sample Mode, or configuring retriggering.
    Task Name: Heater testing lab digital outputs
    This error occurs at the 'DAQmx write.vi' function. I just want to sent one sample per second, for each channel. I would like the producer and consumer loops to each run once every second.
    I have attached part of my code with just the data acquisition and writing. Any help would be greatly appreciated.
    Attachments:
    control_v2_ML_simple.vi ‏83 KB

  • Use digital inputs to choose inquiry sequence?

    Hello,
    Is it possible to use a couple of the NI-1456 CVS TTL Digital Inputs to select which specific Inquiry Sequence should be ran?
    I currently own NI Vision Builder for Automated Inspection.  I do not own LabView.
    I am using a NI-1456 CVS and firewire camera.  My solution will use the NI-1456 CVS stand-alone.  It will not be connected to a VGA monitor, or to a computer.  I intend to use the system to detect flaws in silicon wafers.  Due to several possible wafer sizes and shapes, I will have to develop an Inquiry Sequence for each wafer type.  I would like to have the NI-1456 CVS unit contain several Inquiry Sequences.
    -Rick

    Hi Rick -
    Actually, this is a very commonly used feature of VBAI!  From the Configuration Interface, choose Tools»Configure Inputs/Outputs.  This will pop up a settings window for the entire inspection process.  The second state (called "Change Inspection?") allows you to configure a Product Selection port.  The digital byte written to this port will determine which inspection script to run.  From the listbox, you can choose NI CVS/IMAQ IO Product Selection to use your CVS's digital input port for this feature.
    More information about this feature can be found int he NI Vision Builder for Automated Inspection Configuration Help, under the following index: Vision Builder AI Tools»Configuring Inputs/Outputs»NI CVS-1450 Series I/O.  Note that the ISO inputs are used for this feature, not the TTL inputs.
    David Staab, CLA
    Staff Systems Engineer
    National Instruments

  • Digital inputs NI6220

    Hello!
    DAQmx Version 7.3
    I want to read the digital inputs of a NI6220. There is no matter of timing,
    I only want the actual state.
    I get the error code -200077 from the StartTask, that means:
    "Requested value is not a supported value for this property.
     Property: DAQmx_SampTimingType
     Requested Value: DAQmx_Val_SampClk
     Task Name: MyDigital
     Status Code: -200077"
    How do I have to configure this device correctly? I didn't find the source with the properties.
    Thanks in advance
    Ralph Müller
    Here is the pseudo-code I use:
    deviceName                  = "Dev1";
    taskName                    = "MyDigital";
    rate                        = 1.0;
    lengthDataPerChannel        = uint32(2);
    lines                       = "Dev1/line0:15";
    nameToAssignToLines         = "DigitalChannel";
    lineGrouping                = DAQmx_Val_ChanForAllLines;
    numSampsPerChan             = int32(1);
    readArray                   = uint32(255);
    arraySizeInSamps            = uint32(1);
    reserved                    = uint32(0);
    status1     = DAQmxCreateTask(taskName,taskHandle);
    status2     = DAQmxCreateDIChan(taskHandle,lines,nameToAssignToLines,lineGrouping);
    status3     = DAQmxCfgSampClkTiming(taskHandle,"OnboardClock",rate,DAQmx_Val_Rising,DAQmx_Val_FiniteSamps,lengthDataPerChannel);
    status4     = DAQmxStartTask(taskHandle);
    printf("Handle, Status: %d; %d; %d; %d, %d\n",taskHandle,status1,status2,status3,status4);
    for n = 1:10
        pause(1);
        status1   = DAQmxIsTaskDone(taskHandle,isTaskDone);
        status2   = DAQmxReadDigitalU32(taskHandle,numSampsPerChan,0,DAQmx_Val_GroupByScanNumber,readArray,arraySizeInSamps,sampsPerChanRead,reserved);
        status3   = DAQmxStopTask(taskHandle);
        status4   = DAQmxStartTask(taskHandle);
        printf("Status: %d(%d); %d(%d); %d; %d, %d\n",status1,isTaskDone,status2,sampsPerChanRead,status3,status4);
        printf("Readarray = %d\n", readArray);
    end
    status1    = DAQmxStopTask(taskHandle);
    status2    = DAQmxClearTask(taskHandle);
    printf("Status: %d, %d\n",status1,status2);
    I get the following printout:
    Handle, Status: 530841864; 0; 0; 0, -200077
    Status: 0(1); -200077(0); 0; -200077, Readarray = 0
    Status: 0(1); -200077(0); 0; -200077, Readarray = 0
    Status: 0(1); -200077(0); 0; -200077, Readarray = 0
    Status: 0(1); -200077(0); 0; -200077, Readarray = 0
    Status: 0(1); -200077(0); 0; -200077, Readarray = 0
    Status: 0(1); -200077(0); 0; -200077, Readarray = 0
    Status: 0(1); -200077(0); 0; -200077, Readarray = 0
    Status: 0(1); -200077(0); 0; -200077, Readarray = 0
    Status: 0(1); -200077(0); 0; -200077, Readarray = 0
    Status: 0(1); -200077(0); 0; -200077, Readarray = 0
    Status: 0, 0

    Hello!
    thank you, John, for your hint. I tried the second part (ctr0internaloutput), but
    still get the same error (-200077).
    Here is the way I actually tried:
    Variables as in my former email, additional these here:
    taskNameCounter             = "CounterTask";
    counter                     = "Dev1/ctr0";
    nameToAssignToChannel       = "CounterChannel";
    units                       = DAQmx_Val_Hz;
    idleState                   = DAQmx_Val_Low;
    initialDelay                = 0.0;
    freq                        = 10.0;
    dutyCycle                   = 0.5;
    status1  = DAQmxCreateTask(taskNameCounter,taskHandleCounter);
    status2  = DAQmxCreateCOPulseChanFreq(taskHandleCounter,counter,nameToAssignToChannel,units,idleState,initialDelay,freq,dutyCycle);
    status3  = DAQmxStartTask(taskHandleCounter);
    printf("Handle, Status: %d; %d; %d; %d\n",taskHandleCounter,status1,status2,status3);
    Then the code of my former eMail, but I changed only one line to this:
    status3     = DAQmxCfgSampClkTiming(taskHandle,"/Dev1/ctr0internaloutput",rate,DAQmx_Val_Rising,DAQmx_Val_FiniteSamps,lengthDataPerChannel);
    The error is the same as before (the startTask of the normal taskHandle returns -200077).
    o.k. then stop and delete all tasks.
    Can you give me more details or an example?
    Thanks!
    Ralph

  • Measure rpm and PWM signals using digital input of NI9401 module

    Hi, is there a simple way how measure rpm (to 5000 rpm) and PWM (about f=3kHz) signals using digital input of NI9401 (ultrahigh-speed digital I/O)  module plugged in NI 9172 ?  I will wellcome any suggestions and VI examples (bether still). I'm begginer using LView 8.2. I apologize for my poor English. Many thanks.

    Hi CUA,
    Since you have already the right tools, you just need to get started with the software. The NI-9401 will give you access to the counters that are inside the cDAQ chassis 9172.
    You need to place the module in slots 5 or 6. You can read in how they work and how to configure them in the counters section of the user guide found here.
    Now to measure rpm, you can either measure the period of the signal (seconds) and multiply by 60 to have minutes and the number of ticks per revolution. You can find a shipped example to read period called “Meas Dig Freq-Buffered-Cont-Large Range 2 Ctr.vi” found under Hardware Input and Output » DAQmx » Counter Mesurements
    To measure PWM, it is similar procedure and you can read the semiperiod (high time or low time). There is also a shipped example called “Meas Semi-Period.vi” found under the same location.
    There is great information for these kind of task at this page or just post back if you need to.
    Hope this helps.
    Gerardo O.
    RF Systems Engineering
    National Instruments

  • Callback for a state change on digital Input 6025E

    Hello All,
    I need to have a callback function invoked when a state change occurs on serveral digital inputs (interlocks, kill button etc.).
    I am using a PCI-6025E and traditional NI-DAQ. For test purposes I have connected the output P3.0 to the input P4.0 using a SCB-68
    terminal block and initialize the ports in the following manner:
    void initfunc()
    long nPattern;
    DIG_Prt_Config(1, 3, 0, 1); /* port 3 output */
    DIG_Prt_Config(1, 4, 0, 0); /* port 4 input */
    DIG_Out_Prt(1, 3, 0xff); /* set all outputs high */
    DIG_In_Prt(1, 4, &nPattern); /* returns 0xff */
    Config_DAQ_Event_Message (1, 1, "DI4", 8, 0xffff, 0xffff, 0, 0, 0, 0, 0, (unsigned long)(&myCallback)); /* callback on state change */
    Now later in my program I perform the following (again as a test) when a button is pushed on a dialog box.
    CDigioDlg:nKillBtn()
    DIG_Out_Line(1, 3, 0, 0);
    DIG_In_Prt(1, 4, &nPattern); /* returns 0xfe */
    My callback funtion never gets called on the state change. Now looking at the documentation for the Config_DAQ_Event_Message it says that
    it notifies traditional NI-DAQ applications when the status of an asynchronous DAQ operation (initiated by a call to DAQ_Start, DIG_Block_Out, WFM_Group_Control, and so on) meets certain criteria you specify.
    Eventually this routines will need to monitor these input lines continuously within a DLL. I want to call an initialization function within
    the DLL to configure the board and callbacks then return. I want the callback functions within the DLL to handle these state changes.
    Any help would be greatly appreciated,
    John

    Hello John. Thank you for contacting National Instruments. It looks like you are using the callback incorrectly. I found an example that uses the callback in Visual C++ with Traditional DAQ. This isn't the same setup as you are using, but it should give you a good idea of how to setup the callback. Please let me know if you have any questions. Have a great day!
    Marni S.
    National Instruments
    Attachments:
    DAQEvent3VC6.zip ‏5 KB

  • Optical digital input (S/PDIF) problem (sampling rates)

    I have a huge problem with my 2009 iMac's digital input that I didn't run into on my older MacBook running the same OS (10.6.x), and it's driving me nuts!
    Basically, I'm trying to record a digital feed from an ADC hooked up between my hand-built tube amps/turntable and my iMac, with the goal being the transfer of some of my LP records to 48/24 LPCM for archiving and editing. The ADC's output rate is fixed at 48000Hz and cannot be changed. My iMac, however, refuses to lock on to the device rate, instead forcing 44.1kHz in the audio/midi setup. In fact, I can't get it to do anything but 44.1kHz on anything I plug in (even my DAC's passthrough) despite the fact that I need to use 48kHz. The audio is correct for a few seconds, then forces back to the wrong rate again. No matter how many times I try, the computer insists on using the wrong sampling rate, which has rendered impossible any hope of using my iMac as an audio recorder.
    I've tried setting up an aggregate device, but to no avail. Nothing I do seems to work, and since the problem is with Core Audio, any program used to catch the audio records gibberish. Is there a way to force Core Audio to use 48kHz in the terminal? It's not like the computer can't do it, as I get about 2 or 3 seconds of correct audio when changing the sampling rate manually. I just can't get it to stick!

    Seeing the exact same thing here. External digital source is 48kHz, and this Mac Pro Desktop will only stay on that setting very temporarily (for about .10 or .15 seconds) then it reverts back to 44.1kHz. Even if I don't have a signal or even a Toslink cable plugged in to the input.
    (I'm surprised you are getting 2 or 3 seconds of correct audio, when I'm getting about 1/10th that before it reverts back to the wrong sample rate. Maybe related to a buffer size option somewhere?)
    I have tried every known option to reset or re-configure this, and even to the point of creating a new user, resetting PRAM, resetting SMC, etc. I was going to try upgrading to 10.6, thinking maybe it was a 10.5.x problem, but now I'm not sure that will help.
    Had I the choice to set the setting to be 48kHz and lock it in, it should stay on that setting - (even if the chance exists that what I'm getting is not correct.)
    More often than not, I know what I'm doing more than Mac OS does, and I want to force it to do what it needs to.
    There really needs to be a "do it because I told you so" option for most of the Mac audio configuration system. This automatic "the hardware decided to do something for you" stuff is absolutely horrid for a system that is marketed as "Pro". A real "Pro" system would let me edit the configuration once, with the tool (text editor hopefully) of my choice, rather than attempting (and failing) to automate things.
    +1 for another instance of this being "a huge problem" and "it's driving me nuts!"

  • NI5922 High Speed Digitizer - Antialiasing digital input filter

    Is it possible to acquire a signal with the NI5922 board, without the antialising digital input filter?
    My application doesn't require the antialias protection, and It would be useful the avilability of the full Nyquist band.
    Thanks for your answers.
    Natalino Roberto

    There is no way to disable the alias-protection in the 5922.  The
    cutoff frequency of the digital input filter varies by sample rate, but
    the ratio is constant (cutoff freq = .43 * sample rate).  If you
    need a wider bandwidth, you will need to increase the sample rate- but,
    keep in mind that this may decrease your resolution, since the 5922 is
    a flexible-resolution digitizer.
    You can configure the type of the digital filter.  Refer to the
    documentation for the NISCOPE_ATTR_FLEX_FIR_ANTIALIAS_FILTER_TYPE
    attribute (Vertical:Advanced:Flex FIR Antialias Filter Type in
    LabVIEW).  You can configure a number of different options for the
    5922.  However, the option with the highest bandwidth is the
    default setting that I discussed above.

  • Why is my daqpad 6015 pulling down my digital inputs?

    I have a daqpad 6015 configured with all digital inputs. The input impedance appears way too low. It pulls down my signals to about a volt from 5V. I know the impedance is supposed to be 'high', the manual is very vague on this subject. Could the board be damaged? Analog I/O is functioning perfectly??? 5V is right where it should be...
    Help?

    Hello Wave_Man. Thank you for contacting National Instruments. The high impedance talked about in the manual is referring to the impedance on the input of the board, not the signal being input into it. A small impedance is actually preferred. What I think is happening is that your ground on your signal is different than your ground on you daqpad. When you connect them you should see 5 V. Please let me know if you have any questions. Have a great day!
    Marni S.
    National Instruments

  • Usb 6009 digital input

    Dear All!!
    With the following vi. I'm trying to receive a 5V signal in a digital input, using a usb-6009 device.
    I would like to use the 5 VCC supply, available in pin 31 of the same device and send it to pin 17, representing line0 of port0. During execution, 'm physically connecting and disconnecting  these pins in order to see the difference in a led indicator. Unfortunatelly, the led is always on, even if both pins are disconnected.
    Could somebody help me? I would be very pleased.
    Thank you very much in advance,
    Miren
    Attachments:
    proof.vi ‏38 KB

    Hi Miren,
    "the led is always on, even if both pins are disconnected"
    RTFM?!
    They use open collector inputs with an internal pullup resistor of 4.7k, so you actively have to pull down the input to GND to see a difference...
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

Maybe you are looking for

  • Cinema 20" - VGA Vrs DVI

    Ihave just ordered a Cinema 20", IOGEAR MINIVIEW SYMPHONY KVM and Mac Mini. The KVM ordered (the only one Apple offers at their store) is VGA. Has anyone done a side by side comparison VGA vs DVI? I'm debating on whether I should order the Iogear KVM

  • How material will determine

    Hi experts I wanted to Know how a Particular material will be get planned so that it has to generate specifcally  planned order only.it should not generate purchase requistion. Regards Sandeep

  • Vault in 1.5 - a copy of your "referenced files"?

    In 1.5, as I understand it, your image files don't have to be in your Library, they can be stored where you like. In that case, when you make a backup via Vault, does it include copies of your images, or just the metadata describing where they are?

  • Still need help with iChat

    Hello I have tried everything sugested in these posts to get iChat to work through my wireless router Dlink DI-524. I have even contacted apple care (waste of time as far as I am concerned) I have filled out the folowing and pasted it here with as mu

  • Beamer connection problems with iPad mini 2

    When I connect my iPad mini 2 with a beamer via HDMI, only videos will be presented, but not Power Point presentations or any other content (desktop, apps, etc.). What can I do?