<?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: How to input a time to a Function node? in LabVIEW</title>
    <link>https://ni.lithium.com/t5/LabVIEW/How-to-input-a-time-to-a-Function-node/m-p/1111659#M491069</link>
    <description>Tick count is a timer that keeps running forever from the moment you startup the computer. Its absolute value is rather meaningless and has an interval of 4294967 s = 1193 hours after which the counter rolls over and starts from 0 again. However the most meaningful use of the Tick Count is the calculation of the difference between two values. Since it is an unsigned integer the result of a subtraction is correct even if the counter has rolled over in between (of course rolling over more than once can't be detected and therefore won't be possible to time in such a way).&lt;DIV class="message-edit-history"&gt;&lt;SPAN class="edit-author"&gt;Message Edited by rolfk on &lt;/SPAN&gt;&lt;SPAN class="local-date"&gt; 04-15-2010&lt;/SPAN&gt;&lt;SPAN class="local-time"&gt; 08:30 AM&lt;/SPAN&gt;&lt;/DIV&gt;</description>
    <pubDate>Thu, 15 Apr 2010 06:30:14 GMT</pubDate>
    <dc:creator>rolfk</dc:creator>
    <dc:date>2010-04-15T06:30:14Z</dc:date>
    <item>
      <title>How to input a time to a Function node?</title>
      <link>https://ni.lithium.com/t5/LabVIEW/How-to-input-a-time-to-a-Function-node/m-p/1107183#M489254</link>
      <description>&lt;P&gt;How can i input a time input as the time to count&amp;nbsp;elapsed when a condition turn to be true!&lt;/P&gt;&lt;P&gt;or- just how to input a time value in&amp;nbsp;millisecond, i have tried to using the Tick count, but this can only produce one value, what want is a&amp;nbsp;continuous&amp;nbsp;time value, used to generate a voltage out put according to the time value. &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Apr 2010 09:34:43 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/How-to-input-a-time-to-a-Function-node/m-p/1107183#M489254</guid>
      <dc:creator>fourteen</dc:creator>
      <dc:date>2010-04-08T09:34:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to input a time to a Function node?</title>
      <link>https://ni.lithium.com/t5/LabVIEW/How-to-input-a-time-to-a-Function-node/m-p/1107190#M489259</link>
      <description>&lt;P&gt;Hi fourteen,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;have a look at the Waveform datatype. This one includes a start time and dt between the samples...&lt;/P&gt;</description>
      <pubDate>Thu, 08 Apr 2010 09:44:24 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/How-to-input-a-time-to-a-Function-node/m-p/1107190#M489259</guid>
      <dc:creator>GerdW</dc:creator>
      <dc:date>2010-04-08T09:44:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to input a time to a Function node?</title>
      <link>https://ni.lithium.com/t5/LabVIEW/How-to-input-a-time-to-a-Function-node/m-p/1107886#M489573</link>
      <description>Use Build Waveform function.</description>
      <pubDate>Fri, 09 Apr 2010 01:13:16 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/How-to-input-a-time-to-a-Function-node/m-p/1107886#M489573</guid>
      <dc:creator>KateB</dc:creator>
      <dc:date>2010-04-09T01:13:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to input a time to a Function node?</title>
      <link>https://ni.lithium.com/t5/LabVIEW/How-to-input-a-time-to-a-Function-node/m-p/1110887#M490773</link>
      <description>&lt;P&gt;Sorry, I am still not quite understand this&amp;nbsp;function.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;this time input is still not the real time ~ i mean, what i expected is that the graph will be generated&amp;nbsp;continuously&amp;nbsp;as &amp;nbsp;the time pass away,&amp;nbsp;&lt;/P&gt;&lt;P&gt;like&amp;nbsp;continuously&amp;nbsp;&amp;nbsp;drawing out the graph!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but this waveform built is more like generate the profile instantly.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It's more like the one i have attached below.&lt;/P&gt;&lt;P&gt;The reason i am asking this is because i wanna to&amp;nbsp;continuously&amp;nbsp;input a position command to the motor according to the profile i have generate, and i want to this time to be the real time. Not the digital time in the computer screen that you have seen, but the real time.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and i have ask this question before, haven't got the answer yet!&lt;/P&gt;&lt;P&gt;&lt;A href="http://forums.ni.com/ni/board/message?board.id=170&amp;amp;message.id=489245#M489245" target="_blank"&gt;http://forums.ni.com/ni/board/message?board.id=170&amp;amp;message.id=489245#M489245&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Apr 2010 08:59:18 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/How-to-input-a-time-to-a-Function-node/m-p/1110887#M490773</guid>
      <dc:creator>fourteen</dc:creator>
      <dc:date>2010-04-14T08:59:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to input a time to a Function node?</title>
      <link>https://ni.lithium.com/t5/LabVIEW/How-to-input-a-time-to-a-Function-node/m-p/1110890#M490775</link>
      <description>&lt;P&gt;LabView is such a powerful software, can't even generate a signal like a watch???&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What i want is a watch, a timer, which can count time&amp;nbsp;elapsed&amp;nbsp;&amp;nbsp;between two command that i send to the computer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and this should give a series of number just like the watch(timer) did, according the the resolution that i have defined.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It's really unbelievable that &amp;nbsp;it would be so hard for me to find a such program form &amp;nbsp;all the labview functions, I really can not believable this!&lt;/P&gt;</description>
      <pubDate>Wed, 14 Apr 2010 09:07:26 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/How-to-input-a-time-to-a-Function-node/m-p/1110890#M490775</guid>
      <dc:creator>fourteen</dc:creator>
      <dc:date>2010-04-14T09:07:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to input a time to a Function node?</title>
      <link>https://ni.lithium.com/t5/LabVIEW/How-to-input-a-time-to-a-Function-node/m-p/1110893#M490776</link>
      <description>&lt;P&gt;Hi 14,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"it would be so hard for me to find..."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also don't understand what's so hard to look at the time functions palette &lt;img id="smileywink" class="emoticon emoticon-smileywink" src="https://ni.lithium.com/i/smilies/16x16_smiley-wink.gif" alt="Smiley Wink" title="Smiley Wink" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From your attached block diagram:&lt;/P&gt;&lt;P&gt;You already use a "time resolution" which translates to the dt input of the waveform datatype.&lt;/P&gt;&lt;P&gt;You don't use any start time in your VI, so we suggested to use the system time...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"Not the digital time in the computer screen that you have seen, but the real time."&lt;/P&gt;&lt;P&gt;Could you please&amp;nbsp;clarify the difference between "time in the computer screen" and "real time"?&lt;/P&gt;&lt;P&gt;For me there's no difference (atleast no difference bigger than ~200ms) &lt;img id="smileywink" class="emoticon emoticon-smileywink" src="https://ni.lithium.com/i/smilies/16x16_smiley-wink.gif" alt="Smiley Wink" title="Smiley Wink" /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Apr 2010 09:12:08 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/How-to-input-a-time-to-a-Function-node/m-p/1110893#M490776</guid>
      <dc:creator>GerdW</dc:creator>
      <dc:date>2010-04-14T09:12:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to input a time to a Function node?</title>
      <link>https://ni.lithium.com/t5/LabVIEW/How-to-input-a-time-to-a-Function-node/m-p/1110902#M490778</link>
      <description>&lt;P&gt;what i mean by ~~ the time you seen in the screen ~&amp;nbsp;&lt;/P&gt;&lt;P&gt;is like a velocity profile, and you see that the X axis is for the time. and this is just the time that you defined ~&lt;/P&gt;&lt;P&gt;how are you going to let the machine move according to the number that you have entered??&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I do have seen many functions under the timing, but i just can not find the one that i want.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Non of them seems being suitable for me.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For me, the main problem is how to command those time signals. &lt;/P&gt;&lt;P&gt;How to command the machine to move according to the time that i have defined.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;it's like, at what time, i want this machine to do something ` but how can i tell the machine?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and i want this process being in a&amp;nbsp;millisecond scale, &amp;nbsp;in order to have a smoothly position profile.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Apr 2010 09:28:17 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/How-to-input-a-time-to-a-Function-node/m-p/1110902#M490778</guid>
      <dc:creator>fourteen</dc:creator>
      <dc:date>2010-04-14T09:28:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to input a time to a Function node?</title>
      <link>https://ni.lithium.com/t5/LabVIEW/How-to-input-a-time-to-a-Function-node/m-p/1110910#M490780</link>
      <description>&lt;P&gt;Hi fourteen,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"how can i tell the machine?"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Read the manual of the machine!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Most "machines" don't work like "at time x move to position y", but rather "from current postion move with speed z (+ acceleration&amp;nbsp;a) for time t". Think about it...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the timing palette you find functions that give you the current time as timestamp and functions that give you a relative ms counter. Both values can be used for math functions. What else do you need?&lt;/P&gt;</description>
      <pubDate>Wed, 14 Apr 2010 09:36:12 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/How-to-input-a-time-to-a-Function-node/m-p/1110910#M490780</guid>
      <dc:creator>GerdW</dc:creator>
      <dc:date>2010-04-14T09:36:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to input a time to a Function node?</title>
      <link>https://ni.lithium.com/t5/LabVIEW/How-to-input-a-time-to-a-Function-node/m-p/1110933#M490786</link>
      <description>&lt;P&gt;what i mean by "at time X move to a position Y" is because the machine i am currently dealing with is just a simple DC motor, and i want to input a velocity profile, this profile will tell the machine to move at a certain speed at a specific time, and this command will last for a sample time!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can the&amp;nbsp;timestamp&amp;nbsp;function return me the time in millisecond?? I didn't make it out.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For the &amp;nbsp;relation ms counter, which function do you mention?&amp;nbsp;&lt;/P&gt;&lt;P&gt;the tick count? the wait? wait until next ms multiple??&lt;/P&gt;&lt;P&gt;can those function return me the time&amp;nbsp;elapsed&amp;nbsp;&amp;nbsp;just like the watch?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if all those are possible ~ can you show me a sample,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;something like ~ the Vi will output 10&lt;/P&gt;&lt;P&gt;&amp;nbsp;at 10s m and out put a 20 at 20s,&amp;nbsp;&lt;/P&gt;&lt;P&gt;and continuously last for 2 minutes???&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;what i want is exactly like this ~ nothing about the machine~ &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i just want to out put some number at a certain time ! at the time interval for my case should be millisecond&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Apr 2010 10:24:24 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/How-to-input-a-time-to-a-Function-node/m-p/1110933#M490786</guid>
      <dc:creator>fourteen</dc:creator>
      <dc:date>2010-04-14T10:24:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to input a time to a Function node?</title>
      <link>https://ni.lithium.com/t5/LabVIEW/How-to-input-a-time-to-a-Function-node/m-p/1110949#M490796</link>
      <description>&lt;P&gt;Hi fourteen,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;what kind of hardware (computer) do you use? Windows will not be suitable for (accurate) ms intervals...&lt;/P&gt;&lt;P&gt;Unless&amp;nbsp;you use a waveform (with dt=1ms), including a curve for your output values. DAQmx is able to output that too...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- There's an ExpressVI named "Elapsed time", have you played with it?&lt;/P&gt;&lt;P&gt;- Otherwise take the current "tick count" and&amp;nbsp;subtract an older tick count to get the elapsed time.&lt;/P&gt;&lt;P&gt;- Timestamps also include µsecond values, it's just a matter of formatting (or type conversion to DBL)...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For an example you will have to wait a little bit &lt;img id="smileywink" class="emoticon emoticon-smileywink" src="https://ni.lithium.com/i/smilies/16x16_smiley-wink.gif" alt="Smiley Wink" title="Smiley Wink" /&gt;&lt;/P&gt;&lt;DIV class="message-edit-history"&gt;&lt;SPAN class="edit-author"&gt;Message Edited by GerdW on &lt;/SPAN&gt;&lt;SPAN class="local-date"&gt; 04-14-2010&lt;/SPAN&gt;&lt;SPAN class="local-time"&gt; 01:01 PM&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 14 Apr 2010 11:01:32 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/How-to-input-a-time-to-a-Function-node/m-p/1110949#M490796</guid>
      <dc:creator>GerdW</dc:creator>
      <dc:date>2010-04-14T11:01:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to input a time to a Function node?</title>
      <link>https://ni.lithium.com/t5/LabVIEW/How-to-input-a-time-to-a-Function-node/m-p/1111649#M491065</link>
      <description>&lt;P&gt;the tick count works just like a watch ~ but how to set the number to 0 when a press the stop button?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i use a indicator to indicate the time value ~ but this value is just keep on increasing, and can not return to zero.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Apr 2010 06:02:09 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/How-to-input-a-time-to-a-Function-node/m-p/1111649#M491065</guid>
      <dc:creator>fourteen</dc:creator>
      <dc:date>2010-04-15T06:02:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to input a time to a Function node?</title>
      <link>https://ni.lithium.com/t5/LabVIEW/How-to-input-a-time-to-a-Function-node/m-p/1111657#M491067</link>
      <description>For the tick count~ every time i stop the VI, when i restarted it, the output value will started from the last value when i stop it, how can i make it to started from 0?</description>
      <pubDate>Thu, 15 Apr 2010 06:25:48 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/How-to-input-a-time-to-a-Function-node/m-p/1111657#M491067</guid>
      <dc:creator>fourteen</dc:creator>
      <dc:date>2010-04-15T06:25:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to input a time to a Function node?</title>
      <link>https://ni.lithium.com/t5/LabVIEW/How-to-input-a-time-to-a-Function-node/m-p/1111659#M491069</link>
      <description>Tick count is a timer that keeps running forever from the moment you startup the computer. Its absolute value is rather meaningless and has an interval of 4294967 s = 1193 hours after which the counter rolls over and starts from 0 again. However the most meaningful use of the Tick Count is the calculation of the difference between two values. Since it is an unsigned integer the result of a subtraction is correct even if the counter has rolled over in between (of course rolling over more than once can't be detected and therefore won't be possible to time in such a way).&lt;DIV class="message-edit-history"&gt;&lt;SPAN class="edit-author"&gt;Message Edited by rolfk on &lt;/SPAN&gt;&lt;SPAN class="local-date"&gt; 04-15-2010&lt;/SPAN&gt;&lt;SPAN class="local-time"&gt; 08:30 AM&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 15 Apr 2010 06:30:14 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/How-to-input-a-time-to-a-Function-node/m-p/1111659#M491069</guid>
      <dc:creator>rolfk</dc:creator>
      <dc:date>2010-04-15T06:30:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to input a time to a Function node?</title>
      <link>https://ni.lithium.com/t5/LabVIEW/How-to-input-a-time-to-a-Function-node/m-p/1111660#M491070</link>
      <description>&lt;P&gt;Hi fourteen,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;use a loop. Outside the loop you get a "start" tickcount value. In the loop you subtract the start value from the current tickcount to get "elapsed time" starting from zero. Simple math &lt;img id="smileywink" class="emoticon emoticon-smileywink" src="https://ni.lithium.com/i/smilies/16x16_smiley-wink.gif" alt="Smiley Wink" title="Smiley Wink" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;TickCount just provides a counter. To get elapsed time you have to subtract two counter values...&lt;/P&gt;</description>
      <pubDate>Thu, 15 Apr 2010 06:30:14 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/How-to-input-a-time-to-a-Function-node/m-p/1111660#M491070</guid>
      <dc:creator>GerdW</dc:creator>
      <dc:date>2010-04-15T06:30:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to input a time to a Function node?</title>
      <link>https://ni.lithium.com/t5/LabVIEW/How-to-input-a-time-to-a-Function-node/m-p/1111743#M491104</link>
      <description>&lt;P&gt;I have managed to get a example for a tick count to reset the counter.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Right now i am facing another problem, as the lab computer so not have matlab, i have to use the function node to generate the&amp;nbsp;trapezoidal&amp;nbsp;profile!&lt;/P&gt;&lt;P&gt;i use Vmax, Amax, t, Pi as the input, and Po as the out put, and define &lt;/P&gt;&lt;P&gt;double p0, p1, p2, t0, t1, t2;&lt;/P&gt;&lt;P&gt;and the things i wrote in the function is below, but labview keep on show me that there are errors, like con not use double to define the data type, and the use of if else is also wrong~ &lt;/P&gt;&lt;P&gt;can you do me a fever to point out where is the problem and how to correct this??&lt;/P&gt;&lt;P&gt;or which way i should go to solve this problem??&lt;/P&gt;&lt;P&gt;Can i use this to command the position continuously???&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;p0 = (Vmax*Vmax)/Amax;&lt;/P&gt;&lt;P&gt;t0 =sqrt(Pi/Amax);&lt;/P&gt;&lt;P&gt;p1=(Vmax*Vmax)/(Amax*2);&lt;/P&gt;&lt;P&gt;p2=Pi-p1;&lt;/P&gt;&lt;P&gt;t1= Vmax/Amax;&lt;/P&gt;&lt;P&gt;t2= Pi/Vmax;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if (Pi &amp;lt;=p0 &amp;amp;&amp;amp; t&amp;lt;=t0) {&lt;/P&gt;&lt;P&gt;Po=0.5*Amax*t*t&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;elseif (Pi&amp;lt;=p0 &amp;amp;&amp;amp; t0&amp;lt;t&amp;lt;=2*t0)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;Po=Pi-0.5*Amax*(2*t0-t)*(2*t0-t)&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;elseif (Pi&amp;gt;po &amp;amp;&amp;amp; t&amp;lt;=t1) {&lt;/P&gt;&lt;P&gt;Po=0.5*Amax*t*t;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;elseif(Pi&amp;gt;P0 &amp;amp;&amp;amp; t1&amp;lt;t&amp;lt;=t2) {&lt;/P&gt;&lt;P&gt;Po=p1+Vmax(t-t1)&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;elseif(Pi&amp;gt;p0 &amp;amp;&amp;amp; t2&amp;lt;t&amp;lt;(t2+t1) )&amp;nbsp;&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;Po=Pi-0.5*Amax*(t-t2)(t-t2)&lt;/P&gt;&lt;P&gt;}&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Apr 2010 08:23:24 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/How-to-input-a-time-to-a-Function-node/m-p/1111743#M491104</guid>
      <dc:creator>fourteen</dc:creator>
      <dc:date>2010-04-15T08:23:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to input a time to a Function node?</title>
      <link>https://ni.lithium.com/t5/LabVIEW/How-to-input-a-time-to-a-Function-node/m-p/1111752#M491109</link>
      <description>&lt;P&gt;Hi fourteen,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;a formula node does not work with MatLab code (here you have to use the mathscript node), but resembles C code. It also has an extensive context help, where you could read a lot on syntax and supported functions!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;All of the shown program could be done in pure LV functions (it mostly InRange-checks and simple math).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But it seems you are focused on your single approach to solve the problem.&lt;/P&gt;&lt;P&gt;You approach uses the current time to calculate the needed output. Could be done, but involves some overhead as you have to calculate for each and every time you want.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would advise a different approach:&lt;/P&gt;&lt;P&gt;First calculate all needed outputs by creating a waveform (concat different waveforms like RampUp, Hold, RampDown). Then you simply need to index the value corresponding to current time! Also some output devices support to output a waveform, so you wouldn't need a loop anymore to output the whole "profile"...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Apr 2010 08:32:30 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/How-to-input-a-time-to-a-Function-node/m-p/1111752#M491109</guid>
      <dc:creator>GerdW</dc:creator>
      <dc:date>2010-04-15T08:32:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to input a time to a Function node?</title>
      <link>https://ni.lithium.com/t5/LabVIEW/How-to-input-a-time-to-a-Function-node/m-p/1111836#M491140</link>
      <description>&lt;P&gt;Yeah, i have been trying to use basic labview&amp;nbsp;structure to solve this problem also! but i think that if i can use a function node, or a matlab script, this would be easier.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And eventually i find out that this function node can not deliver what i want, and yet the lab computer do not have a matlab.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;for your suggestion, the main problem, i have no ideal about how to &amp;nbsp;index the value corresponding to current time, that's why even&amp;nbsp;though&amp;nbsp;i have come out the wave form, i do not know how to implant it. And that why i have been trying to find a time source to continuously input the time to get the position.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;May be, i still have to go to the old way, use &amp;nbsp;the basic logical functions in the labview to create the result i want.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;All the problem that i was facing is because labview is such a huge thing, there are so many functions inside, and i only know very few of it, even i have read some of the books about labview, still get confused all the time.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;just now, when i try to create a simple function according to the given simple, i still do not know how to get the icon that has been shown in the example, there are just so many options.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much, i think i will still have many stupid questions to ask before i get what i want.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Apr 2010 10:11:49 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/How-to-input-a-time-to-a-Function-node/m-p/1111836#M491140</guid>
      <dc:creator>fourteen</dc:creator>
      <dc:date>2010-04-15T10:11:49Z</dc:date>
    </item>
  </channel>
</rss>

