A SIMPLE change: reading a digital line instead of 4 ports

Hello

I found this application (see sippet) who read four digital ports and then add them in table 1 + and every time the sum of the array is 0.

I'll just check on a digital line. When I change the Assistans DAQ to digtial line entry port, it turns into a Boolean value. But how can I change the settings I only compare the line including propely is 1 or 0. ?

Thanks in advance.

If I understand your question, you can replace only the elements of the array add and equal to 0 with just one or elements of the array.

Tags: NI Software

Similar Questions

  • Read the digital input, update display counter, email me info counter file

    Hello guys,.

    I would like to create a CVI program to read a digital line connected to an external switch. View the number of times that the switch has been pressed and save the data to a csv file. I'm eble to create some tasks of DAQmax project and I also created a text box (do not know if I have to use a textbox) to display the number of times is based on the switch. I just can't understand how to write update the text box, or save to a file. Any help will be greatly appreciated.

    -Rookie CVI.

    Have you tried the example program? This will show you the necessary elements which must be added to the project. In particular, you will not find any item in the menu Instrument linked to the Commission and no component in the project tree (well, actually samples use NOR DAQmx IO control instrument, but it's just to populate the controls in the UI for demonstration purposes, normally programs do not have need of these components to work).

  • DAQmx Read simultaneous calls on the same digital line

    Hi all

    I use v10.0 LV 32-bit on Windows 7.

    I use DAQmx Read (in a task) to check the value of a digital line. Is it OK to do this in two different locations in a program at the same time for the same digital line? Or I have to put a wrapper around reading to force operations to be sequential?

    Thank you
    Zola

    When you need to expose the capabilities of resources to multiple areas within a project (expand the scope of a resource) it is common to wrap the resource in an Action engine to encapsulate the resource functions. See here for an example of a 'Module on resources' material and a discussion animated about how this code help development construction and avoid resource conflicts.  If you have not read famous nugget again – he of Ben is a link in my tag "Required_Reading".

    Or more directly.  Yes, you should encapsulate these readings DAQ to avoid suspended

  • SMU-6556 - how to control the rise in digital lines (hsdio) time

    Hello

    Is it possible to control the rise in digital lines SMU-6556 time?

    Even in a low frequency 10 kHz signal rise time is 2ns.

    TKS,

    Hello engfpe,

    The SMU-6556 is a 50 Ohm system, which means that the output is source series finished to be 50 Ohms and all our cables and accessories are 50 Ohms.  With this configuration, regardless of the flow of data, you should have a clean edge up or down, regardless of the data rate. The quality of the production (edge up or down) on your device is related to the adaptation of impedance of your cables.

    The SMU-6556 cannot adjust the speed of scanning by itself.  However, you can insert simple passive components to do it for you.  I have attached below the images.  The first is a diagram showing a way to slow down the edge.  The second is the a waveform simulation showing the rate of original edge before it slows down and the edge of idle.   This simulation is not the SMU-6556 but rather a generic digital output for concept.  In the schema that R1 is set on 34 Ohms because U1.8 has the 16 additional Ohms on the inside.  TL1 is the output of 50 ohms simulating the cable on the SMU-6556.  R2, R3, and C1 are components, you can insert after the SMU-6556 twist before moving your device/cable.  In this configuration from cable to your device is TL2 which is also 50 ohm, but it could be another impedance in which case you would change R3 to match.

    You can see in the attached images, you can slow down significantly the edge with this configuration by altering the C1.  I hope this helps.

  • Zoom function disabled so can't enlarge the text on the main screen hard to read the subject lines of e-mail messages, looks like 6 pt type size, activated after the opening of e-mail.

    The text size is so low in the views of folders for primary e-mail that it is very difficult to read the subject lines of emails. I think I remember that earlier versions 'Zoom' has been activated and you could adjust the size. Looks like that the size is set at approximately 6 pt type. Must be at least 12 points. Thanks, C Sanders

    I thin you will find that it is this add-on you are looking for https://addons.mozilla.org/en-us/thunderbird/addon/theme-font-size-changer/

    Installation instructions http://chrisramsden.vfast.co.uk/3_How_to_install_Add-ons_in_Thunderbird.html

  • Can PCI 6602:How I use digital lines of the Board of Directors and at the same time to generate trains of pulses by using a meter?

    Hello!

    My problem appeared when I tried to update my traditional NOR-DAQ legacy code to DAQmx.

    I use 2 meter (meter 5 and 7 meter) on PCI-6602, to generate trains of pulses, as well as the lines of e/s digital port 0 (the form lines from 0 to 7). What I do in my request, it's that I'm starting to generate the pulse train on the output of 2 meters and after that I play with the State of digital lines.

    Traditional, it was no problem to use the meters and digital lines at the same time, everything went perfectly, but in DAQmx, is not possible.

    What's happening: I start generating train of pulses on the output of counters, no errors, but when I try to change the State of a line of digital port the generation of the pulse train is stopped. What happens when I start the task associated with the digital way.

    My question is: is it possible to create a channel on digital lines without changing the channels created for meters?

    Another thing that I managed to do with the panels 'Measurement and Automation Explorer' and Test for PCI-6602, is basically the same thing, I generate trains of pulses on the output of the 7 meter and try to start a job on the digital line, but I get an error:

    "Error-200022 occurred in test Panel.
    Possible reasons:
    Measurements: Resource requested by this task has already been reserved by another task.
    Device: Dev4
    "Terminal: PFI8.

    On the contrary if I use the counter 0 or a counter 1 to generate trains of pulses I encounter the same problem.

    What resources are used by 2 to 7 of the PCI-6602 card counters and the counters to 0 and 1 do not use?

    Thanks in advance for any answer!

    Ciprian

    After doing some real tests on this device, I found that it is a normal behavior for the jury of 6602.  This is because when you start a task digital all 32 lines are configured for digital i/o, so it replaces your meter operation.  The article below the link explains a little more on this subject.  You must start the digital task before the task of counter to use the features of both in your program.

    2 meter and above will not work correctly when you perform digital i/o on NI 6601 or 6602

    http://digital.NI.com/public.nsf/allkb/43F71527765EEC3886256E93006CD00C?OpenDocument

  • How to read the digital I/o using PXI-7813R?

    Hi guys,.

    I'm reading a digital signal by using one of the ports in the PXI-7813R. The 7813R has 5 digital ports or 39 lines for playback of digital data. I have connected a SCB-68 as the physical hardware interface for 'plug-in' a 5V adapter, which will act as my signal at the moment.

    After you configure the PXI via MAX, I wrote two codes, one for my host pc and the other to control the FPGA through the host. But I think, I can have more complicated or completely gone in the wrong direction.

    Any help in the drafting of these codes would be well appreciaetd.

    Thank you, Anoop

    You need the FPGA to sample the signal how often you expect the device to send the data.

    If you write your data in the FPGA for the DMA, then on the side PC you just have to read the DMA.  I like to think of the DMA as a queue.  It makes it easier for me to understand how it works.

  • detect digital lines

    I was wondering if it would be nice to remove the BVRP Software program to detect digital lines from my windows vista system.  It comes up that there is a problem with compatiablity when I restart count it.  I don't remember installing this and don't know if it is a program that was installed when I got the computer.  I have the digital line detect and the netwaiting programs of BVRP software, inc.  Any help would be greatly appreciated as I tried to speed up the computer.  Thanks in advance for any help.

    brighteyes4291

    BVRP software modem because their phone tools are often bundled with a new computer/modem with a built-in modem.  You can safely uninstall both programs you mention, but I'm not sure you'll see changes of speed on the computer.  The digital detection program is there to inform you if you connect your analogue telephone modem to a digital telephone line. This can damage an analog modem.

    HAL
    --
    HAL Hostetler, TCE
    Engineer senior/UPDATED--MS MVP-Print/Imaging - WA7BGX
    www.kvoa.com - KVOA television, Tucson, AZ.
    Live Hot Licks - www.badnewsbluesband.com

  • navigation keys began to skip 2 or 3 lines instead of only 1

    Key problem of navigation.

    The top and bottom navigation keys began to skip 2 or 3 lines instead of only 1, on my Vista and XP computers. Is it possible to adjust these settings?

    Hi Richdag,

    1. do you use same keyboard for two operating systems?

    2 have you made changes to your computer recently?

    3 are you facing this problem with a particular application?

    I suggest you to follow the steps and check if it helps.

    Method 1: Clean the keyboard and check.

    Method 2: Connect another keyboard and see if it helps.

  • change the color of line based on the value of column 5 Apex in the classic report

    Version of the apex 5.0.0.00.31

    Standard universal theme

    Page theme default template

    Classic report

    Foldable report template

    Hello

    I know this question has been asked several times here, but I'm working on 5 Apex and need to know the correct way to do it in this version.

    I need to change the color of the text of the entire line (no background color) based on the value in one of the columns of the classic report. I have just two conditions, if the value of column = Yes, color should be red, otherwise it must be green.

    I am new to jscript and css, so appreciate if someone can tell me the solution with steps.

    I have already checked this link that changes the value of the column, need to do something similar to the whole line.

    https://tylermuth.WordPress.com/2007/12/01/conditional-column-formatting-in-apex/

    Hi coolmaddy007-Oracle,.

    Here's an example set up on the apex.oracle.com according to the specifications you gave: https://apex.oracle.com/pls/apex/f?p=35467:1

    Version of the apex 5.0.0.00.31

    Standard universal theme

    Page theme default template

    Classic report

    Foldable report template

    Here is how it is done:

    Create a dynamic action with the following specifications:

    Name: Give the appropriate name

    Event: After refresh

    Selection type: region

    Region: select your region classic report

    Condition: No strings attached

    Action: Run the JavaScript Code

    Fire on loading the Page: Yes

    Code:

    $('td[headers="JOB"]').each(function() {
      if ( $(this).text() === 'MANAGER' ) {
        $(this).closest('tr').find('td').css({"color":"red"});
      }
      if ( $(this).text() === 'SALESMAN' ) {
        $(this).closest('tr').find('td').css({"color":"green"});
      }
      if ( $(this).text() === 'CLERK' ) {
        $(this).closest('tr').find('td').css({"color":"blue"});
      }
    });
    

    NOTE: Download the selector appropriate for your knowledge $('td[headers="JOB"]') case using firebug/browser development tools.

    Items concerned: leave blank.

    PS: Changed the example to change the color of text instead of the background color.

    I hope this helps!

    Kind regards

    Kiran

  • change the width of line managers

    Hi friends,

    How to change the width of the line of all the images for example: framework, framework of the ellipse, polygon frame rectangle.

    Kind regards

    Barro

    Not a good solution, Kasyan. If the weight of the race is already '1', it won't change!

    Use it instead:

    var doc = app.activeDocument;

    for (var i = 0; i)< doc.allpageitems.length;="" i++)="">

    doc.allPageItems [i] .strokeWeight += 1;

    }

    This will change the weight of the race of all images, as requested.

  • When you type an e-mail, when I go to the next line, it jumps two lines instead of a single line. How can I fix it?

    I was typing an email and when I would go to the next line, it will skip two lines instead of a single line. How can I fix the problem?

    I'm not sure that you understand the problem. Could include a screenshot of it just after what happens?

    If you need help to create a screenshot, please see How to make a screenshot of my problem?

    Once you have done so, attach the file to screen shot saved to your post on the forum by clicking on the button Browse... under the box to post your reply . This will help us to visualize the problem.

    Thank you!

  • Simple changes PDF - in the overview, or other application?

    I need to make modifications simple PDFs on a fairly regular basis. Generally, these are only:

    -Remove a page from the pdf file.

    -Join two PDFs (one after another).

    I don't need features beyond those such as annotations, etc.

    Can I make these simple changes in preview in El Capitan? I saw a quick look at the menus options to accomplish this.

    Or y at - it simple freeware that anyone can suggest?

    Try to preview first

    The basics of the Mac: Preview app views and retouching images and PDFs - Apple Support

    See also external link

    pp-part http://www.Macworld.com/article/2863923/the-many-superpowers-of-apples-preview-a - 1.html

    pp-part http://www.Macworld.com/article/2865527/the-many-superpowers-of-apples-preview-a - 2.html

  • Default settings for digital lines? USB-6009

    Hi all

    I use the digital lines on my USB-6009 to control normally open SSRs.  When I turn on the system, I would like to have the digital lines on the USB-6009 case to automatically configure themselves to be output digital lines put in position "Low", so I don't spend on my SSRs until I gave the command.  Is there a way to do this?

    Thank you.

    Cannot set default on 600 x Renault States, unfortunately.

    Do a genius on the hardware side, knowing the lines are pulled high on the acquisition of data is initialized. and if certain combinations of outputs produced a dangerous situation, you must stop to happen in hardware.  Good practice to do so anyway.

    Another option is to use an analog output, those can pump a little more power than otherwise to 1V, and do what is usually not sufficient to turn of SSRs.

  • Read a PFI line in LV2009?

    Is there a screw (2009) which will allow you to access the value on the PFI lines live?  See what they are?  The wired customer lines PFI to read a logic level under certain conditions.

    clint100,

    I think that there is some mixup nomenclature, let me give you my point of view to see if that clears up things.

    While you can't 'read' the PFI line, it can use an event on this line to trigger or sample (see the link a few posts to the top) to do something, you might be "expecting".  I also see why you want to read or query the line to control the flow of your code, if you were on a microcontroller or FPGA you would be wrong.  The traditional DAQ or DAQmx driver is more abstract than that and will want to take this entry as a trigger, or a sample of clock.

    That being said, there is a bagillion to the examples in the example finder to help you configure that.  Otherwise, I may be completely wrong interpret the sentence you put in your message, anyway, good luck!

Maybe you are looking for

  • Which hard drive MacBook Pro 2012

    Hello I have Non - Retana MacBook Pro 2012, it has its default 500 GB hard drive, it is too small and too slow. I have found that I can put a 2 TB in current housing and a second in the SuperDrive slot should I want to. But my Question, above all, th

  • Portege A600 - lack of temperature probes in Everest and overheating

    I have 2 identical A600.On of them display 6 temperature sensors - for example on EverestProcessorBase 1Core 2GMCH1GMCH2Hard drive On the second:ProcessorCore1Intel Core 2 processorHard drive Tip:the other is overheating, always above 80 ° C (the fis

  • Upgrade to Snow Leopard v1.0?

    Hi, I'm on OS X V 10.6.8 (imac 11.2, Safari 5.1.10) and get the Apple upgrade messages to Mac App Store update for OS X Snow Leopard v1.0. I have I would be very grateful for the answers to the following qustions: -. Snow Leopard is still supported I

  • HP Compaq Small Form Factor DC: DC7800 graphic drivers

    I have a new\second hand hard drive (320GB) and I had to reformat the hard drive of 74 GB. In the instructions given to me when I first bought the computer - after formatting the drive, I was instructed to download a graphic driver for DC7800 and yet

  • Pavilion g6: 2 left usb port of the computer hp laptop pavilion g6 does not

    2 left usb port are not work ing after 7 (64 bit) laptops.windows formatting has loaded.two usb ports on left side doesnot answer