Digital divide entry, 1 3/4, 1 11/16, 7/8 etc...

Is there a built-in way to convert integer to fraction notation (enterd by a user on FP) is approximate double precision value?

For example, if the user types '1', then the value double precision is just 1, if they type ' 1 11/16 "then the value would be interpreted as 1.6875.» By default, labview ignores non-numeric data in a digital control also type ' 1 11/16 "does nothing.

I know that I have this brute force using a chain control, testing a space after the first integer parsing the numbers before and after a ' / ' or ' \ '.. and so on, but I was wondering if there is an easier way, in a more elegant way to handle this.

Simple implementation minute.

Very rude.

Could add tabing, events and verification of limits.  Should do a typdef and add functions for this typdef.

Tags: NI Software

Similar Questions

  • How to start collecting data through digital triggering entry user GOLD

    Hello

    I have a vi with which I would like to collect data. It is configured to start to perceive when the start trigger is detected, which works perfectly, but I would also create a user can start the process of data collection by pressing a button instead of apply the trigger. I am at a loss on how to do it. I thought that the structure of the event would work well; However, the relaxation has no Boolean value I can associate it with. If that were the case, I could then perform a logical comparison between the trigger and the button to determine if the collection of data should begin.

    So, how can I represent a trigger activated as a Boolean value? Or is there a better way to reach my goal?

    I think I can make things clearer by expressing in linear programming that it is, I'm trying to achieve:

    If (trigger == true: button == true) {}

    begin to collect data

    }

    I have attached my vi where someone feels useful.

    Hello

    You're right, 6229 USB is certainly not compatible with NO-Sync. However, you should be able to do with the DAQmx driver functions.

    If I understand correctly, you want to generate a graph of your analog input and have this file based on a triggered event entry. A line using PFI will not work for this particular function, but you can create a task digital input instead and pass the thread to a D e/s instead of a PFI line line. You can then use for/no-write the analog input file using a case structure depending on the State of the digital line.

    I hope this helps! Let me know if you have any other questions.

  • Audio input on mac (MacBook Pro (retina, 13 inch, mid-2014) which has a single audio port for headphones and number of PORT of ENTRY.

    How to do on my MacBook Pro (retina, 13 inch, mid-2014), which has only a headphone audio input port? Do Garageband, or Preferences/audio, or Audioand MIDI or what?

    Connect an audio interface to a USB port to have an audio input, or insert a divider entry in the headphone port. You need additional hardware to have an audio input.

  • Entry of data in sequence through the "tab" key

    Hello

    So I created a lot of enum, string and digital data entry fields and they are all placed in the front panel.

    The only problem is when I start the program, I want the cursor position by default to be in the first field. After that, if the user presses the "tab" key, it should go to the next button and so on.

    In my code, it's fairly random, and I don't know of any way to change the order/sequence of fields so that the "tab" key moves the focus to the field next where I want it.

    Any help?

    Go to Edition and select "Command Tab" to set the order of Tab for your orders on the front panel.

  • Digital output crosstalk PCI-6115

    I am trying to create 8-bit specified output signals by various software-created the waveforms that are repeated indefinitely. A typical example of this waveform is a sine wave of 280 Hz. The configuration is as follows: (1) Ctr0InternalOutput used as the clock source. (2) clock frequency is 50 kHz. (3) the connections established with the connection of the terminal of the wire SCB-68 box.

    I use an oscilloscope Tek MSO 4104 to 1 GHz (4 analog inputs, 16 DIO - 8 inputs are used) to monitor the digital signals of the 6115, either with analogue or digital scope entries. I was able to generate signals, but the problem I see is a systematic corruption of levels individual bit by other bits. For example, the MSB (that changes less often) shows HI-LO or LO-HI transient when you use the input OID field. With analog inputs range, this is demonstrated by spikes of noise of low-amplitude on the line given. All these transients are synchronous with the edges of the transition from other signals.

    My guess is that it is some kind of problem termination or loop Earth with DIO 6115 connections. I first tried using a simple tablecloth (main 8 more on the ground) cable. I got some improvement by replacing it with the individual lines of 50 ohm RG-174/U, linking each coaxial cable to the digital earth nearest ground terminal. Then I put at the end of the output of each line of coaxial cable with 100kOhm and 100pF (parallel) to his shield to the ground. These measures improved the signals, but do not eliminate the problem. I'm looking for advice on how best to configure the connections of DIO or condition the signals.

    I found myself in the land of P0, P6 and P7. This reduces crosstalk to acceptable levels. I do not pretend this is a unique solution, but the grounded all the shields of coax has not produced as net results. I found online OR hard to find, and inadequate documentation to discuss these issues.

  • Counting digital pulses

    Hello everyone,

    I need to count the pulses of a digital signal. I looked at the examples associated with it, but all seem to use a signal acquired by a digital counter entry. I already have the signal in my computer, so using a device entry makes no sense. And the library of functions, I looked but found nothing. What features LabView should I use?

    Thanks in advance for your time and help,

    Pablo Concha

    You can go there. 8.2

  • digital reading correlated and static

    Hello

    I use a CDAQ-9172 chassis with a 9423 module and a module 9425.

    Can I make measurements correlated with the static AND 9423 of reading with 9425 module at the same time?

    I think to create 2 separate tasks for it.  A task for corellated measures and one for static electricity.  Would this work?

    Thank you

    Dan

    Altogether.  The cDAQ-9172 you can have 1 correlation digital special entry, 1 digital output correlated with task and any number of static digital tasks, at the same time.

    On the cDAQ-9172 modules in correlated digital task must be in slots 1-4.  There is no restriction of slot on the static digital tasks.

    Just like the heads-up, 9425 module can currently * only * do entry static, but that looks like what you want.

  • Why the PSE destroy Exif entries?

    Someone looking at my pictures in Flickr asked me why I was shooting in Auto mode?  I didn't--I'm used to shoot in Aperture priority.  Well my Exif was not showing that.  I called the Support Canon technique and they could not give me an answer.  So I kept digging.  I keep all my original images and put the ones I edited in different folders.  So I took one of the original images and of course it shows that I'm shooting in Av and then watched the version that has been published in PES 10 and admission fire mode was missing.

    So I took the original and then used Canon Digital Photo Professional to view the Exif data and took a screen shot (below).  Then I opened the same file in EPS 10, made an auto levels, registered under a different file name, Canon DPP to display Exif data and took another screenshot.  You can see below that the entrance of "Shooting Mode" went to the edited photo, as well as several other entries exif as a measure of light, White Balance, etc.

    PES 10 Bug?  If so, what other versions?  Thank you.

    Image Exif Original.JPGImage Exif After PSE Change.JPG

    Looks like this has been a problem of 1 day (see link below).  The link says it can be fixed by using ExifToolGUI, but why should we have to go through this work because many of us have hundreds or thousands of image files.  Then we download them all again at our photo sharing sites.  Adobe should solve the problem - when adding new tags for metadata (for example, "Software" and "Easy") simply write on all other metadata tags they read in!  What they are doing is simply bad programming.

    http://forums.Adobe.com/thread/367188

  • Get the number of whole digits in BigDecimal

    How can I get the integer digit of the Bigdecimal object? I tried to implement a logic using the BigDecimal class intValue() method like below
             BigDecimal bigDecimal = new BigDecimal("1234567890.2147483");
            int integerpart = bigDecimal.intValue();
            int digits = integerpart/10;
            int count = 1;
            while(digits != 0) {
                digits = digits/10;
                count++;
            }
    
            System.out.println("Number of integer digits : " + count);
    But if the value has more then 10-digit intValue() output is incorrect. Any suggestions?

    Thanks in advance

    You can use the same approach that you already have, the problem is that int is limited to 9 digits. For this example you might have long used instead. However, a better solution is to use BigInteger

    BigDecimal bigDecimal = new BigDecimal("-12345678901234567890.2147483");
    BigInteger digits = bigDecimal.toBigInteger();
    BigInteger ten = BigInteger.valueOf(10);
    int count = 0;
    do {
        digits = digits.divide(ten);
        count++;
    } while (!digits.equals(BigInteger.ZERO));
    
    System.out.println("Number of integer digits : " + count);
    

    prints

    Number of integer digits : 20
    

    Note: sound is negative and too big for a long time.

  • Formulas of the spreadsheet - data entry

    APEX 4.2.1

    When you try to duplicate a typical app focused on the worksheet, the data generally fall into 2 categories:-l' entry user and formula (VLOOKUP, cells A1 + B1 = C1, etc.) generated. In a report/list, there are a few options to display the columns calculated virtual a) 11 g or b) views containing the formulas as SQL expression as columns.

    On a form page, if I want to show the computed fields as display only the page elements that are dynamically updated with the corresponding entry fields, one would use APEX dynamic action (change, set the value, etc.).

    However, this means that the code for the "formulas" is duplicated in the table/view definition and DA Apex leading to maintenance problems when a formula must change.

    Is it possible not to duplicate the code/expression formula and make available both the DA and the report?

    Thank you

    No would you put your formula in a package function, then when querying data by using a view - the function is used. and when the Calc display on the fly using the DA, the function by an action of pl/sql?

  • wildcard characters and thesaurus entries

    I have a few keyword searches that the company wants to return several results, but currently they are fit only on 1 result.
    So for example, if a user is looking for the part number 123, they want it back 1234, 12345, 12346, 12347 12348, etc.. But it is only part 1234.

    Is an entry in the thesaurus of the best way to handle something like that? Is it possible to trigger a generic search using a thesaurus entry? Because a search of 123 * returns the greater part of what is wanted.

    Ah yes, I thought you meant, you can configure an entry in dictionary of synonyms for 123--> 1234, 1235, etc.. To answer your question - No. If you want to do something like that, you would set up the merchandising rules (assuming you want the company to be able to configure it) and have the web application check the ENEQueryResults for a rule with generic = box and repeat the search as a wildcard.

    Michael

  • Satellite L300 - 29 X - how to connect to the TV?

    I have a Toshiba Satellite L300-29 X with a mini-VGA output and want to connect it to my TV, preferably by the DVI - I analog/digital double entry, but impossible to find a cable that will do it. Can someone point me in the right direction? I live in the United Kingdom and as such, have access to retailers based in the United Kingdom and do not want to pay the exorbitant costs to import from abroad.

    If all else fails, I could connect through the input SCART on my TV, but once again, someone could point me in the right direction of a cable that could do that?

    Cheers in advance for any help.

    C

    I also noticed just my TV has an entry of RS232 9 pin so if that's any help?

    Hey,.

    As I know there is no analog/DVI adapter, DVI only of-analog adapters available.

    The connections you have on your TV?
    Usually, you can use a RCA VGA adapter to connect your laptop to the TV as [THIS | http://images.ncix.com/forumimages/12BADAB5-13A6-D8D7-0372158257AC5AE9.jpg] a.

  • PCIe-7842r to SCB-68 has

    Hello

    I brought a PCIe-7842r, and it comes with the SCB, 68 a, as the connection block.

    I want to use the connection block for analog and digital output entry, so I plugged the pin68 and PIN 67 with two sons. 68 pin and PIN 67 on SCB68A is to HAVE it + and I-on the PCIe 7842r too, so it fits perfectly.

    Next step, I want to use the PCIe 7842r to a digital output, and I intend to use the 36 pin and pin 2, which corresponds to DIO0 and DGND.

    However, pin 36 and on the SCB68A pin2 is DGND and PFI14, which does not match the result of the PCIe 7842r.

    Y at - it suggestions for dealing with this problem?

    Best,

    Matthew

    MatthewTang wrote:

    On page 9, you will need to enlarge to see the label

    If you look at the label on this page closely, you will see that it is for M and X Series DAQ devices.  You must read the section on the use of the SCB-68 has as a Feedthough Direct (page 14) and use the code I linked at the earliest for the R series card.

  • Update a table in a loop with a table, not a single value

    Hey everybody,

    I'm new to the Forum, but I do LabVIEW for almost a year now.  I work to make my code much more simple, but I encountered a problem that I can't seem to overcome.

    Say I want to graph a numeric control.  I'm updating the digital control to 5 and 5 graphic updates.  Whenever my loop is executed, the 5 is reloti.  Easy to see that the updates fast loop, my FP will have too much processing time.  How to pass control to an array and only draw table each, for example, 10 iterations of the While loop?  I thought using the 'i' in the While loop and a structure case (use is equal to? 10 as the true to update case).  That doesn't really seem to be the answer... Any help is appreciated.

    Hi, Mr. Bass,.

    Thank you for your post and welcome to the forums of NOR.

    If you want to update every 10 iterations, for example, you can use "Quotient and remainder" LabVIEW function found in the palette of the digital - divide the number of iteration by 10 and check the rest, if it is equal to zero then you're on the 10th, 20th, 30th, etc the iteration. You can then use a case structure and write your chart in the case of true, with the condition is true, if the remainder is zero.

    Let me know how you go with this method.

    Thank you

  • 6722 to higher frequencies (about 3.125 kHz)

    Hallo,

    How can I control the PCI-6722 with higher frequencies about 3.125 kHz? Is it possible to use Labview? How? If it is not possible, how can I control the map to higher frequencies and visualize the information in Labview? I have not found a link to get manuals etc. that help. Links are welcome.

    Thank you

    Verena

    The PCI-6722 does not support the entry of digital waveforms.  It's digital lines are static (unbuffered), and every acquisition of waveform of them must be software controlled.  Since modern multitasking operating systems are not deterministic, this translates into large amounts of jitter in when samples are collected.  If you need good digital waveforms entry, you will need a different card.  However, the 6722 has two counters/timers, so if the function you are trying to run is less their capabilities (for example to determine the frequency of a digital input signal), you should be fine.  Let us know which task you want to accomplish and we can point you in the right direction.

Maybe you are looking for