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).

Tags: NI Software

Similar Questions

  • How to read the digital square wave pulses

    Hello

    I recently bought a blue-white meter. I have successfully read the digital square wave from the sensor. However, I face a problem to calculate the flow rate and the total volume of liquid. Can someone help me with this?

    Technical data of the flowmeter can be access to the http://www.blue-white.com/Products/ElectronicFlow/MicroFlo/80000-406_microflo.pdf. And the calculation can be found on page 9. I use NI9401.

    Thank you


  • PCI-MIO-16-1 shows the digital inputs 1-7 on, without same cable connected

    Max, my PCI-MIO-16-1 shows the digital inputs 1-7 as having entries of tension without same cable connected to the Board. No amount of spin with her (to the MAX) seems so he can act correctly in input or output mode. It's true, there are voltages on these pins. If I connect my cable (to a TBX-68 block), I see that it has on $line0 (on port0) 0v, 5v on line7 and 2, 5V on the rest. Trying to put these lines to something else in MAX seems to do nothing. (I also can't control the OD, either.)

    This card has tried to get a couple of have Weiwei at high speed. Now that I'm branching out, I found a strange behaviour. Of course, I tried to restart and turn off the computer and turn it back on. Automatic test MAX Returns instantly with a message "transmitted", that gives me hope, even if I don't trust the speed at which it seems to perform the check.

    I'm a complete noob at this stuff. Is there something obvious that I might be dominant? Is there a way I can test more deeply that the card works as it should?

    The open connections to the TTL inputs are usually detected as logic 1. You are not testing properly. Connect an entry to two gnd or + 5V. Don't let them ever floating.

  • How to read the analog inputs of one Board of R for (PXI-7851R) series

    You can guide me please with the steps for reading of the analog inputs of a series a. card I use as the target fpga PXI-7851R.

    Have you looked at the examples provided with LabVIEW? There are examples showing how to read the analog inputs.

  • How to count the digital inputs of the sensor

    IImsmd MicrosoftInternetExplorer4 normal 0

    I use a PCI 6221 OR-DAQ device and I want to count the total number of times that a sensor is activated. The sensor is connected to a digital line.

    Tadhg salvation,

    If everything you want to count the number of times where the sensor is activate, the best way to ensure this is to use a line from the meter, in the case of the 6221 try pin 37, Cnt 0 Src/PFI8. And take a look at the example of counting code digital Events.vi that you can find from the Finder example under Hardware Input and Output > DAQmx > Counter measures > County Digital events.

    Alternatively, if you use a digital line, just read the line, and if the sample is true variable increment held in one register at offset, similar to the Count.vi DI attached

    I hope this helps.

  • update cluster when the digital input

    Dear all,

    I have a cluster with digital controls and control chain. How can I change the value of the digital command when you type.

    Thank you

    Please see attach file (using LV2015)

    Hi sukichan,

    Check out the related code.

  • Reduce the period of sampling of the digital inputs of NOR-USB-6009

    Hello

    I need to read a line of digital input in the NI USB-6009 using NOR Express 2013 Signal box. I selected 1 sample (upon request) as acquisition mode. I need to define a smaller sampling period as 1 MS, but it gives error too short sampling period: "the current sampling period is too short.  Please specify a longer sampling period. ».
    I do not understand the reason for it and a way to slove this.

    Any help would be greatly appreciated!

    Thank you!!

    The 6009 doesn't have a clock that you can set for a sampling period. According to the specifications, the digital I/o is software programmed - sample on request you use now. I'm not at all familiar with SignalExpress but I don't think that you can find near a reliable khz sampling frequency on Windows or any other os non-deterministic.

  • simultaneous monitoring of the digital input lines when executing digital writing tasks

    I'm writing a multithreaded application in C on Windows 7, using the 9.6 DAQmx API and device USB-6509. This requires that we constantly monitor several lines on the 6509 for entry, digital using the change of the device detection feature. You must also write the digital output without having to stop monitoring the input rows. It is very important that the input rows be monitored continuously for the duration of the project.

    In the DAQmx manual reading, it seems that it is impossible to make a digital reading as well as a digital writing occurs, even if these tasks are performed in different threads. (The same I understand, that it is impossible to have several tasks of digital entry running simultaneously.)

    It seems that it would be possible to launch the task for reading (configured with the change detection), to pause playback, start the writing task, pause the task of writing, and then re - start the task of reading. But - and this is the important part - for the duration of the writing task is running, is it possible to configure it to the task of reading will always monitor the lines, even if it's just stores the data in the buffer for these periods? The key is that the data will be lost.

    Thank you

    Danielle

    Each channel is independent. If you can get the input data that you export a value. You need not make a break each task. The two tasks are parallel.

  • Prevent the digital input

    Hello

    How can I avoid digital input from the user in a form (text) PDF field?

    I want the user to be able to enter any character, except 0,1,2,3,4,5,6,7,8, and 9

    Without displaying an alert or a sound, I just need any input digital diseable.

    Thank you.

    Enter this code in the script custom typing your text field:

    If (event.change) = event.rc (/ \d/.test(event.change)) == false;

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

  • Question of the digital input USB-6009

    Hello

    I use USB-6009. I have problem in Input.I digital did not connect anything on all channels. But all of the DI/O channels generate 5 volts. And I tested the DI/operating system in the Test Panel also. All digital inputs are high. How I use it? Please suggest me the solution.

    You're the one who said it was generating 5V. And I said that a fine should be detected as a logic one. Connect a gnd input.

    When it starts, all of the default value of I/O at the entrances.

  • How to set the digital image to display photos in random order on a picture frame digital df730

    My digital photo frame displays photos in sequential order. How can I change in a random order?

    I solved the problem. Photo selection and then pressing the key on human beings to control hand symbol to the top of the configuration menu.

    Then, I could choose slide show with shuffle. Unfortunately the user guide does not explain this, or online information.

  • the value of the digital inputs to change the field

    Hi all

    I have an edit field that has a digital text filter that only accepts phone numbers. Users have the choice to load these numbers from address book or direct entry.

    I used the digital filter to allow only numbers. .

    But when I tried to load these address book.  with editField.setText (phoneNum); It is to throw IllegalArgumentException.

    How to set digital inputs to the editField?

    Hi thanks for all your entries!

    My issued are resolved. I used BasicEditField aulieude EditField to solve this problem. the basicedit field allows the digital text and it solved the problem.

    Thanks for all your interest...

  • After the 2015.3 update, which is impossible to import AVCHD file

    I can't import AVCHD (.mts) files. Yesterday everything worked fine with CC2015.2.

    Published by Kevin Monahan

    I use the latest version of Windows 10.

    Copy AVCHD file and reissue of links to new solved my problem. Always her strange that you needed to do.

  • Problems with the digital input/output

    Hello

    I have a little problem with my card PCI-6143. I would use two connectors digital one as a starter and one as an output. Now, I have the problem that I do not know how I address them. The input works as I want but not the output.

    As an example. I call my channel output on this name: Dev1/port0 / line0:0.
    With this call, the application works very well. If I change the output channel to Dev1/port0 / line4:0 I get an error that the values can be read and 0 and 1 are valid values.
    I hope that the call is right, I wrote that out of my head.

    My questions are. Is it correct to call a single digital channel with this name?
    I'm not sure because I do not understand what these means 'line' and if I allocate really single channel or more.
    The second question is, can someone give me an example of how I assign two digital channels (how to address them)?
    I know it's maybe an easy question, but I can't seem to get it corrected.

    Hope someone can help me.

    Best regards

    The syntax that you use is intended to select several channels: the numbers are the initial and final channel in a subsequent channel list. Thus, written Dev1\port0\line0:4 means 5 lines are included in the read/write (FWIW written 4:0 has the same effect). It is redundant but good writing line0:0, which means a single line, but you can write to Dev1\port0\line0 which is simpler.

    This is a help page on this topic.

Maybe you are looking for