Limitation of the digital inputs in full only

Hello

I'm using Labview 8.5.1 and have an entry digital 'button' on my front. How can I limit what the value that is sent to the block diagram is an integer only? I put the display on the Panel before to not show any decimal places but he always sends a number to six decimal places for the block diagram, but my program needs an integer value only.

Thanks for the help

Hi thomas_p,.

change the representation of an integer. Right-click on the control in the blockdiagram, then select 'representation '. Select a type of integer, maybe I32.

Mike

Tags: NI Software

Similar Questions

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

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

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

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

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

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

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

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

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

  • How to use the digital inputs? (PCI-6010)

    Hello

    I have a PCI-6010 card and I tried to use a pulse generator in one of the channels of entry without success, I m using panels of 'Test' in MAX.

    How can I configure dthe hardware to make it work?

    Thank you

    APOs instalar a ultima versão labview refazer tudo bem mouse conexoes as w.

    Any forma, obrigado pela a definition.

  • How to implement "inferior to" by choosing functions based on the digital inputs

    I have a 1 d table and I would like to divide what is happening with different values

    I made sure the table shows an element, with a scroll bar to change the item

    The picture is random

    When the element is< 512="" i="" want="" a="" to="">

    When the element is 512 > I want B to happen

    I played with the structure of the case, but what confuses me, is the least above and below that fucntion, its release is a Boolean

    If it changes anything I borrowed the output to a multiply functino

    Thank you!

    Choose a.  If the value is less than 512, then the Boolean value is True.  Put the code for A in the case of true.  Otherwise, it is wrong to put the code for B in the case of false.

    One thing, you're not telling it what to do if the value is equal to 512.  Do you want A or B?

    I recommend you watch the LabVIEW tutorials online
    LabVIEW Introduction course - 3 hours
    LabVIEW Introduction course - 6 hours

  • Digital inputs only noisy when the laptop is plugged

    I had problems with loops of Earth and power supplies for laptop in the past.  But it is the first time I got it so wrong that it makes the digital inputs which are both related to the ground and the debounced software cannot be used.

    It is NOT material OR.  It's a DT9816 of data translation, a USB DAQ Multifunction with small budget.   The laptop with the problem is a refurbished Dell, with a very obvious not Dell PSU who throws to the top of the warning in the BIOS and scales back from the processor.  (Danger Will Robinson!)

    The problem with the digital entries shows only upward on the Dell when it is plugged into a power outlet.  On all other machines and with the printer unplugged Dell, digital inputs floating.  But those that I have attached to the Earth is rock solid and work very well.

    What surprises me is more than the noise is so bad that even tied to the ground with a half second debounce, I get always false triggers.  I have not brought to power, but considering that it sounds really loud, I suspect that it looks pretty bad.

    I think I'll try a powered USB hub.  If this does not work, then I think that the customer will have to replace the power supply on the laptop.

    However, I was surprised.  I used a lot of USB DAQ hardware, and it's the first time I've never seen a problem like this.  The NI USB 6002 I tested on this same laptop does not seem to show the same problems.  Even if it is true that this is a different software and the test was brief.

    I'm curious to know if other developers have found something similar in the past.

    I can confirm that using a USB hub external powered eliminated the problem of noise in the original post.

    Interesting things.  I had not seen this before.  Now, I wish I had again the NI DAQ USB I had here last week so I could test that.

    Looks like I'll use a hub powered on this project.  But I think I will recommend always replace this power.  Although a lot of noise coming from the power supply, probably isn't good for nothing plugged it... or even sitting near him.

  • 3 digital inputs for the structure of the case

    I'm in the early stages of development a VI that will monitor 3 digital input lines. Only a single digital input will be active at any time. For each digital input, a VI runs under different.  Currently, I use 3 structures distinct case (attached).

    Is it possible to use a case structure (3 cases over a default value) to monitor three digital input lines?  Specifically, how to convert Boolean data (digital input lines) to a data type recognized by the terminal selector?

    Thank you

    Bill

    Adding to my post from yesterday.

    In defining an enum for each possible value with a descriptive name, it is easier to follow what the code is doing.

    The attached VI (7.1 LV) shows how I could manage three types Boolean controlling a press to ensure that security is set, and the part is in place when the operator chooses to activate the press.

    This approach allows you to treat each of the 9 possible States only.

    Of course, this approach is not feasible for more than 5 bits (Boolean) (unless you have an intern to the no, not me!)

    Ben

Maybe you are looking for

  • Satellite P10-304: 2nd recovery disk does not work

    I'm selling my laptop. Went to use recovery of original product CD provided along with the PC. 1 disc worked OK - unfortunately 2nd disc (undamaged) stops at about 60 percent and gives the following message; error number 437Can not read the fileversi

  • Re: Cannot find Drivers for Satellite C660

    I did not find his momory, bluetooth card reader drivers and the card to my laptop Satellite C660-A235 part number: PSC0SV-02W01JAR.Please can someone help me

  • How to save a model?

    H

  • I can't read thermocouples on the PXI-6225-series M 1 connector.

    I'm reading 30 measures by thermocouple in differential mode.  I use AI0 as the CCM.  Attached are the connections that I use.  Negative contributions all relate directly to the GND AI. I have no problem to read the thermocouples in slot 0 (AI1 by AI

  • Execute while the left mouse button is pressed

    Hi all. I'm a super newb to Labview, but not to programming (who for years, C++ etc...) I have a project that I'm trying to do that I hope someone can point me to some tutorials or something. The idea is that I want to be able to press the left butto