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
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
add a comment |
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
add a comment |
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
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
labview
asked Mar 25 at 17:33
Hugh WardHugh Ward
11 bronze badge
11 bronze badge
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
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.
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
add a comment |
Looks like you're trying to read a analog gauge value! Actually it's very simple.
- Build a lookup Table
- Perform Interpolation followed by thresholding.
Refer the VI Snippet (Just paste this image into your block diagram).
Sample Output:
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
add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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.
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
add a comment |
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.
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
add a comment |
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.
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.
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
add a comment |
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
add a comment |
Looks like you're trying to read a analog gauge value! Actually it's very simple.
- Build a lookup Table
- Perform Interpolation followed by thresholding.
Refer the VI Snippet (Just paste this image into your block diagram).
Sample Output:
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
add a comment |
Looks like you're trying to read a analog gauge value! Actually it's very simple.
- Build a lookup Table
- Perform Interpolation followed by thresholding.
Refer the VI Snippet (Just paste this image into your block diagram).
Sample Output:
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
add a comment |
Looks like you're trying to read a analog gauge value! Actually it's very simple.
- Build a lookup Table
- Perform Interpolation followed by thresholding.
Refer the VI Snippet (Just paste this image into your block diagram).
Sample Output:
Looks like you're trying to read a analog gauge value! Actually it's very simple.
- Build a lookup Table
- Perform Interpolation followed by thresholding.
Refer the VI Snippet (Just paste this image into your block diagram).
Sample Output:
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
add a comment |
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
add a comment |
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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