Using of degrees in Tangent vi

Hi,
Good day!
May I know how I can calculate base on degrees by using Tangent vi in LabVIEW 7.1?
The tangent vi default input is in radians.
For example: (tan -0.0680 * 27000 + (-36.6))= -68.644 when using degrees to calculate.
How I can use the vi provided in LabVIEW 7.1 to achieve same result?
Thank you in advance for the advice!
Best Regards,
Norman

In this case, the third paragraph if the section "Convert Unit Details" applies:
http://zone.ni.com/reference/en-XX/help/371361D-01/glang/convert_unit/
Quote: "If the input is a pure number, LabVIEW assigns the unit you specify in the Convert Unit function to the number and returns that physical number in the base unit (or a combination of base units) for that class of measurement, as indicated in the following table."
The "base unit" of an angle is rad. Yes, it's a bit confusing but at least documented. 
For some fun, look at the attached VI diagram and front panel. Don't run it yet!!!!
Can you tell what all the indicators will show without running it?
Now run it! Were you right?
Message Edited by altenbach on 09-04-2007 10:47 PM
LabVIEW Champion . Do more with less code and in less time .
Attachments:
AngleConversions.vi ‏10 KB
AngleConversions.png ‏20 KB

Similar Messages

  • Can I change a setting so when I rotate things by dragging, it only uses whole degrees? Having to type the exact angle every time is annoying.

    I'm very aware of Transform > Rotate and then typing the exact angle that I want to rotate something. But when I go to rotate something by just dragging the top center of the object around in a circle, the angles are always like 30.94 degrees, which infuriates me, and its getting very tedious with the current project I'm doing. I don't see a setting in preferences to change this. Any ideas?
    Thanks.

    You want precision, it's available if you want to use it.

  • Best way to insert Degree symbol?

    Hello,
    I have an inspection form set up for restaurant/health inspectors.    Often times during an inspection they need to enter temperatures of food and like to use the degree symbol.    They're running this form on a convertible tablet pc, so a normal keyboard is not available to them in tablet mode and when in laptop mode using the combination of ALT+0176 that's still a PITA because the keyboard doesn't have full number pad and the people using this form aren't the most computer literate people out there to be able to activate the Function keys to endable number pad keys and then enter an ASCII code many times during an inspection.
    I was looking for suggestion on how to inforporate something into the form to assist in entering the degree symbol in any text field they are in at the position of the cursor.
    The idea's I've though of are:
    1.) A command button that inserts the symbol, but I'm afraid clicking the button would lose focus of the destination field and there'd need to be a lot of scripting to remember which field was the last one they were in to insert it in the correct one.
    2.) A Button or On Load event which somehow inserts the degree symbol into the Windows clipboard, but during the course of an inspection they might copy and paste something else thus clearing it out.
    3.) Some kind of auto-replace of text.  Not sure if that's possible in an adobe form.  E.g. if they type 'deg.' have the form auto replace it to '°'.
    4.) A special key press.  Not sure if Adobe can listen to a special key sequence not used by Adobe and Windows, say CTRL + D which when pressed inserts a degree symbol in the current location.  
    5.) Any way to place a special icon on Adobe's tool bar to insert the degree symbol at the currently location?
    Those were some ideas I'm thinking of.  Many are probably dead ends.   If you had this problem, how would you approach it?
    Thanks!
    -Mike

    Magnus, thanks for not giving up on this yet.   In your last post that is making some progress, but there's also some con's too.
    1.) That's running off of an 'On Exit' even which inserts the ºF at the end of the text.   In some cases that would work, but it others it would not work, like in this text field example of real data:      "White fish was a 51°F.  *Corrected* Witnessed manager throw away fish."    
    With your proposed java, that would put the °F at the end of the line when it needs to be in the middle of the line.
    2.) Many types of written text can be put in these fields.  Not every scenario would involve a temperature, so having it pop up your popupmenu might get in their way when it is not needed.
    What I'm thinking needs to be done is to somehow insert the °F exactly wherever the cursor is at the time when it is triggered to do so (how to trigger it?).   
    OR  
    On an On Exit event searcingh for and replacing the text they have entered.   Perhaps replace ' deg' with '°F' so that if they type:
          "White fish was a 51 deg.  *Corrected* Witnessed manager throw away fish."
    When the On Exit fires it replace deg with °F so that the text field now reads:
          "White fish was a 51°F.  *Corrected* Witnessed manager throw away fish."

  • Degree Symbol and Sub-Scripts in XML

    I'm more of a designer and really don't know that much about code. I know just enough XML to use it in InDesign, the thing is I am having trouble finding a way to use the degree symbol and sub-scripts in the XML data I import into InDesign. The HTML codes like &deg and &#176 don't work, InDesign tells me that they are "not well formed". I'm using UTF-8. Is there another encoding I could use that allows me to use symbols and subscripts?

    if you use utf-8 simply but the real character into the data.
    named character entities such as
    °
    has to be declared in your dtd.
    with character entities such as
    ° or °
    are working fine.
    regards,
    gregor

  • Different results using View with union all in 11R1 compared to 10R2

    Hello,
    I have the following situation:
    In Oracle 10R2 I defined a view which looks like this
    create view test_view
    as
    select 'field1;field2;field3' field from dual
    union all
    select field
    from (
    select tfield1||';'||tfield2||';'||tfield3 field
    from table1
    order by tfield1,tfield2,tfield3
    The idea is, my first line contains a header information an then the data in the required sorting order.
    So, in 10R2, when I export the view with select field from test_view, I get the result as expected, which means, the header from the part with the dual was in the first line and after that, the data in the required sort order.
    Now, in 11.1.0.7, it is completely different, because the row of the dual is somewhere in my result set. But if I send the sql instead of the view, I get the expected result as in 10R2.
    I have no idea why this is the case now, because in 10R2 this was working permanently as expected. When I look at the execution plan, I see, that he starts parallelisation, which is ok, but the difference is, that in this parallelisation the select from dual is included and in 10R2 he first make the line from the dual and then the parallelisation with the data. It's not clear to me, that if I send the sql to the database I see the required result, but if i define the view as mentioned, and start a select field from view, I get now get the different sorting, because of the parallelisation, where the optimizer he changes his behavior comparing the both database versions. So my question ist, how can I change this behavior to get the same behavior as in release 10R2.
    Best regards
    Rainer

    Hello,
    thank you for your sample, I see your idea for my sorting purpose.
    I want to look at the following point:
    I create the table, as you described. The table has the degree and instances 1. Now I deefine the following view:
    create view view_test
    as
    select 'field1;field2;field3' field
    from dual
    union all
    select tfield1 || ';' || tfield2 || ';' || tfield3 field
    from (select * from table1 order by tfield1,tfield2).
    This is the way I used it in 10 R2.
    Now, the SQL select field from view_test delivers the expected result:
    field1;field2;field3
    a;b;c
    d;e;f
    So far so good. But now, I changed the degree of the table1 (alter table table1 parallel (degree 4 instances 1);).
    The result looks like that:
    a;b;c
    field1;field2;field3
    d;e;f
    So, the parallelisation of my object seems to be the reason for the, in my eyes, "wrong" sort order. In 10R2 I used this degree and instance values for my table and defined a view and it was working fine. Now, after our migration, I had this "trouble". For me it seems, that the optimizer made some changes, or mabe this is a bug, who knows ?
    I also tried, to change the nls_comp, and set the undocumented parameters as described in the Metalink note 7497640.8, but with no effect of my result set.
    Best regards
    Rainer

  • Finding the slope of a tangent to a curve

    Hello everyone,
    I would appreciate guidance to any specific built-in subVI or routine which I can use to draw a tangent to a curve and find its slope. Specifically, I will need to to able to draw this tangent at any user specifed y-value. In order to keep it very accurate, I will not like to use any arbitrary cursors. The curve itself is drawn from a text file data which is read and passed onto an xy-graph.
    Any guidance will be much appreciated.
    cheers,
    Navneet
    Solved!
    Go to Solution.

    Not really Mathan, going through it still.
    For argument sake, lets assume an exponential increasing function and i want to find the slope at the point where y = 0. what will be the most optimum approach for this?
    Thanks for your reply, kindly appreciated.

  • Degree audit cookbook and best practise

    At Freie Universität Berlin we started implementing SLCM degree audit for the graduation processes of our study programs and face now the challenge to educate our administrators in usage of the tools to define the appropriate requirement catalogs. We are using Version 6.0 of CM.
    Since degree audit is a complex process to be customized and enhanced by BADI implementations and objects (rule containers containing requirements) we asked SAP for documentation usable for training administrators with erperienced SAP-CM-knowlegde in other areas.
    It seems that such a documentation does not exist yet, neither in help.sap.com nor in the SND-marketplace, so we are now to ask the highered-BPX-Forum.
    We search for general documentation and how-to-Documents (cookbooks) about:
    - setting up requirement patterns, requirement catalogs (and versions of them), selectors, filters, figures and performance indices to model the requirements of a given program and anchoring them to the academic structure;
    - If there exists a graphic of a "database scheme" which illustrates the dependencies of the objects used in degree audit this would also be helpful.
    Can anyone point us to such documentation?
    We would also like to be pointed to/share knowledge about:
    - best practices in the pragmatics how to compile study regulations into requirement catalogs using the given objects, BADIs and SPRO yielding both: accuracy and maintainability;
    - How-tos about enabling enterprise services assignable to business roles or automatic procedures and composable to an example process including
       - the assignment of requirement catalogs to student's study;
       - the creation of requirement profiles for candidates;
       - starting and saving audit runs;
       - propagating their results to internal qualifications;
       - completing degree.
    Regards,
    Dirk Pape
    Dr. Dirk Pape (eAS - Projektleitung Campus Management)
    Freie Universitaet Berlin
    Grunewaldstr. 34a, 12165 Berlin
    Tel. +49 (0)30 838 75143, Fax. +49 (0)30 838 54654

    Michael,
    As of this writing, I was only able to successfully retrieve the files with IE. Firefox 2 is being given empty files.
    Thanks,
    Eric
    P.S. Thanks for making this available. And, thanks to Volker for his work on it.

  • How about setting default layer styles to 90 degrees by default?

    Who ever really uses 120 degrees for anything? If I could count the number of times I've had to change my layer styles to 90 or 180 from the junky 120, I'd reach a number which doesn't exist because it's so damn big.
    Fix this, or give users an option to set a default and designers will LOVE YOU.

    There's also the "Make Default" button at the bottom of the Layer Styles dialogue box if you tend to use certain settings often.

  • Creating a custom format for angles that adds a degree symbol

    I am creating a fillin form.  I would like to customize the format of a number field to add a degree symbol to the numbers added by the user.  So when the users types in 90 a small elevated circle representing degrees automatically appears after the digits.  Can I do this?

    OK, probably the easiest way is to take advantage of Acrobat's built-in formatting routines for a number and adapt it to use a degree symbol. In the sample linked to below I created a document-level JavaScript and added the following two functions:
    function degreeFormat() {
        AFNumber_Format(0, 1, 0, 0, "\u00b0", false);
    function degreeKeystroke() {
        AFNumber_Keystroke(0, 1, 0, 0, "\u00b0", false);
    Which get called from the field's custom Format and Keystroke events, respectively:
    // Custom Format script
    degreeFormat();
    // Custom Keystroke script
    degreeKeystroke();
    Here's where you can download a sample: https://acrobat.com/#d=t241U3Pj0w0FztiQw5jgSw
    This allows decimal entries, but rounds to the nearest whole number for display. If you don't want a user to enter a fractional part, the script is a bit more complicated, but can be done.

  • Any way to type a degree symbol on ipad/iphone?

    I need to use the degree symbol frequently, but can't find a way to do it.

    On the keyboard tap on the numbers key then tap and hold the o then slide up to the displayed symbol to get the degree symbol.
    25°

  • Trouble using Sample Compressio​n VI in LabView

    When I run my VI which includes the sample compression sub VI, I get no errors however I get no output onto the graph I am plotting to. WHen I take out the sample compression sub VI, my uncompressed data plots fine.

    Hello rpursley8 and Travis, thank you for your replies.
    I have managed to get my data plotting using the sample compression sub VI. The reason I had no data showing up in my plot was that my input to the compression was a series of data points, so when it compresses 1 point by a factor of 10 I got zero points. So obviously nothing showed up on the plot and there were no errors. I had to change my input to a waveform format where the data was interpreted as a group of points it could compress and still be left with data to plot.
    I do have one question for you. I have my data plotting, and I am trying to plot it vs degrees. It is a radiation pattern of an antenna I am working on. So I would plot the voltage data (which is turned into the original power levels in dB by a ratio given to me by the receiver I am using) vs degrees ranging from -90 to +90. Into the graph I have both of these sets of data. Ok..now to the problem When I plot, the voltage data only covers from -90 to -80. I am not sure why it is doing this. I thought it was because I am compressing the points so there are not as many, so I need to space them out by the same factor as I am compressing them. I tried this but it didnt change anything.
    I have attached the VI. If you could help me out that would be great.
    Attachments:
    PlotWaveform4.vi ‏251 KB

  • I need degrees as the norm!!

    Is it possible to set Numbers so that when you input a value into a cell it will treat that value as a number of degrees and not radians.  I have a list of angles (in degrees) that are used in further calculations but Numbers I understand assumes that they are in radians and not degrees.
    If this isn't possible do I have to first convert the raw data (that's in degrees) into radians then input the radian values into the spreadsheet then get Numbers to convert the radian values into degrees!!
    Thanks

    Shrodinger,
    I think Bad unit suggested a way to change your existing formulas to use the degrees as input by performing the degrees-to-radian conversion in the arguement.
    Instead of =SIN(A2)
    It should be =SIN(A2*PI()/180)
    in other words....
    you current degree argument is A2 (which contains a value in degrees)
    so BadUnit suggested peforming the conversion as:
    A2 * PI() / 180  (this is now in radians)
    then providing that as the argument to the sin function
    or... as Jeff points out
    radians(A2) can be passed to the sin function.
    The following are equivalent:
    =sin(A2 * PI() / 180)
    =sin(radians(A2))

  • Math.sin

    I am asked to create a program that takes an angle in degrees convert it into radians and give the sin cos and tan of the angle
    I am unfamiliar with these methods and unsure how to set the method up
    I have looked up the method details for all methods such as
    sin
    {code}public static double sin(double a){code}
    I still do not have any clue, I do not want just an answer, I would rather be guided somewhere that I can figure this out on my own.
    I try to look up the classes and methods on java but i just dont understand, this is my second java class and it still seems like a different lanuguage.
    THanks for any help

    a couple of corrections but I think this is perfect
    the last code i posted after i converted to radians i still used my degree varible to detrimine my cos, sin, and tan
    so i fixed it to use the converted radians
         public static void main(String[] args) {
              // Initialize variables
              double angdeg = 0;
              double csin = 0;
              double ccos = 0;
              double ctan = 0;
              double rad = 0;
              // User Input
              Scanner kb = new Scanner(System.in);
              System.out.print("Enter The Angle in Degrees");
              angdeg = kb.nextDouble();
              // Calculations
              rad = Math.toRadians(angdeg);
              csin = Math.sin(rad);
              ccos = Math.cos(rad);
              ctan = Math.tan(rad);
              // Output
              System.out.printf(" Angle (degs): %4.4f\n Angle (rads):  %6.4f\n Sine: %15.4f\n Cosine: %13.4f\n Tangent: %12.4f\n", angdeg, rad, csin, ccos, ctan);
    }

  • How do I convert an HTML5 Canvas arc() to JavaFX Canvas arc()?

    I wish to convert a statement from JavaScript used in an HTML5 Canvas such as:
    ctx.arc(x, y, (rad+5)*factor, 0, Math.PI*2, true);
    to the equivalent statement in JavaFX.
    What would it look like?
    For reference, in HTML5 Canvas the arc() method is defined as:
    x
    The x-coordinate of the center of the circle
    Play it »
    y
    The y-coordinate of the center of the circle
    Play it »
    r
    The radius of the circle
    Play it »
    sAngle
    The starting angle, in radians (0 is at the 3 o'clock position of the arc's circle)
    Play it »
    eAngle
    The ending angle, in radians
    Play it »
    counterclockwise
    Optional. Specifies whether the drawing should be counterclockwise or clockwise. False=clockwise, true=counter-clockwise
    but in JavaFX it is defined as:
    public void arc(double centerX, double centerY, double radiusX, double radiusY, double startAngle, double length)
    Adds path elements to the current path to make an arc that uses Euclidean degrees. This Euclidean orientation sweeps from East to North, then West, then South, then back to East.
    Parameters:
    centerX - the center x position of the arc.
    centerY - the center y position of the arc.
    radiusX - the x radius of the arc.
    radiusY - the y radius of the arc.
    startAngle - the starting angle of the arc in the range 0-360.0
    length - the length of the baseline of the arc.
    Could someone please show me what the JavaFX arc() statement would look like and explain how to convert between these two?
    Thanks.

    No conversion possible. Are you on a responsive project perhaps? Then
    output is only HTML, mobile devices do not support Flash.

  • How to create subpicture for a button?

    Hello!
    I have really tried to find the answer to this rather silly problem on my own, but without result. Please help someone!
    The situation:
    I have a menu with three choices: "Play Movie", "Scene Selection" and "Subtitles". Now, the text presenting these choices are part of the background image, created in Premiere (the program I know best). They are written with an old typewriter to get that gritty feeling.
    I want the user to scroll between these "menu items". The currently selected item should be indicated by a black circle/spot/dot before the text of the item. By default, when the menu appears, there is a black circle in front of (to the immediate left of) the item "Play Movie". The user should now be able to step with his/her remote to the other items, thereby making the black circle in front of "Play Movie" disappear and appearing instead before some of the other items. In short: the black circle is always showing before the currently selected item. OK, I got a bit verbose there, but the idea got across hopefully. One more thing: the background color is 100% white.
    Up to this point, my solution was this: I placed black circles (small images with gradation and all, very nice looking) in front of ALL THREE ITEMS. Then I convert these into buttons. Then I choose the color set for the menu so that the unselected state is 100% white, plain and simple, with 100% opacity, thereby covering the black circles that should not show. Only in the selected and activated states does opacity for the button subpicture drop to 0%, thereby revealing the black circle that should be seen.
    The problem? Well, on some DVD-players (not on the XBOX 360 though), when an item is activated, all three circles show for a brief moment before the selected action starts (for example playing the movie). It also happens in Encore Preview. This is not logical at all and looks amateurish. I don't know why it happens, but my guess is that it wouldn't if I did this the "correct" way: by creating subpictures fo the buttons in the shape of circles. I understand the nice looking gradations must go out the window but that is a price I'm willing to pay.
    But now I run into an unexpected problem: I don't understand how to create a subpicture for the button that is a black circle. It seems the documentation in Encore and on forums in general takes for granted that you know how to do this.
    What I tried ws this: I created a monochrome, small image in bmp format - a black circle on white background. But this image just shows up as a black rectangle in Encore.
    What should I do? I should add that I have no real experience with Photoshop, so go slow if you go there.
    Regards,
    Nikolaj

    Basically, when one realizes the limitations of the Sub-picture Highlights, as set by the DVD-specs., it's easy to see the "workaround."
    A couple of the aspects of Sub-picture Highlights are:
    1.) 2-bit color (either ON, or OFF), from a limited color palette, with degrees of Transparency (the opposite of PS's Opacity).
    2.) they will appear on top of anything else on the Menu, including things like Button text/graphics.
    By constructing your Sub-picture Highlight in PS, you can use Masking to define where it will be, and where it will not be. In the case that prompted my article, the poster had a series of Text Buttons, and the Sub-picture Highlights were formed from that Text. The poster did not like the look of those 2-bit jagged blocks of color overlying the Text in the Button. The workaround is to "punch a hole" in the Sub-picture Highlight, so that it is hollow, where the Button's Text appears. This is done in PS, by using the "outline" of that Text to create a Mask for the Sub-picture Highlight. The jagged aspect can be adjusted a bit, by using a degree of Transparency (set in the non-Auto Color Set back in Encore). We still have a 2-bit color Sub-picture Highlight, and it still overlays the Button's Text, but now there is a hole in it, right where the Button's Text is located, and it is seen through that hole. The introduction of Transparency has the visual effect of "softening" the look of the 2-bit color, even though the jagged edges are still there - they just look softer. I went on to show how one could even use a second Sub-picture Highlight, that is just a bit larger than the first, and with more Transparency to simulate a "glow." Now, we cannot have a real "glow," because we are limited to that 2-bit color for the Sub-picture Highlight, but we can simulate it.
    Much of what a designer does is really slight of hand - illusion. They all have to work within the limitations of the DVD (or BD) specs., but with a bit of creativity, planning and some work in PS and Encore, they can create enough smoke and use enough mirrors to fool the user into believing that what they think they see skirt the DVD-specs. They do not, but that's where the illusion comes in.
    We get a lot of questions from people, who claim that one commercial DVD, or another, has full-color Sub-picture Highlights and they complain that Encore cannot do that - only 2-bit Sub-picture Highlights. What they are seeing, but do not realize it, is a dupe Menu, with a full-color graphic, and no real Sub-picture Highlight visible. Jeff gives full details on doing this. Same for those who have seen a Button with a duo-tone thumbnail, that turns full-color, when the Button is navigated to. Wow, how did they do that, and why can't Adobe Encore do that? Well, what they saw was a dupe Menu, with a full-color thumbnail and no visible real Sub-picture Highlight.
    Jeff shows how to create what appears to be at least a 3-color Sub-picture Highlight. It's really just 3 regular 2-bit color Sub-picture Highlights, with Masking to create the illusion that he beat the DVD-specs. Neat! [Being from the USA, I also liked that he used the US flag, but he could have chosen the French "Tri-color," or any other flag, without artwork.]
    These are all just tricks, but if the user buys into the illusion, who's to know?
    Enjoy,
    Hunt
    PS - though many of the great, older posts were lost, when the forum changeover happened, I strongly suggest reading the posts here. You can bypass ones that do not offer you anything, but almost every possible illusion has been discussed at least one time, and likely many, with some different workflows offered by those, who replied. Great reading.

Maybe you are looking for

  • Problem on reading and writing from from a *.txt file

    I get Problem on reading and writing from from a *.txt file. The following is the read() method... The software said the DataInputStream is depreciated. Can anyone help me please? public void read()     File file = new File("C://Documents and Setting

  • 1st generation ipod won't play music

    I have a first generation iPod that I have never really used before, but would like to use now. I downloaded iTunes 11 to see if it will work.  iTunes recognizes the device and allows me to set certain options. It also has several times said that it

  • Importing VHS tapes w/ADVC-300 help

    Please help, I'm converting a large number of VHS tapes to DVD using a ADVC-300 Analog to Digital Converter and a Sony VCR. Everything imports fine but everytime the signal hits a break in the tape (the old VHS snowstorm) iMovie stops importing. Sinc

  • How do I add a clickable link to a slideshow image.

    I apologize is this has been answered already, I searched the forum but didn't find any specific answers. Like many designs I have a slideshow of 4 images that loops on my front page. Each one is an ad. As they pop up I would like the user to be able

  • Cannot have acces to a object who extends JInternalFrame

    I have a window who extends the JInternalFrame object: public class MY_CLASS extends JInternalFrame In a menu I try to have a pointer to this window but that doesn't work. MY_CLASS               MyActiveFrame; MyActiveFrame = (JInternalFrame)MyDeskto