fixed point like solution value deal selector?

Hey all so I am very new to LabVIEW and I'm doing a simple program.

Right now I have a digital control that control my analog voltage on my board sbRIO 9636 (from the assessment package). According to the tension, I want to display a message on the LCD. I know you cannot use values FXP as case selector values. Is there a way to get around this? I thought to be converted to a string, but I want to have a case where no voltage between 0-1 displays a message, then 1-2 displays another message and so on and so on until 10.

The flare in the case selector is integrated and cannot be changed by the programmer.  You will need to make the external logic and create whole selectors you need.  One way to do this is to create an array of constant values where you want cases. Then make a comparison of the value of the variable. Research in the resulting for the first table of Boolean true. Form to come and Index the search goes to the switch case.

Lynn

Tags: NI Software

Similar Questions

  • Understand the values fixed point of a NOR-9203

    I have a cRIO-9073 with a NI 9203 module. In LabVIEW FPGA, the card values are returned as a fixed point. LabVIEW chosen fixed point properties are (+/-, 21-4) that apparently offers a range of (- 3.125E - 2, 3.125E - 2, 2.98E - 8), and the current card in the range 4-20 MA with a resolution of only 16 - bit. My understanding of fixed point values is only slightly, then someone can explain to me why a 21-bit value is required for the 16 - bit acquisition data?

    Hi Thoric,

    Sorry, it took a while to get a response to you.   The necessary extra bits with fixed point representation are for the overflow feature.  There is more information in the link below.

    http://zone.NI.com/reference/en-XX/help/371361E-01/lvconcepts/numeric_data/#FXP_overflow

    I hope that this answer to your question, but if you need more help please let me know.

    Kind regards

    Thomas Clark

  • cRIO wire becomes double, but I use fixed-point

    Hello world

    I've been looking for examples try to understand why a thread that I use is of type double. I thought it was because the number of bits was greater than 64 bits (LabVIEW does not have 64-bit fixed point). Can someone give an idea of why this phenomenon happens?  Look at the pictures below to see what is the wire which causes conflicts. Constants have the value 1 because I tried to use the minimum number of bits and the maturity of the operations were ultimately a superior 64-bit word length. If you can direct me to a link where a person might have a problem like it's ok. Thanks in advance.

    When LabVIEW does not know what digital use, default usually floating-point representation.  This happens in cases like this where shift registers are used and there is a mismatch as fixed-point.  You can work around this by configuring the output data type of multiply that nodes.  Right click on the node are multiplying, select 'Properties', then select the representation fixed-point you want in the tab "output Configuration.   This will enforce the data type.

  • host vi data only appears in fixed point format

    Hello

    The FIFO DMA are configured as fixed point integer length 16 and with note 19. When they are acquired by DMA FIFO in FPGA entire watch and mantissa. But when acquired his watch only the integer in host and I lose mantissa. He get rounding upward? Is there a way I could get the accurate data both the mantissa and integer?

    Ta

    Hello

    The table of fixed points in your host vi application is defined as: 33 bit word length and 33 whole bit, in this way you will be non-integer values.

    You must change your configuration of fixed point. Right click on the table, select properties and change the parameters in the tab type data of select simply adapt to the source.

    Hope this helps,

    Paulo

  • Bug Fixed-point in LabView?

    Hello

    I am currently working on a project in LabView and met FPGA something weird that looks like a bug, but it could also just be me not well understand how fixed-point numbers are supposed to work. I work in LabView 2010 Pro (32-bit 10.0f2) on Win 7 Ent. 64 bit.

    The problem I have is that when I try to add some numbers together I get unexpected answers, which obviously makes the code very unreliable.

    For example: If you try to add 0.50002 with - 0.49998, you expect something around zero, but instead, you get like 3.99999... Am I missing something here? I saw this on several numbers around zero. Fixed points do not work around zero?

    I should add that I just tried it on the local computer and not on the FPGA, but I don't see that would make a difference. The two entries are updated to 'Adapt to the entered data' and the output is "Adapt to the source", the Add function is also set to "Adapt to the source" and I tried the envelope and saturate... I also tried with fixed bits rather than adapt to the data entered on the inputs etc with no luck.

    Can anyone shred some light on this please? Is it just me or is it really a bug or just as fixed-point numbers are supposed to work?

    Thank you!

    / Joel

    It is not a bug.  If you develop the indicator displays the result, you will see that there is an exponent of-5 at the end (e-5 = 10 ^-5).    So that is to say the answer is 4 * 10 ^-5 or 0.00004, which is pretty close to 0.

  • fixed point conversion

    How do I know how LabVIEW manages type conversions and type cast to point fixed.

    In particular, I have two problems:

    (1) assume I want to convert an integer signed 32-bit to a point fixed <+ ,20,20="">with the function "-fixed-point."

    Of course this conversion involves a waste of bits. LabVIEW will keep the most significant bits, or those less important?

    The same problem occurs if I want to convert a fixed point of data (for example <+ ,20,20="">) to another fixed point data with fewer bits (for example <+ ,10,10="">).

    (2) I have a data represented with a point fixed <+ ,20,10="">and I want to cast to a point fixed <+ ,15,5="">by removing 5 whole bits and keeping the sign.

    For example, I have the number - represented 1.5 in <+ ,20,10="">and I want to convert it to <+ ,15,5="">(to be noted that the two representations can express the number correctly).

    How can I do such casting?

    Thank you

    Hi Tom,

    That's a fair criticism, there are probably a few tribal knowledge implicit in the documentation. I'll give some briefing notes that might help a little:

    • LabVIEW makes a distinction between the functions of conversion (aka "balls") and casts. Conversion always functions are trying to preserve the numeric value, with a handful of out-of-range values with different rounding and overflow modes. Conversions integer/integer wrap, while all other combinations round to closest and saturated by default. If the destination is FXP, you can configure the modes.
    • Coercion points have the same behaviors as their corresponding conversion function.
    • Type cast is not supported on the FPGA
    • The fixed point to whole and entire Cast to fixed-point slur was created with use FPGA to mind cases. They are not pure bit casts, because they support extension of sign for an arithmetic scaling, as well as ways of handling overflow. I hope that the new documentation is a bit clearer on their behavior.
    • Number of reinterpret is a little pure cast to numbers FXP or integer, available on digital > palette to comma fixed only under target FPGA. It simplifies the behavior by limiting the length of the input word and output is the same.
  • Is it possible a 0 is displayed after the decimal point when the value is rounded? (I get: 20-20, 1;) "I need 20, 0-20, 1).

    Using the effect of text "cursor", I am able to view replace "30 ° C" "35.5 ° C". My question is: is it possible a 0 is displayed after the decimal point when the value is rounded? (I get: 20-20, 1;) "I need 20, 0-20, 1). I use this code:

    Temp = effect ("Slider Control") ("Slider");

    sliderValue = Math.round(temp*10)/10;

    [sliderValue + ' ° C ' "']

    Here is the solution:

    numDecimals = 1;

    Temp = effect ("Slider Control") ("Slider");

    sliderValue = (Math.round(temp*10)/10).toFixed(numDecimals);

    sliderValue + "° C";

  • Fixed points can always be controlled by Mousetrack

    Thank you Jeff, it's exactly what I had to do. Problem solved!

    I have another question if you don't mind. Is it possible to have a foot of characters with 'Fixed' points, and points of "Mousetrack"? I would like the character seems anchored down and stable until the moment I want to move her legs to step on and off the screen.

    If you set after pass parameter to the Tracker of the mouse to hold up, it would work? You may need to move only those handful slightly initially to secure them in place first.

  • The fixed Point data

    It is possible to specify the length of Word and whole for the fixed point data format, and if so where this work?

    The module I use is a NI 9205 in a cRIO-9074 and seems to have a fixed point default data format of <+-, 26,="" 5="">, which I interpret as meaning that the data is signed, has a length of 26 Word and a length of whole number of 5. This gives a maximum of 16, a minimum of-16 and a size of minimum step of ~4.768 x 10 ^-7, that is to say 1/2 ^ 2.

    Could someone please confirm that this is the correct interpretation, and also explain how it is possible to obtain a length of 26 Word when the analog digital converter / base is only 16 bits.

    Best regards

    amendments


  • fixed point math with shift on FPGA register

    It would be easy, but it's on FPGA.

    Essentially, I want to do what is shown, but with fixed Point data. I also need my release of the add function to be <+,32,0>, as she goes into a generation of sine wave VI as the frequency. Basically I want just the frequency to rise slowly to "step size" at certain pre-defined rate. Is it possible to do? There must be a way I can do number table boolean then table of Boolean number, do a few manipulations to the bitwise and convert to the point type fixed I want. But I can't understand it. I also read some fixed point on NI.com unsuccessfully to operate. Frankly, fixed-point math always escapes me.

    Any suggestions?

    Ah, what the trial and error method will do for you.

    It seems to work.

  • Table 2D-fixed points allocated to the amount of disk space!

    Hello

    I'm trying to create a 2D table file that will be saved on a real-time target. And should be read by my application in real time.

    To create a file as small as possible I have it recorded in fixed point format. (integer 16 bits 6 bits)

    The table size is 1024 X 1024 data points which is ~ 1 M data.

    If I save the file to the DBL format I expect to get 8 MB (each data point is represented by b bytes) of the file - and that's what I

    If I save a U16 format, I expect to get 2 MB file - and that's what I indeed.

    I waited get a 2 MB file with fixed point format-, but as you can see in the screenshot - I did not!

    No explanation why the checkpoint file is fixed so great?

    Thank you

    The FXP is 64-bit internally.

  • Fix Photoshop - like the ease of the app on my iPad but I can't access my photos

    I like the ease of correction of Photoshop and it's so much easier to use than traditional Photoshop.

    I've been using this app for a few weeks now and I still keep it up to date. I always had a problem where not all of the pictures in my library are not recognized. When I select an album such as "all photos" in the list, I see a handful of my photos but only a very small fragment of the collection complete. Most of the pictures in my library are photos JPEG JPEG and RAW photos are missing

    All images are stored locally (library iCloud is on, but it took to download and keep the originals in place).  My iPad OS is always up to date. The fastest solution, that I found is to download the photo on Dropbox and import the form which is not very fast.

    I also restarted the app / my iPad several times, but this step doesn't seem to do the trick either.

    Help someone?

    Hey Paul!

    First of all, I want to apologize for the late response. I saw this question recently all about. One thing I want to point out that RAW files are not completely compatible with Fix. In regards to jpg files, they SHOULD be appearing. A question can be the size of the files. Whence the photos? Also, what type of iPad are you using?

    Thank you very much!

    -Kathleen

  • How to configure a button with alignment fixed points on a logorithmic scale?

    My question is quite simple, but after rooting in the button/gauge proteries, I can't find a way to do what I would like to:

    I would like a simple button with 4 possible values control: 0.0125,0.125,1.25,12.5

    I would like that they also spaced and I want the button to engage only in one of these four values

    I can get it at least to the point of having four values there by placing arbitrary markers (scale-> add the marker), but I can't figure out how to align them, or even if it is the way of Paris to follow on that.

    Thank you!

    See example LV86 attached. Open the Properties dialog box for the button for more information on its configuration.

  • SkillBuilders modal and Page point question of value

    Hello

    I created a version simplified a problem, I am trying to understand on http://apex.oracle.com (it happens on the two Apex 4.1 and 4.2).

    Workspace: EDIAZJORGE

    User name: TEST

    Password: test123

    Application: 2188

    Page: 1

    I have a field of date and a button that opens a modal page; When the date is changed, a dynamic action is triggered to assign a URL on an element hidden with the new date, for example f? p = 2188:2:105346728385780:P2_DISPLAY:21 - Aug-14

    Whenever the button is pressed, it will open the modal page and display the value of P2_DISPLAY.

    The dynamic action that opens the modal page has a defined static URL like & P1_URL.

    My confusion is that when I change the date, I can see on Session State and HTML P1_URL organizes the correct URL with the new date; However, when I click on the button to open the modal, it displays the value of the page when was initially loaded. For example:

    • If the page load with 21/08/2014, no matter how many times I change the date, it will always show 21/08/2014.
    • If I change the value at 31/07/2014 and refresh the page, then it will show the 31/07/2014 no matter how many times I change the date.

    Two questions:

    1. When the plug-in receives the value of (the Session State and the input HTML to P1_URL element have the correct date)?
    2. How can I fix without having to submit the page?

    Thank you


    Erick

    I am happy that it worked Erick. I didn't know if I explained.

    As for the suggestion of 2...

    If you run the page, as it is now (at least in a recent version I watched) you will see that when you changed the Date you can see that P1_DATE is defined in the session.

    It's b/c you have a dynamic action that works PL/SQL and declares the value of P1_DATE. So, instead of setting the value P2_DISPLAY of the session in the URL, you can use this P1_DATE session state that is set when this is handled via Ajax.

    If you were to change the action that affects your url "f?" p = & APP_ID.: 2: & APP_SESSION. "(or just use it as a static URL in the plugin) then changed P2_DISPLAY to have a value based on the value of P1_DATE it should work.

    Greg

  • ascii conversion point floating decimal values

    Hello

    With the help of LV8.6, I'm working on a project in which I'm floating
    data point on port series as ASCII form and I need to convert it to sound
    appropriate decimal value.

    I tried the type cast to convert data and managed
    When the data were only a decimal value.

    But when these values are floating which is my
    data real i.e. 1.63, 3.41. I receive it as 1.11 (if it is 1.63), i.e.
    get only the first digit.

    But the data are received correctly on the screen of the chain and
    HyperTerminal, which means that communication is perfect, but the error is
    programming.

    kindly guide me what I have to do.

    Thank you

    It has simply changed format in the string conversion.

    Thanks for you advice

Maybe you are looking for