<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: MATHSCRIPT in LabView 7.1 in LabVIEW</title>
    <link>https://ni.lithium.com/t5/LabVIEW/MATHSCRIPT-in-LabView-7-1/m-p/2353374#M734603</link>
    <description>&lt;P&gt;Hi Ray,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks a lot for your help. I have solve it. I got 10 points for 't1' and 11 points for 't' . Its exactly as the mathscript.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thanks all of you.&lt;/P&gt;</description>
    <pubDate>Mon, 18 Mar 2013 00:23:07 GMT</pubDate>
    <dc:creator>winter888</dc:creator>
    <dc:date>2013-03-18T00:23:07Z</dc:date>
    <item>
      <title>MATHSCRIPT in LabView 7.1</title>
      <link>https://ni.lithium.com/t5/LabVIEW/MATHSCRIPT-in-LabView-7-1/m-p/2351224#M734183</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How can I use MATHSCRIPT in LabView 7.1 ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thank you&lt;/P&gt;</description>
      <pubDate>Fri, 15 Mar 2013 02:31:34 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/MATHSCRIPT-in-LabView-7-1/m-p/2351224#M734183</guid>
      <dc:creator>winter888</dc:creator>
      <dc:date>2013-03-15T02:31:34Z</dc:date>
    </item>
    <item>
      <title>Re: MATHSCRIPT in LabView 7.1</title>
      <link>https://ni.lithium.com/t5/LabVIEW/MATHSCRIPT-in-LabView-7-1/m-p/2351236#M734187</link>
      <description>&lt;P&gt;I don't think it existed with LabVIEW 7.1..&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I will have to check...&amp;nbsp; But if I rely on my memory, I think it came out with LabVIEW 8.0.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Mar 2013 02:46:49 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/MATHSCRIPT-in-LabView-7-1/m-p/2351236#M734187</guid>
      <dc:creator>Ray.R</dc:creator>
      <dc:date>2013-03-15T02:46:49Z</dc:date>
    </item>
    <item>
      <title>Re: MATHSCRIPT in LabView 7.1</title>
      <link>https://ni.lithium.com/t5/LabVIEW/MATHSCRIPT-in-LabView-7-1/m-p/2351248#M734190</link>
      <description>&lt;P&gt;Ray is correct that LV 8.0 is the first version that supported Mathscript. I believe ealier versions had the Matlab node, so if you have Matlab, you might be able to convert your code to it. I'm not sure how similar the languages are.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Mar 2013 03:30:27 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/MATHSCRIPT-in-LabView-7-1/m-p/2351248#M734190</guid>
      <dc:creator>tst</dc:creator>
      <dc:date>2013-03-15T03:30:27Z</dc:date>
    </item>
    <item>
      <title>Re: MATHSCRIPT in LabView 7.1</title>
      <link>https://ni.lithium.com/t5/LabVIEW/MATHSCRIPT-in-LabView-7-1/m-p/2351506#M734237</link>
      <description>&lt;P&gt;Thnk you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can anyone please help me to convert this MatLab code into LabView ...!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;stop = 0.001;&lt;BR /&gt;start = -0.001;&lt;BR /&gt;point = 10;&lt;BR /&gt;distance = ( stop - start ) / point;&lt;BR /&gt;t = ( start : distance : stop );&lt;BR /&gt;t1 = t(find(t~=stop))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;t1 will give me array of 10 points.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thank you.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Mar 2013 10:22:26 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/MATHSCRIPT-in-LabView-7-1/m-p/2351506#M734237</guid>
      <dc:creator>winter888</dc:creator>
      <dc:date>2013-03-15T10:22:26Z</dc:date>
    </item>
    <item>
      <title>Re: MATHSCRIPT in LabView 7.1</title>
      <link>https://ni.lithium.com/t5/LabVIEW/MATHSCRIPT-in-LabView-7-1/m-p/2351598#M734262</link>
      <description>&lt;P&gt;I have no idea what the find function does, but if the point is to generate an array of N points from A to B then you can just call the Ramp Pattern VI (search for it in the palette) and if you don't have it, just use a for loop with A+((A-B)/N*i).&lt;/P&gt;</description>
      <pubDate>Fri, 15 Mar 2013 12:07:30 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/MATHSCRIPT-in-LabView-7-1/m-p/2351598#M734262</guid>
      <dc:creator>tst</dc:creator>
      <dc:date>2013-03-15T12:07:30Z</dc:date>
    </item>
    <item>
      <title>Re: MATHSCRIPT in LabView 7.1</title>
      <link>https://ni.lithium.com/t5/LabVIEW/MATHSCRIPT-in-LabView-7-1/m-p/2351726#M734285</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://ni.lithium.com/t5/user/viewprofilepage/user-id/238694"&gt;@winter888&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Thnk you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can anyone please help me to convert this MatLab code into LabView ...!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;stop = 0.001;&lt;BR /&gt;start = -0.001;&lt;BR /&gt;point = 10;&lt;BR /&gt;distance = ( stop - start ) / point;&lt;BR /&gt;t = ( start : distance : stop );&lt;BR /&gt;t1 = t(find(t~=stop))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;t1 will give me array of 10 points.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thank you.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Is the code below what you are looking for?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I looked up the last function...&amp;nbsp; Did you want the indices for all values which are not equal to 0.001???&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;IMG src="https://ni.lithium.com/ni/attachments/ni/170/734285/1/math.PNG" border="0" alt="" title="" align="middle" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;pretend that -5.4E-20 is zero.. &lt;/P&gt;</description>
      <pubDate>Fri, 15 Mar 2013 13:43:04 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/MATHSCRIPT-in-LabView-7-1/m-p/2351726#M734285</guid>
      <dc:creator>Ray.R</dc:creator>
      <dc:date>2013-03-15T13:43:04Z</dc:date>
    </item>
    <item>
      <title>Re: MATHSCRIPT in LabView 7.1</title>
      <link>https://ni.lithium.com/t5/LabVIEW/MATHSCRIPT-in-LabView-7-1/m-p/2352688#M734474</link>
      <description>&lt;P&gt;Thanks Ray,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Nice code. Is there any way I can make that wired long digit number to zero in my array?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And as there should be 10 points, it would be nice if I can delete the last number, which is equal to 'stop'.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And that's what I did in my mathscript with 't1'.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Mar 2013 00:32:06 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/MATHSCRIPT-in-LabView-7-1/m-p/2352688#M734474</guid>
      <dc:creator>winter888</dc:creator>
      <dc:date>2013-03-16T00:32:06Z</dc:date>
    </item>
    <item>
      <title>Re: MATHSCRIPT in LabView 7.1</title>
      <link>https://ni.lithium.com/t5/LabVIEW/MATHSCRIPT-in-LabView-7-1/m-p/2352694#M734475</link>
      <description>&lt;P&gt;Use Array Subset.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Lynn&lt;/P&gt;</description>
      <pubDate>Sat, 16 Mar 2013 00:37:28 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/MATHSCRIPT-in-LabView-7-1/m-p/2352694#M734475</guid>
      <dc:creator>johnsold</dc:creator>
      <dc:date>2013-03-16T00:37:28Z</dc:date>
    </item>
    <item>
      <title>Re: MATHSCRIPT in LabView 7.1</title>
      <link>https://ni.lithium.com/t5/LabVIEW/MATHSCRIPT-in-LabView-7-1/m-p/2352838#M734502</link>
      <description>&lt;P&gt;There are a few ways of doing this.&amp;nbsp; The approach similar to:&amp;nbsp; t1 = t(find(t~=stop)) is not recommended because searching a double or ext precision may not provide a match.&amp;nbsp; The reason I initially asked about the function is because you mentionned that it returned an array of 10 elements, whereas it really returns 9.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Unfortunately, the method shown below is not flexible as it will only remove the last value, which should always be the stop value in this exercise..&amp;nbsp;&amp;nbsp; You can use Array subset (preferred as Lynn mentionned) or delete from array.&amp;nbsp; There are other tricks, but I think these 2 are the more efficient ones.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;IMG src="https://ni.lithium.com/ni/attachments/ni/170/734502/1/matlab.PNG" border="0" alt="" title="" align="middle" /&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Mar 2013 14:41:53 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/MATHSCRIPT-in-LabView-7-1/m-p/2352838#M734502</guid>
      <dc:creator>Ray.R</dc:creator>
      <dc:date>2013-03-16T14:41:53Z</dc:date>
    </item>
    <item>
      <title>Re: MATHSCRIPT in LabView 7.1</title>
      <link>https://ni.lithium.com/t5/LabVIEW/MATHSCRIPT-in-LabView-7-1/m-p/2352918#M734520</link>
      <description>&lt;P&gt;Like I said before, using the Ramp Pattern VI would be simplest, but you could also do it with the for loop, which will produce simpler code and where you won't need to cut the array, but it will have exactly the right number of points to begin with.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As for the long number, the method I suggested might or might not return it as a proper zero (that depends on the way floating point calculations work), but you can at least display it as zero by right clicking the numeric control inside the array, going into the display format page and changing the display format to display fewer digits of precision.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To learn more about LabVIEW, I suggest you try looking at some of &lt;A href="http://wiki.lavag.org/LabVIEW_tutorial#External_Links" target="_blank"&gt;these tutorials&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Mar 2013 17:06:06 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/MATHSCRIPT-in-LabView-7-1/m-p/2352918#M734520</guid>
      <dc:creator>tst</dc:creator>
      <dc:date>2013-03-16T17:06:06Z</dc:date>
    </item>
    <item>
      <title>Re: MATHSCRIPT in LabView 7.1</title>
      <link>https://ni.lithium.com/t5/LabVIEW/MATHSCRIPT-in-LabView-7-1/m-p/2352986#M734536</link>
      <description>&lt;P&gt;tst is right.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Using the Ramp function is much easier.&amp;nbsp; Same issues with the use of doubles..&lt;/P&gt;
&lt;P&gt;I was too focused on reproducing the Matlab code that I lost sight of the basic function that it represented.&lt;/P&gt;
&lt;P&gt;The Ramp function in LabVIEW is similar to:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;linspace(start, stop, points)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There is an interesting variation of the results with each method.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://ni.lithium.com/ni/attachments/ni/170/734536/1/usingRampFn.PNG" border="0" alt="" title="" align="middle" /&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Mar 2013 18:46:06 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/MATHSCRIPT-in-LabView-7-1/m-p/2352986#M734536</guid>
      <dc:creator>Ray.R</dc:creator>
      <dc:date>2013-03-16T18:46:06Z</dc:date>
    </item>
    <item>
      <title>Re: MATHSCRIPT in LabView 7.1</title>
      <link>https://ni.lithium.com/t5/LabVIEW/MATHSCRIPT-in-LabView-7-1/m-p/2353374#M734603</link>
      <description>&lt;P&gt;Hi Ray,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks a lot for your help. I have solve it. I got 10 points for 't1' and 11 points for 't' . Its exactly as the mathscript.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thanks all of you.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Mar 2013 00:23:07 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/MATHSCRIPT-in-LabView-7-1/m-p/2353374#M734603</guid>
      <dc:creator>winter888</dc:creator>
      <dc:date>2013-03-18T00:23:07Z</dc:date>
    </item>
    <item>
      <title>Re: MATHSCRIPT in LabView 7.1</title>
      <link>https://ni.lithium.com/t5/LabVIEW/MATHSCRIPT-in-LabView-7-1/m-p/2353378#M734605</link>
      <description>&lt;P&gt;Hi Ray,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ramp is a great function. Thanks a lot.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Mar 2013 00:37:20 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/MATHSCRIPT-in-LabView-7-1/m-p/2353378#M734605</guid>
      <dc:creator>winter888</dc:creator>
      <dc:date>2013-03-18T00:37:20Z</dc:date>
    </item>
    <item>
      <title>Re: MATHSCRIPT in LabView 7.1</title>
      <link>https://ni.lithium.com/t5/LabVIEW/MATHSCRIPT-in-LabView-7-1/m-p/2353380#M734606</link>
      <description>&lt;P&gt;Then you should mark Ray's message as the solution to your question rather than your own thank you message.&amp;nbsp; First you will have to go to the options menu to the upper right of your message to unmark it as the solution.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Mar 2013 00:45:43 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/MATHSCRIPT-in-LabView-7-1/m-p/2353380#M734606</guid>
      <dc:creator>RavensFan</dc:creator>
      <dc:date>2013-03-18T00:45:43Z</dc:date>
    </item>
    <item>
      <title>Re: MATHSCRIPT in LabView 7.1</title>
      <link>https://ni.lithium.com/t5/LabVIEW/MATHSCRIPT-in-LabView-7-1/m-p/2353386#M734607</link>
      <description>&lt;P&gt;Hi Ravens,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sorry for that. I didn't mean to insult Ray. I appriciate the help. But there is a bit difference between Ray's and mine code. I changed a bit, and it is the exactly what mathscripts 't' and 't1' dose. Please see my attached file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Mar 2013 01:10:04 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/MATHSCRIPT-in-LabView-7-1/m-p/2353386#M734607</guid>
      <dc:creator>winter888</dc:creator>
      <dc:date>2013-03-18T01:10:04Z</dc:date>
    </item>
    <item>
      <title>Re: MATHSCRIPT in LabView 7.1</title>
      <link>https://ni.lithium.com/t5/LabVIEW/MATHSCRIPT-in-LabView-7-1/m-p/2353410#M734608</link>
      <description>&lt;P&gt;Really?&amp;nbsp; What you&amp;nbsp;have looks pretty much like what Ray gave you in message #9.&amp;nbsp; So he gave you 99% of the answer, and your one tweak of the way to derive the final array is the solution?&lt;/P&gt;</description>
      <pubDate>Mon, 18 Mar 2013 02:43:34 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/MATHSCRIPT-in-LabView-7-1/m-p/2353410#M734608</guid>
      <dc:creator>RavensFan</dc:creator>
      <dc:date>2013-03-18T02:43:34Z</dc:date>
    </item>
  </channel>
</rss>

