Use a Mathscript code which has both x and y data and produce it in a waveform

I have this MATLAB code:
t = (0:0.0000001:0.01);
f1 = 0.0011312*cos(2*pi*49400*t);
f2 = 0.003936*cos(2*pi*100*t);
H = (f1*f2);
x = ((2.93464*10^-10)*H);
ms = 1000;
M = ms (coth(x) - (1./x));
I want to plot it on Labview 8.0 as M vs. t with 'M' being Y-axis and 't' being X-axis.
I tried using MathScript to type the MATLAB code but when i add an output to it and connected it to a waveform, it does nothing....
Thanks,
K

On Dec 9, 5:10 pm, Kris Matrix <[email protected]> wrote:
> I have this MATLAB code:
> &nbsp;
> t = (0:0.0000001:0.01);f1 = 0.0011312*cos(2*pi*49400*t);f2 = 0.003936*cos(2*pi*100*t);H = (f1*f2);x = ((2.93464*10^-10)*H);ms = 1000;M = ms (coth(x) - (1./x));
> &nbsp;
> I want to plot it on Labview 8.0 as M vs. t with 'M' being Y-axis and 't' being X-axis.
> &nbsp;
> I tried using MathScript to type the MATLAB code but when i add an output to it and connected it to a waveform, it does nothing....
> &nbsp;
> Thanks,
> K
Two suggestions.
There maybe some exceptions but most of the time with Labview's Data
flow approach to programming you need to calculate all of your output
points before you pass the data to a waveform graph. How are you
accumulating your data?
Instead of using a Labview waveform graph to plot the data use a
Matlab plot command to plot the data. Once you can successfully plot
the data with a Matlab plot command then go onto the next step and try
to plot the data with a Labview waveform graph.
Howard

Similar Messages

  • Hi...I have a Macbook mid-2009 which has both Mac OS Mountain Lion and Windows 8.1 32-bit?Is there a way to install bootcamp on the windows side?

    I have both  Mac OS Mountain Lion  and  Windows 8.1 32-bit installed....The machine is Macbook Mid 2009...Whatever i do i can't install and use bootcamp on the Windows side.........Apple Support says it only supports Windows 64-bit  which my machine cannot install.......and when i tried to install Bootcamp 4 it says it only supports Windows 7 .........Is there no way to install and use Bootcamp without buying another computer?

    Boot Camp - Apple Support
    Boot Camp- System requirements for Microsoft Windows operating systems

  • Truncating the leading zeros which has both numbers and characters

    Hello Everyone,
    Can anybody pls help me to truncate the leading zeros in the incoming file structure which has both the numbers and characters.
    Thanks,
    Chinna

    HI,
    Write a UDF like this ..
    public class test {
    public static void main(String[] args) {
    System.out.println(args[0].replaceAll("^0*",""));
    Also you can use XSLT for this.
    Try the XPath function number($string) in your XSLT and see if it does what you want. Since it turns any XPath object into a number, the leading zeros won't appear.
    Use it ike this
    <xsl:variable name="a">
    <xsl:call-template name="removeLeadingZeros">
    <xsl:with-param name="phone">
    <xsl:value-of select="EVENT/ContactPhone"/>
    </xsl:with-param>
    </xsl:call-template>
    </xsl:variable>
    <xsl:template name="removeLeadingZeros">
    <xsl:param name="phone"/>
    <xsl:message>
    <xsl:value-of select="$phone"/>
    </xsl:message>
    <xsl:choose>
    <xsl:when test="starts-with($phone,'0')">
    <xsl:call-template name="removeLeadingZeros">
    <xsl:with-param name="phone">
    <xsl:value-of
    select="substring-after($phone,'0' )"/>
    </xsl:with-param>
    </xsl:call-template>
    </xsl:when>
    <xsl:otherwise>
    <xsl:value-of select="$phone"/>
    </xsl:otherwise>
    </xsl:choose>
    </xsl:template>
    Regards
    Aashish Sinha
    PS : Reward Point if Helpful

  • I have several episodes of a TV show that say "download error, tap to retry" and when I do it just repeats that error message.  Can I get it to work? If not can I get reimbursed for the episodes I'm missing?  I'm using an iPad one which has worked fine B4

    I have several episodes of a TV show where it says download error, tap to retry and when I do it repeats the error message.  Can I get it to work or get reimbursed for the ones I'm missing?  I'm using an iPad 1 which has worked fine for all the others.

    Hi AlpineJean,
    I'm sorry to hear you are having issues downloading some episodes to your iPad.
    I would first suggest you sign out of your iTunes account on your iPad, restart the device and sign back in.
    Settings > iTunes & App Stores > Tap on your Apple ID account > Tap Sign Out
    Click on the link below for additional troubleshooting steps with more details and screenshots.
    I've quoted some helpful highlights for you:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store
    To view or download previously purchased:
    TV Shows on iOS
    Open the iTunes Store on your device.
    Make sure you are signed in with the same Apple ID you used for the original purchase.
    Tap More from the bottom navigation bar.
    Tap TV Shows.
    Locate the TV show episode or series you would like to download.
    Once you've located the TV shows you are looking for, tap the download button.
    The TV show will begin downloading.
    Previous purchases may be unavailable if they have been refunded or are no longer on the iTunes Store. Downloading previously purchased movies and TV shows requires iTunes 10.6 or later.
    If this does not resolve your issue, please follow these instructions for support from the iTunes Store:
    How to report an issue with your iTunes Store, App Store, Mac App Store, or iBookstore purchase
    Find the email receipt for your purchase.
    Click Report a Problem under the app that is having the issue.
    When prompted, enter the Apple ID and password you used to purchase the item, then click Report a Problem.
    Click Report a Problem next to the item you are having an issue with.
    From the Choose Problem dropdown menu, choose the appropriate issue.
    Follow the onscreen instructions and—if prompted—type a description of the problem into the text field.
    Click Submit to have your issue reviewed.
    Have a great day!
    - Judy

  • Firefox 6.0.1 update won't recognize the home page which uses a password access which has been saved into 6.0.1.

    Question
    Firefox 6.0.1 update won't recognize the home page which uses a password access which has been saved into 6.0.1. The security shows permissions for the web site but doesn't recognize that I've been accessing the web page every day since I updated to 6.0.1. Web page trying to access is <http://classic.wunderground.com/cgi-bin/findweather/getForecast?query=zmw:98108.5.99999> This home page worked fine on earlier versions of Firefox and continues with Internet Explorer 9.0.

    Looks like its been fixed for me, not by 6.0.1 but by - Todd Siechen from http://www.dvdthemepak.com
    Check out his post at:
    http://discussions.apple.com/thread.jspa?threadID=335417
    Todd... I love you xxx
    After having a nightmare since first day of version 6.0.0 and still no fix after 6.0.1, even after Apple requested the files... You fixed my problem... Checked for duplicate fonts and found about 5, selected "Resolve Duplicates" and everything great, even with old projects... You should work for Apple!
    Check out the 2 posts:
    http://discussions.apple.com/thread.jspa?threadID=313109
    http://discussions.apple.com/thread.jspa?threadID=366383
    1) The first and biggest culprit we found to be causing problems is with font issues. In order to alleviate this problem, open Font Book and make sure all the Fonts that are turned on have no dots next to them. If they do then select them and select "Resolve Duplicates" from the Edit menu. If you are using a different font manager then use whatever tool is available to make sure no duplicate fonts are loaded. iDVD 6 is very sensitive to this.
    Many many many many many many many many many many many many many thanks.
    Regards,
    Charles Teton
    United Independent Pictures Ltd.
    http://www.makingmymovie.com

  • HT1918 i would like to use my credit card which has other country billing address who i can do it. every time i tryed it is only give me the us address.  could you please help me on this

    i would like to use my credit card which has other country billing address who i can do it. every time i tryed it is only give me the us address.  could you please help me on this

    You will need to update the address and country that you have on your account, and if using a credit card then that will need to be registered to that new address - you should be able to update them logging into your account via Store > View Account menu option on your computer's iTunes
    Changing account info : http://support.apple.com/kb/HT1918

  • I tried to share my iPhone calendar with my husband using iCloud. Now he has both our events on his phone but my phone only has just my events, not his.

    I tried to share my iPhone calendar with my husband using iCloud. Now he has both our events on his phone but my phone only has just my events, not his.

        D13, thanks for these details. This an awesome clue. Are you able to connect to this Wi-Fi connection with other devices? Let's try a few steps to resolve this issue.
    First, reset the network in Settings>General>Reset>Reset Network and power your device off/on.
    Secondly, delete the Wi-Fi connection in Settings>Select your Wi-Fi>Forget this Network and the try to connect to that Wi-Fi again.
    Lastly, try creating your Wi-Fi connection. Tap Settings>Enable Wi-Fi ON. From Choose a Network, select Other. Enter the Wi-Fi network name. Select Security. Select the Wi-Fi network type then select Other Network. Enter the Wi-Fi network password then select Join
    Keep us posted.
    LasinaH_VZW
    Follow us on Twitter @VZWSupport

  • Everytime i go on Itunes it tells me i have to restore my ipod but everytime i do, it just tells me to do it again? When i try and use my ipod it just has a connect to itunes sign and nothing else, it wont work at all?

    Everytime i go on Itunes it tells me i have to restore my ipod but everytime i do, it just tells me to do it again? When i try and use my ipod it just has a connect to itunes sign and nothing else, it wont work at all?
    I updated itunes and everything but nothings working and i just can't figure it out?
    Everytime i restore the stupid thing, it never pops up in my itunes again like its supposed to!

    Loop
    Maybe:
    Restore loop (being prompted to restore again after a restore successfully completes)
    Troubleshoot your USB connection. If the issue persists, out-of-date or incorrectly configured third-party security software may be causing this issue. Please follow Troubleshooting security software issues. .
    Next try placing in DFU mode and then restoring.
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    Then try restoring on another computer.
    Last, make an appointment at the Genius Bar of an Apple store.
    Apple Retail Store - Genius Bar

  • I bought my i pod touch from us but i live in india .i have been using this from many days fr just a few days before something went wrong with it and the date and time has changed what do i do?

    i bought my i pod touch from us but i live in india .i have been using this from many days fr just a few days before something went wrong with it and the date and time has changed what do i do?

    Have you went to Settings>General Time&Date and correct the time.  Make sure the time zone is correct too.  Also go to Settings>General>Inernational and make sure the Gergorian calender is selected.

  • Trying to find out which adapter to buy which has 30pin socket on one end and lightening plug on other - any help really valued - thanks

    trying to find out which adapter to buy which has 30pin socket on one end and lightening plug on other - any help really valued - thanks

    Many thanks - I was typing in the wrong keywords - fr your time and trouble.
    Dave

  • IPhoto 5.0.4 has suddenly stopped working. It loads the photo library and then freezes. Rebuilding the library has no effect which has about 3.5MB of data. PowerBook G4 OS 10.5.8

    iPhoto 5.0.4 has suddenly stopped working. It loads the photo library and then freezes. Rebuilding the library has no effect which has about 3.5MB of data. PowerBook G4 OS 10.5.8

    Create a new account (systempreferences -> accounts or Users & Groups on 10.7)  and see if the problem is repeated there. If it is, then a re-install of the app might be indicated. If it's not, then it's likely the app is okay and the problem is something in the main account.
    Regards
    TD

  • I just installed Adobe InDesign CC 2014 and now I can't scale objects/type using Command+Shift Key. Has anyone else had this problem and if so, any solution?

    I just installed Adobe InDesign CC 2014 and now I can't scale objects/type using Command+Shift Key. Has anyone else had this problem and if so, any solution?

    There is a conflict with third party software or your system keyboard shortcuts. Lately, there have been many postings about conflicts with Chrome extensions so check there first.
    It's not a new problem. I wrote about it on InDesignSecrets.com in 2006:
    The Missing Keystrokes Mystery | InDesignSecrets

  • After using headphones for about an hour both my built-in speak and head phone stop working

    After using headphones for about an hour both my built-in speak and head phone stop working, what could be wrong? I have checked system preferences and all appears ok there but still no sound

    Your put your Air into sleep mode with headphones attached, I assume.
    Upgrade to the latest OS to resolve that issue.
    10.9.2    Apple icon upper left  "software update"

  • I have a brand new 8gb iPod touch 4g which has 0.43gb of other data right out of the box.

    I have a brand new 8gb iPod touch 4g which has 0.43gb of other data before I've even put anything on it.I appreciate the OS takes up about 1.5gb, but this is in addition to that. There is absolutely nothing on the iPod and I've already done a factory reset.
    The amount of yellow "other" data seems to go up and down if I click sync (although it is not syncing anything). There is no other data on the device. Is this normal?

    That is about right.  Normally it is about 1/2 GB.  If can grow because of corrupt files.  Then it is necessary to restore the iPod sometimes from backup works but sometimes a restore to factory defaults/new iPod is required.  The other is made of ite items that do not fit the other categories listed.

  • Geting and setting date and time in oracle using jdbc

    can u send me a sample snippet which shows me how to set date and time to a column in oracle database where the column datatype is date.
    and also send me the sample code to get the date and time from the above said column
    thanks in advance

    If you want DATE with time normalized to midnight, use java.sql.Date. If you really want time, with hours/minutes/seconds/millis, use java.sql.Timestamp.
    As for the best way to interact with the database, use java.sql.PreparedStatement and its get/setDate and get/setTimestamp methods. Those will escape dates for you properly.
    Look for a JDBC tutorial on-line to see how to do this, or http://www.javaalmanac.com for the java.sql package examples.
    %

Maybe you are looking for

  • In search of assistance

    I am a teacher and my son is approachng his 16th birthday. He is in need of a computer for school. He is a good student that works hard. He has a 3.8gpa. Does anyone know of a place that may offer some assistance for people who can't afford them? Tha

  • SchAgr not appear in MD04

    Hi, I have a user, who created a Sales SchAgr but it was not appear in MD04. This is only happened to a few newly created material. What would be missing? Thanks.

  • Combining a JSPDynpage and a Dynpage into one iView

    Hi! Does anyone have any idea if it is possible (and if yes, how) to display a JSPDynpage and a Dynpage in the same iView in different trays. Not a page with two iViews though, basically one component containing both of them. I know it's a bit tricky

  • Duplicate records generated on same Key in Layout !!

    Dear Experts, We are facing a serious problem in our Forecasting Application. Its generating duplicate records on same key which results in wrong results and negative numbers. Also since this is not happening constantly but at certain time so difficu

  • Webservices for the ERM in SAP GRC AC 5.3.

    Hello, I want to know where I can find all the webservices for the ERM in SAP GRC AC 5.3. Best Regards.