How do you map values in LabVIEW? Is there a best way or convention?LabView: Pass value between while loopsLabView Licensing recommendation for cDAQ: NI9426 Open Connector Pulse and NI9213 Temperature AlarmHow does Labview save cluster data in a binary file and how do I read it out in MATLAB?Implementing filter design using LabVIEWCall a data from a database in a .ini fileLabview FPGA Simulation TimingUsing UDP LabVIEW to comunicate with UDP c++ socketHow to set two identical y-scales in the same graph in Labview?LabVIEW 3D sensor mapping

Sorceror's stone location prior to Mirror of Erised move?

Bootstrap paradox with a time machine in iron

Is it theoretically possible to hack printer using scanner tray?

Why is 'hyper-' considered a prefix, but 'tachy-' is considered a combining form?

Making arrow with a gradual colour

GFCI versus circuit breaker

Are the plates of a battery really charged?

Replacing 5 gang light switches that have 3 of them daisy chained together

ShellExView vs ShellMenuView

How might boat designs change in order to allow them to be pulled by dragons?

What is the small microphone icon floating on top of the screen in macOS and how do I turn it off?

Is this house-rule removing the increased effect of cantrips at higher character levels balanced?

Existence of infinite set of positive integers s.t sum of reciprocals is rational and set of primes dividing an element is infinite

Installed software from source, how to say yum not to install it from package?

How to idiomatically express the idea "if you can cheat without being caught, do it"

How come having a Deathly Hallow is not a big deal?

How can I change my buffer system for protein purification?

Confusion in understanding the behavior of inductor in RL circuit with DC source

Are there advantages in writing by hand over typing out a story?

What caused the flashes in the video footage of Chernobyl?

Why should I allow multiple IP addresses on a website for a single session?

Why would a propellor have blades of different lengths?

Can you run PoE Cat6 alongside standard Cat6 cables?

What is the point of using the kunai?



How do you map values in LabVIEW? Is there a best way or convention?


LabView: Pass value between while loopsLabView Licensing recommendation for cDAQ: NI9426 Open Connector Pulse and NI9213 Temperature AlarmHow does Labview save cluster data in a binary file and how do I read it out in MATLAB?Implementing filter design using LabVIEWCall a data from a database in a .ini fileLabview FPGA Simulation TimingUsing UDP LabVIEW to comunicate with UDP c++ socketHow to set two identical y-scales in the same graph in Labview?LabVIEW 3D sensor mapping













0















I have an angle in degrees, and need to map it to a voltage.



i.e. left: -360 degrees = 0V, straight: 0 degrees = 5V, right: 360 degrees = 10V.



How do you map values in LabVIEW?



I found scaling under the numeric pallet but they seem to be very specific (e.g. for a thermistor) with no generic block.










share|improve this question


























    0















    I have an angle in degrees, and need to map it to a voltage.



    i.e. left: -360 degrees = 0V, straight: 0 degrees = 5V, right: 360 degrees = 10V.



    How do you map values in LabVIEW?



    I found scaling under the numeric pallet but they seem to be very specific (e.g. for a thermistor) with no generic block.










    share|improve this question
























      0












      0








      0








      I have an angle in degrees, and need to map it to a voltage.



      i.e. left: -360 degrees = 0V, straight: 0 degrees = 5V, right: 360 degrees = 10V.



      How do you map values in LabVIEW?



      I found scaling under the numeric pallet but they seem to be very specific (e.g. for a thermistor) with no generic block.










      share|improve this question














      I have an angle in degrees, and need to map it to a voltage.



      i.e. left: -360 degrees = 0V, straight: 0 degrees = 5V, right: 360 degrees = 10V.



      How do you map values in LabVIEW?



      I found scaling under the numeric pallet but they seem to be very specific (e.g. for a thermistor) with no generic block.







      labview






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Mar 25 at 17:33









      Hugh WardHugh Ward

      11 bronze badge




      11 bronze badge




















          2 Answers
          2






          active

          oldest

          votes


















          2














          If the mapping you want is described by a mathematical formula, just implement that calculation using LabVIEW functions. In your case, assuming it's a linear relationship, the formula is voltage = (angle + 360) / 72 .



          You could code this in LabVIEW with an Add function followed by a Divide function, or if you think it's clearer written out as a formula then you could use a Formula Node.



          If you need to use this calculation in more than one place in your application, make it into a subVI.






          share|improve this answer























          • Just out of curiosity! why are you dividing by 72?

            – Achuthaperumal RK
            Mar 26 at 9:46











          • The asker wants to map an input range of 720 degrees (-360 to +360) on to an output range of 10 V. 720 / 10 = 72.

            – nekomatic
            Mar 26 at 11:35











          • Oops! Didn’t notice that! Thanks for the clarification...

            – Achuthaperumal RK
            Mar 26 at 12:09


















          0














          Looks like you're trying to read a analog gauge value! Actually it's very simple.



          1. Build a lookup Table

          2. Perform Interpolation followed by thresholding.

          Refer the VI Snippet (Just paste this image into your block diagram).



          Block Diagram



          Sample Output:



          Front Panel






          share|improve this answer


















          • 1





            This is a good explanation of how to implement a calibration curve as a series of linear segments, but it's not necessary for the OP's question which just needs a simple linear function.

            – nekomatic
            Mar 26 at 9:28













          Your Answer






          StackExchange.ifUsing("editor", function ()
          StackExchange.using("externalEditor", function ()
          StackExchange.using("snippets", function ()
          StackExchange.snippets.init();
          );
          );
          , "code-snippets");

          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "1"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55343526%2fhow-do-you-map-values-in-labview-is-there-a-best-way-or-convention%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          2 Answers
          2






          active

          oldest

          votes








          2 Answers
          2






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          2














          If the mapping you want is described by a mathematical formula, just implement that calculation using LabVIEW functions. In your case, assuming it's a linear relationship, the formula is voltage = (angle + 360) / 72 .



          You could code this in LabVIEW with an Add function followed by a Divide function, or if you think it's clearer written out as a formula then you could use a Formula Node.



          If you need to use this calculation in more than one place in your application, make it into a subVI.






          share|improve this answer























          • Just out of curiosity! why are you dividing by 72?

            – Achuthaperumal RK
            Mar 26 at 9:46











          • The asker wants to map an input range of 720 degrees (-360 to +360) on to an output range of 10 V. 720 / 10 = 72.

            – nekomatic
            Mar 26 at 11:35











          • Oops! Didn’t notice that! Thanks for the clarification...

            – Achuthaperumal RK
            Mar 26 at 12:09















          2














          If the mapping you want is described by a mathematical formula, just implement that calculation using LabVIEW functions. In your case, assuming it's a linear relationship, the formula is voltage = (angle + 360) / 72 .



          You could code this in LabVIEW with an Add function followed by a Divide function, or if you think it's clearer written out as a formula then you could use a Formula Node.



          If you need to use this calculation in more than one place in your application, make it into a subVI.






          share|improve this answer























          • Just out of curiosity! why are you dividing by 72?

            – Achuthaperumal RK
            Mar 26 at 9:46











          • The asker wants to map an input range of 720 degrees (-360 to +360) on to an output range of 10 V. 720 / 10 = 72.

            – nekomatic
            Mar 26 at 11:35











          • Oops! Didn’t notice that! Thanks for the clarification...

            – Achuthaperumal RK
            Mar 26 at 12:09













          2












          2








          2







          If the mapping you want is described by a mathematical formula, just implement that calculation using LabVIEW functions. In your case, assuming it's a linear relationship, the formula is voltage = (angle + 360) / 72 .



          You could code this in LabVIEW with an Add function followed by a Divide function, or if you think it's clearer written out as a formula then you could use a Formula Node.



          If you need to use this calculation in more than one place in your application, make it into a subVI.






          share|improve this answer













          If the mapping you want is described by a mathematical formula, just implement that calculation using LabVIEW functions. In your case, assuming it's a linear relationship, the formula is voltage = (angle + 360) / 72 .



          You could code this in LabVIEW with an Add function followed by a Divide function, or if you think it's clearer written out as a formula then you could use a Formula Node.



          If you need to use this calculation in more than one place in your application, make it into a subVI.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Mar 26 at 9:26









          nekomaticnekomatic

          4,4281 gold badge15 silver badges23 bronze badges




          4,4281 gold badge15 silver badges23 bronze badges












          • Just out of curiosity! why are you dividing by 72?

            – Achuthaperumal RK
            Mar 26 at 9:46











          • The asker wants to map an input range of 720 degrees (-360 to +360) on to an output range of 10 V. 720 / 10 = 72.

            – nekomatic
            Mar 26 at 11:35











          • Oops! Didn’t notice that! Thanks for the clarification...

            – Achuthaperumal RK
            Mar 26 at 12:09

















          • Just out of curiosity! why are you dividing by 72?

            – Achuthaperumal RK
            Mar 26 at 9:46











          • The asker wants to map an input range of 720 degrees (-360 to +360) on to an output range of 10 V. 720 / 10 = 72.

            – nekomatic
            Mar 26 at 11:35











          • Oops! Didn’t notice that! Thanks for the clarification...

            – Achuthaperumal RK
            Mar 26 at 12:09
















          Just out of curiosity! why are you dividing by 72?

          – Achuthaperumal RK
          Mar 26 at 9:46





          Just out of curiosity! why are you dividing by 72?

          – Achuthaperumal RK
          Mar 26 at 9:46













          The asker wants to map an input range of 720 degrees (-360 to +360) on to an output range of 10 V. 720 / 10 = 72.

          – nekomatic
          Mar 26 at 11:35





          The asker wants to map an input range of 720 degrees (-360 to +360) on to an output range of 10 V. 720 / 10 = 72.

          – nekomatic
          Mar 26 at 11:35













          Oops! Didn’t notice that! Thanks for the clarification...

          – Achuthaperumal RK
          Mar 26 at 12:09





          Oops! Didn’t notice that! Thanks for the clarification...

          – Achuthaperumal RK
          Mar 26 at 12:09











          0














          Looks like you're trying to read a analog gauge value! Actually it's very simple.



          1. Build a lookup Table

          2. Perform Interpolation followed by thresholding.

          Refer the VI Snippet (Just paste this image into your block diagram).



          Block Diagram



          Sample Output:



          Front Panel






          share|improve this answer


















          • 1





            This is a good explanation of how to implement a calibration curve as a series of linear segments, but it's not necessary for the OP's question which just needs a simple linear function.

            – nekomatic
            Mar 26 at 9:28















          0














          Looks like you're trying to read a analog gauge value! Actually it's very simple.



          1. Build a lookup Table

          2. Perform Interpolation followed by thresholding.

          Refer the VI Snippet (Just paste this image into your block diagram).



          Block Diagram



          Sample Output:



          Front Panel






          share|improve this answer


















          • 1





            This is a good explanation of how to implement a calibration curve as a series of linear segments, but it's not necessary for the OP's question which just needs a simple linear function.

            – nekomatic
            Mar 26 at 9:28













          0












          0








          0







          Looks like you're trying to read a analog gauge value! Actually it's very simple.



          1. Build a lookup Table

          2. Perform Interpolation followed by thresholding.

          Refer the VI Snippet (Just paste this image into your block diagram).



          Block Diagram



          Sample Output:



          Front Panel






          share|improve this answer













          Looks like you're trying to read a analog gauge value! Actually it's very simple.



          1. Build a lookup Table

          2. Perform Interpolation followed by thresholding.

          Refer the VI Snippet (Just paste this image into your block diagram).



          Block Diagram



          Sample Output:



          Front Panel







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Mar 26 at 5:38









          Achuthaperumal RKAchuthaperumal RK

          799 bronze badges




          799 bronze badges







          • 1





            This is a good explanation of how to implement a calibration curve as a series of linear segments, but it's not necessary for the OP's question which just needs a simple linear function.

            – nekomatic
            Mar 26 at 9:28












          • 1





            This is a good explanation of how to implement a calibration curve as a series of linear segments, but it's not necessary for the OP's question which just needs a simple linear function.

            – nekomatic
            Mar 26 at 9:28







          1




          1





          This is a good explanation of how to implement a calibration curve as a series of linear segments, but it's not necessary for the OP's question which just needs a simple linear function.

          – nekomatic
          Mar 26 at 9:28





          This is a good explanation of how to implement a calibration curve as a series of linear segments, but it's not necessary for the OP's question which just needs a simple linear function.

          – nekomatic
          Mar 26 at 9:28

















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55343526%2fhow-do-you-map-values-in-labview-is-there-a-best-way-or-convention%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

          Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

          Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript