<?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: signal generation using the data from matlab script node in Signal Generators</title>
    <link>https://ni.lithium.com/t5/Signal-Generators/signal-generation-using-the-data-from-matlab-script-node/m-p/634391#M1069</link>
    <description>&lt;P&gt;Hello Raajit L&lt;/P&gt;
&lt;P&gt;Thanks for your kind reply. The upconverter is 5610, and the arbitrary waveform generator is 5441. The programming environment is Labview 8.2.&lt;/P&gt;
&lt;P&gt;At the transmitter, I'm using data from matlab script, which is in a loop, to generate waveform, and the data updates every 1 second.&lt;/P&gt;
&lt;P&gt;But at the receiver the constellation is out of order. So I put a module of "Clear Arbitrary Memory" in the loop. The result is that the constellation of receiver seems much better now, but there is error in transmitter namely: &lt;/P&gt;
&lt;P&gt;Error 1074126847 occurred at niFgen Clear Arbitrary Memory.vi. Drive Status:(Hex OxBFFA2001) The operation cannot be completed because the device is not configurable while it is generating a signal.&lt;/P&gt;
&lt;P&gt;I don't know how to figure it out.&lt;/P&gt;
&lt;P&gt;Best regards!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 08 Jan 2008 02:57:50 GMT</pubDate>
    <dc:creator>pjj</dc:creator>
    <dc:date>2008-01-08T02:57:50Z</dc:date>
    <item>
      <title>signal generation using the data from matlab script node</title>
      <link>https://ni.lithium.com/t5/Signal-Generators/signal-generation-using-the-data-from-matlab-script-node/m-p/633226#M1064</link>
      <description>&lt;DIV&gt;Hello everyone.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;I'm using the data from matlab script node to generate signal.&amp;nbsp;The data will change each time in a loop according the matlab script,&amp;nbsp; I'm wondering&amp;nbsp;whether the RF hardware (signal generator module)&amp;nbsp;will experience a&amp;nbsp;time break&amp;nbsp;in transmitting between the data changing?&lt;/DIV&gt;
&lt;DIV&gt;Thanks for your help:-)&lt;/DIV&gt;</description>
      <pubDate>Fri, 04 Jan 2008 09:46:29 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Signal-Generators/signal-generation-using-the-data-from-matlab-script-node/m-p/633226#M1064</guid>
      <dc:creator>pjj</dc:creator>
      <dc:date>2008-01-04T09:46:29Z</dc:date>
    </item>
    <item>
      <title>Re: signal generation using the data from matlab script node</title>
      <link>https://ni.lithium.com/t5/Signal-Generators/signal-generation-using-the-data-from-matlab-script-node/m-p/634144#M1068</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;The waveform generator actually has onboard memory, which is pretty much going to act like a buffer.&amp;nbsp; So depending on the size of the "data chunks" that you are writing to the onboard memory, you should see no delay.&amp;nbsp; This is a fairly commom application used for streaming purposes, where you would write data to the onboard memory and as soon as the generator is done with writing the previous waveform it will continue with the waveform/s written on the onboard memory.&amp;nbsp; &lt;BR /&gt;&lt;BR /&gt;You did mention that you are using RF hardware?&amp;nbsp; Are you using the 5671?&amp;nbsp; Could you please give me a little more details on what kind of hardware you are using, what programming environment you are using and whether you are using our RFSG driver.&lt;BR /&gt;&lt;BR /&gt;It would also help to know how much data you are writing and how fast/often you are writing it.&lt;BR /&gt;&lt;BR /&gt;Thank you,&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 07 Jan 2008 16:49:18 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Signal-Generators/signal-generation-using-the-data-from-matlab-script-node/m-p/634144#M1068</guid>
      <dc:creator>Raajit_Lall</dc:creator>
      <dc:date>2008-01-07T16:49:18Z</dc:date>
    </item>
    <item>
      <title>Re: signal generation using the data from matlab script node</title>
      <link>https://ni.lithium.com/t5/Signal-Generators/signal-generation-using-the-data-from-matlab-script-node/m-p/634391#M1069</link>
      <description>&lt;P&gt;Hello Raajit L&lt;/P&gt;
&lt;P&gt;Thanks for your kind reply. The upconverter is 5610, and the arbitrary waveform generator is 5441. The programming environment is Labview 8.2.&lt;/P&gt;
&lt;P&gt;At the transmitter, I'm using data from matlab script, which is in a loop, to generate waveform, and the data updates every 1 second.&lt;/P&gt;
&lt;P&gt;But at the receiver the constellation is out of order. So I put a module of "Clear Arbitrary Memory" in the loop. The result is that the constellation of receiver seems much better now, but there is error in transmitter namely: &lt;/P&gt;
&lt;P&gt;Error 1074126847 occurred at niFgen Clear Arbitrary Memory.vi. Drive Status:(Hex OxBFFA2001) The operation cannot be completed because the device is not configurable while it is generating a signal.&lt;/P&gt;
&lt;P&gt;I don't know how to figure it out.&lt;/P&gt;
&lt;P&gt;Best regards!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jan 2008 02:57:50 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Signal-Generators/signal-generation-using-the-data-from-matlab-script-node/m-p/634391#M1069</guid>
      <dc:creator>pjj</dc:creator>
      <dc:date>2008-01-08T02:57:50Z</dc:date>
    </item>
    <item>
      <title>Re: signal generation using the data from matlab script node</title>
      <link>https://ni.lithium.com/t5/Signal-Generators/signal-generation-using-the-data-from-matlab-script-node/m-p/635517#M1072</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;What is the VI that you are using to write to the onboard memory again?&amp;nbsp; You should just be able to use a NIFgen Write Waveform to write to the memory again.&amp;nbsp; What you could do is just monitor when the memory is free and only when write the memory.&amp;nbsp; There is an example called Fgen Arb Waveform Streaming.vi.&amp;nbsp; Here the memory is being checked before writing new data to the onboard memory. &lt;BR /&gt;&lt;BR /&gt;I think that might also be the reason why your constellation was not correct, because the data that was there onboard was getting erased, but I am just speculating here.&amp;nbsp; Please take a look at the example and see if that helps out any.&amp;nbsp; Also make sure that you are not changing any session parameters on the fly, which is probably what is causing the error that you are seeing.&lt;BR /&gt;&lt;BR /&gt;&lt;IMG src="http://forums.ni.com/attachments/ni/310/1072/1/fgenstreaming.jpg" /&gt;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;Message Edited by Raajit L on &lt;SPAN class="date_text"&gt;01-09-2008&lt;/SPAN&gt; &lt;SPAN class="time_text"&gt;11:26 AM&lt;/SPAN&gt;</description>
      <pubDate>Wed, 09 Jan 2008 17:26:51 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Signal-Generators/signal-generation-using-the-data-from-matlab-script-node/m-p/635517#M1072</guid>
      <dc:creator>Raajit_Lall</dc:creator>
      <dc:date>2008-01-09T17:26:51Z</dc:date>
    </item>
    <item>
      <title>Re: signal generation using the data from matlab script node</title>
      <link>https://ni.lithium.com/t5/Signal-Generators/signal-generation-using-the-data-from-matlab-script-node/m-p/635797#M1073</link>
      <description>&lt;DIV&gt;Hi Raajit L:&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Thanks a lot. I'll digest the example and get some insight from it. If I have further questions, can I contact with you by Email? Could you share your email address?&lt;/DIV&gt;
&lt;DIV&gt;Best Regards!&lt;/DIV&gt;</description>
      <pubDate>Thu, 10 Jan 2008 02:24:24 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Signal-Generators/signal-generation-using-the-data-from-matlab-script-node/m-p/635797#M1073</guid>
      <dc:creator>pjj</dc:creator>
      <dc:date>2008-01-10T02:24:24Z</dc:date>
    </item>
    <item>
      <title>Re: signal generation using the data from matlab script node</title>
      <link>https://ni.lithium.com/t5/Signal-Generators/signal-generation-using-the-data-from-matlab-script-node/m-p/636213#M1075</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;The best method to get in touch with me would be to post back on this forum or make a new thread for new questions.&amp;nbsp; Our support is a paid service where as the forums are free :).&amp;nbsp; We monitor the forums regularly and usually I will post back or someone else from my team will post back, if I am out of the office.&amp;nbsp; &lt;BR /&gt;&lt;BR /&gt;Let me know how the example works out for you and you can post back with any further questions.&amp;nbsp; &lt;BR /&gt;&lt;BR /&gt;Thank you and have a great day.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 10 Jan 2008 17:14:27 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Signal-Generators/signal-generation-using-the-data-from-matlab-script-node/m-p/636213#M1075</guid>
      <dc:creator>Raajit_Lall</dc:creator>
      <dc:date>2008-01-10T17:14:27Z</dc:date>
    </item>
    <item>
      <title>Re: signal generation using the data from matlab script node</title>
      <link>https://ni.lithium.com/t5/Signal-Generators/signal-generation-using-the-data-from-matlab-script-node/m-p/637284#M1077</link>
      <description>&lt;DIV&gt;Hello Raajit L:&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;I'm not so sure whether&amp;nbsp;"waveform streaming" you mentioned&amp;nbsp;is suitable in my application. I'll elaborate my&amp;nbsp;application here:&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;1.The data source for waveform is from Matlab script node, which generates data&amp;nbsp;almost every 1second (which is not a constant time slot, because it also depends on other blocks). &lt;/DIV&gt;
&lt;DIV&gt;2.The output data from Matlab&amp;nbsp;is&amp;nbsp;then fed into "niFgen create waveform", (this RF&amp;nbsp;labview program is done by other people, so I'm not very familiar with it).&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;I have a few questions:&lt;/DIV&gt;
&lt;DIV&gt;1. If the "niFgen create waveform" creates multiple waveforms in the onboard memory (since the output data from Matlab is updating)? &lt;/DIV&gt;
&lt;DIV&gt;If so, can I clear the former waveforms and only&amp;nbsp;generate the current waveform? The former waveforms are outdated and not needed.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;2. I tried the following case: abort generation -- configure waveform -- clear memory -- create waveform&lt;/DIV&gt;
&lt;DIV&gt;However it'll cause uncontinously generation, I don't want any delay or idle time.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;3. If&amp;nbsp;streaming is&amp;nbsp;applicable, how to realize it&amp;nbsp;to fit for my application?&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Thanks very much&lt;/DIV&gt;
&lt;DIV&gt;Best&amp;nbsp;Regards&lt;/DIV&gt;</description>
      <pubDate>Mon, 14 Jan 2008 05:48:52 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Signal-Generators/signal-generation-using-the-data-from-matlab-script-node/m-p/637284#M1077</guid>
      <dc:creator>pjj</dc:creator>
      <dc:date>2008-01-14T05:48:52Z</dc:date>
    </item>
    <item>
      <title>Re: signal generation using the data from matlab script node</title>
      <link>https://ni.lithium.com/t5/Signal-Generators/signal-generation-using-the-data-from-matlab-script-node/m-p/637389#M1078</link>
      <description>Hello Raajit L
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;I have some further questions about waveform streaming:&lt;/DIV&gt;
&lt;DIV&gt;1. How to define the onboard memory allocated to the waveform?&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; The parameters sets are: symbol rate: 8M/s,&amp;nbsp; center frequency:2.38GHz, the data from matlab script is 1920 complex data.&amp;nbsp;&amp;nbsp;&amp;nbsp; Does the&amp;nbsp;memory size&amp;nbsp;have some relationship with these parameters?&lt;/DIV&gt;
&lt;DIV&gt;2. Is initial data necessary to be set?&lt;/DIV&gt;
&lt;DIV&gt;3. What's role of the trigger? &lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Wish you would kindly help me with these questions.&lt;/DIV&gt;
&lt;DIV&gt;Best Regards:-)&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Mon, 14 Jan 2008 11:36:51 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Signal-Generators/signal-generation-using-the-data-from-matlab-script-node/m-p/637389#M1078</guid>
      <dc:creator>pjj</dc:creator>
      <dc:date>2008-01-14T11:36:51Z</dc:date>
    </item>
    <item>
      <title>Re: signal generation using the data from matlab script node</title>
      <link>https://ni.lithium.com/t5/Signal-Generators/signal-generation-using-the-data-from-matlab-script-node/m-p/638377#M1080</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;&lt;P class="MsoNormal"&gt;Here are the answers to your questions.&amp;nbsp; You probably
do not need to use the entire streaming example.&amp;nbsp; I just recommended that
to show you how to write to onboard memory.&amp;nbsp; The niFgen Allocate Waveform
is the VI that is allocating the memory up front.&amp;nbsp; This is the amount of
memory that will be reserved for your waveform.&amp;nbsp; This depends on how much
memory you as the user want to use and also on how much onboard memory your
card has.&amp;nbsp; We sell different generators with different memory options.&lt;/P&gt;

&lt;P class="MsoNormal"&gt;Only when you call your niFgen Initiate Generation function
the waveform generation will begin.&lt;SPAN style=""&gt;&amp;nbsp; &lt;/SPAN&gt;As
the waveform generates, onboard memory space becomes free.&lt;/P&gt;

&lt;P class="MsoNormal"&gt;You can monitor available memory (like in the example) as
the waveform is generating.&lt;SPAN style=""&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style=""&gt;&lt;!--[if gte vml 1]&gt;&lt;v:shapetype id="_x0000_t75"
 coordsize="21600,21600" o:spt="75" o:preferrelative="t" path="m@4@5l@4@11@9@11@9@5xe"
 filled="f" stroked="f"&gt;
 &lt;v:stroke joinstyle="miter"/&gt;
 &lt;v:formulas&gt;
  &lt;v:f eqn="if lineDrawn pixelLineWidth 0"/&gt;
  &lt;v:f eqn="sum @0 1 0"/&gt;
  &lt;v:f eqn="sum 0 0 @1"/&gt;
  &lt;v:f eqn="prod @2 1 2"/&gt;
  &lt;v:f eqn="prod @3 21600 pixelWidth"/&gt;
  &lt;v:f eqn="prod @3 21600 pixelHeight"/&gt;
  &lt;v:f eqn="sum @0 0 1"/&gt;
  &lt;v:f eqn="prod @6 1 2"/&gt;
  &lt;v:f eqn="prod @7 21600 pixelWidth"/&gt;
  &lt;v:f eqn="sum @8 21600 0"/&gt;
  &lt;v:f eqn="prod @7 21600 pixelHeight"/&gt;
  &lt;v:f eqn="sum @10 21600 0"/&gt;
 &lt;/v:formulas&gt;
 &lt;v:path o:extrusionok="f" gradientshapeok="t" o:connecttype="rect"/&gt;
 &lt;o:lock v:ext="edit" aspectratio="t"/&gt;
&lt;/v:shapetype&gt;&lt;v:shape id="Picture_x0020_7" o:spid="_x0000_i1027" type="#_x0000_t75"
 style='width:290.25pt;height:154.5pt;visibility:visible;mso-wrap-style:square'&gt;
 &lt;v:imagedata src="file:///C:\DOCUME~1\rlall\LOCALS~1\Temp\msohtmlclip1\01\clip_image001.png"
  o:title=""/&gt;
&lt;/v:shape&gt;&lt;![endif]--&gt;&lt;!--[if !vml]--&gt;&lt;!--[endif]--&gt;&lt;!--[if gte vml 1]&gt;&lt;v:shape id="Picture_x0020_16"
 o:spid="_x0000_i1026" type="#_x0000_t75" style='width:288.75pt;height:178.5pt;
 visibility:visible;mso-wrap-style:square'&gt;
 &lt;v:imagedata src="file:///C:\DOCUME~1\rlall\LOCALS~1\Temp\msohtmlclip1\01\clip_image003.png"
  o:title=""/&gt;
&lt;/v:shape&gt;&lt;![endif]--&gt;&lt;!--[if !vml]--&gt;&lt;!--[endif]--&gt;&lt;!--[if gte vml 1]&gt;&lt;v:shape id="Picture_x0020_1"
 o:spid="_x0000_i1025" type="#_x0000_t75" style='width:214.5pt;height:152.25pt;
 visibility:visible;mso-wrap-style:square'&gt;
 &lt;v:imagedata src="file:///C:\DOCUME~1\rlall\LOCALS~1\Temp\msohtmlclip1\01\clip_image005.png"
  o:title=""/&gt;
&lt;/v:shape&gt;&lt;![endif]--&gt;&lt;!--[if !vml]--&gt;&lt;!--[endif]--&gt;&lt;/SPAN&gt;&lt;/P&gt;



&lt;P class="MsoNormal"&gt;Calling the niFgen Write Waveform will write a &lt;B style=""&gt;new block &lt;/B&gt;of waveform data to the
onboard memory.&lt;/P&gt;&lt;P class="MsoNormal"&gt;&lt;IMG src="http://forums.ni.com/attachments/ni/310/1080/1/streaming%20fgen.jpg" /&gt;&lt;BR /&gt;&lt;/P&gt;

&lt;P class="MsoNormal"&gt;The initial data is not required to be set.&lt;SPAN style=""&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;

&lt;P class="MsoNormal"&gt;The reason I recommended the streaming example is because if
you close out and start the program every time that will induce a software lag
into your program.&lt;SPAN style=""&gt;&amp;nbsp; &lt;/SPAN&gt;You will be closing
and starting new sessions on the board every time.&lt;SPAN style=""&gt;&amp;nbsp; &lt;/SPAN&gt;Also, monitoring the memory is important, if
you perform a write function before the waveform from the board has been output
that will cause problems.&lt;SPAN style=""&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;

&lt;P class="MsoNormal"&gt;Triggering is used as an event to output a waveform on your
device.&lt;SPAN style=""&gt;&amp;nbsp; &lt;/SPAN&gt;More information on this can be
found in the NIFGEN help.&lt;SPAN style=""&gt;&amp;nbsp; &lt;/SPAN&gt;Start &amp;gt;&amp;gt;
Programs &amp;gt;&amp;gt; National Instruments &amp;gt;&amp;gt; NI Fgen &amp;gt;&amp;gt; Documentation
&amp;gt;&amp;gt; NI Signal Generators Help &amp;gt;&amp;gt; Search for streaming.&lt;/P&gt;&lt;P class="MsoNormal"&gt;Regards,&lt;/P&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;Message Edited by Raajit L on &lt;SPAN class="date_text"&gt;01-15-2008&lt;/SPAN&gt; &lt;SPAN class="time_text"&gt;10:37 AM&lt;/SPAN&gt;</description>
      <pubDate>Tue, 15 Jan 2008 16:37:36 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Signal-Generators/signal-generation-using-the-data-from-matlab-script-node/m-p/638377#M1080</guid>
      <dc:creator>Raajit_Lall</dc:creator>
      <dc:date>2008-01-15T16:37:36Z</dc:date>
    </item>
    <item>
      <title>Re: signal generation using the data from matlab script node</title>
      <link>https://ni.lithium.com/t5/Signal-Generators/signal-generation-using-the-data-from-matlab-script-node/m-p/638388#M1081</link>
      <description>It would also help if you could post a little more information on how you have everything set up and maybe a screenshot of your code, so that I can get a better understanding of how your program is set up. &lt;SPAN&gt;&lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://ni.lithium.com/i/smilies/16x16_smiley-happy.gif" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 15 Jan 2008 16:46:01 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Signal-Generators/signal-generation-using-the-data-from-matlab-script-node/m-p/638388#M1081</guid>
      <dc:creator>Raajit_Lall</dc:creator>
      <dc:date>2008-01-15T16:46:01Z</dc:date>
    </item>
    <item>
      <title>Re: signal generation using the data from matlab script node</title>
      <link>https://ni.lithium.com/t5/Signal-Generators/signal-generation-using-the-data-from-matlab-script-node/m-p/639829#M1084</link>
      <description>&lt;P&gt;Hello Raajit L:&lt;/P&gt;
&lt;P&gt;In streaming mode, I'm still not sure what size of memory to allocate to the waveform. I tried several amount of memory, each time I get an error like&amp;nbsp;"memory full"&amp;nbsp;even for a very large memory. Is there any relationship between the memory needed and the complex data symbols used for generating waveform?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have one more question about the block of "niFgen Create Waveform (poly)". &lt;/P&gt;
&lt;P&gt;In the help,&amp;nbsp; it's said that&amp;nbsp;that "signal generator must not be in the Generating state when you call any instance of this polymorphic VI".&amp;nbsp; But I find that the waveform handle (output) of this VI is increasing with the loop, for example:&amp;nbsp;10001,10002...and so on. Does it mean the dynamic waveform is being generated according to the varying data from matlab srcipt, or just being created in the&amp;nbsp;memory without&amp;nbsp;being generated&amp;nbsp;?&amp;nbsp; If the former case, then it's the right waveform for my application and I should look into other potential&amp;nbsp;problem. &lt;/P&gt;
&lt;P&gt;Attached is the vi for reference.&lt;/P&gt;
&lt;P&gt;Thanks a lot for your kind help:-)&lt;/P&gt;
&lt;P&gt;Best Regards!&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Thu, 17 Jan 2008 12:27:39 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Signal-Generators/signal-generation-using-the-data-from-matlab-script-node/m-p/639829#M1084</guid>
      <dc:creator>pjj</dc:creator>
      <dc:date>2008-01-17T12:27:39Z</dc:date>
    </item>
    <item>
      <title>Re: signal generation using the data from matlab script node</title>
      <link>https://ni.lithium.com/t5/Signal-Generators/signal-generation-using-the-data-from-matlab-script-node/m-p/641277#M1088</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Thank you for the VI, it is easier to see what you are trying to achieve now.&amp;nbsp; The waveform handle does change according to every new waveform that you are generating.&amp;nbsp; Could you tell me what kind of board you are using as your function generator? Each board has onboard memory and as long as there is enough memory onboard you should not be getting a memory full error.&amp;nbsp; The PXI 5421 for example comes with 8MB, 32MB or 512 MB options.&amp;nbsp; Could you give me the error code for the memory full error that you are getting.&amp;nbsp; It might be related to LabVIEW memory and not the FGEN memory.&amp;nbsp; &lt;BR /&gt;&lt;BR /&gt;The Create Waveform VI should be called before the FGEN is in writing state because the waveforms are written to the memory.&amp;nbsp; You could also use the &lt;A href="nifgenlv.chm::/niFgen_Set_Waveform_Next_Write_Position.html" target="_blank"&gt;niFgen Set 
Waveform Next Write Position VI&lt;/A&gt; to write the waveform to a particular position on the onboard memory.&amp;nbsp; Although, as you can see in the streaming VI that I posted before you could also wait for the memory to be empty and then write the next waveform.&amp;nbsp; This depends on how you want to utilize the memory.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt; &lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 21 Jan 2008 05:57:11 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Signal-Generators/signal-generation-using-the-data-from-matlab-script-node/m-p/641277#M1088</guid>
      <dc:creator>Raajit_Lall</dc:creator>
      <dc:date>2008-01-21T05:57:11Z</dc:date>
    </item>
    <item>
      <title>Re: signal generation using the data from matlab script node</title>
      <link>https://ni.lithium.com/t5/Signal-Generators/signal-generation-using-the-data-from-matlab-script-node/m-p/641291#M1089</link>
      <description>&lt;P&gt;Hello Raajit L:&lt;/P&gt;
&lt;P&gt;Thanks very much. The board I'm using is 5441 and the onboard memory is 256M.&lt;/P&gt;
&lt;P&gt;After modification like you mentioned, the error is 1074118519 occurred at niFgen Initiate Generation:&lt;/P&gt;
&lt;P&gt;Drive Status:(Hex OxBFFA4089)&lt;/P&gt;
&lt;P&gt;The data being written to the streaming waveform cannot keep up with the output. Decrease the sample rate or write data to the streaming waveform more frequently.&lt;/P&gt;
&lt;P&gt;(I&amp;nbsp;allocate the memory size to the waveform is 67108864, I guess it's 64M)&lt;/P&gt;
&lt;P&gt;Enclosed is the modified VI for your reference.&lt;/P&gt;
&lt;P&gt;Best Regards!&lt;/P&gt;
&lt;P&gt;Jingjing&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 21 Jan 2008 07:43:32 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Signal-Generators/signal-generation-using-the-data-from-matlab-script-node/m-p/641291#M1089</guid>
      <dc:creator>pjj</dc:creator>
      <dc:date>2008-01-21T07:43:32Z</dc:date>
    </item>
    <item>
      <title>Re: signal generation using the data from matlab script node</title>
      <link>https://ni.lithium.com/t5/Signal-Generators/signal-generation-using-the-data-from-matlab-script-node/m-p/641302#M1090</link>
      <description>&lt;DIV&gt;Hello Raajit L:&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;I get from "niFgen Query Arb Waveform Capabilities.vi" that the maximum waveform size is 67108864, so I allocate 64M to the waveform. Am I right?&lt;/DIV&gt;
&lt;DIV&gt;I guess the error I just mentioned in the last thread will be memory full,&amp;nbsp;if the case structure of query for the space available is deleted.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Best Regards!&lt;/DIV&gt;
&lt;DIV&gt;Jingjing&lt;/DIV&gt;</description>
      <pubDate>Mon, 21 Jan 2008 08:20:20 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Signal-Generators/signal-generation-using-the-data-from-matlab-script-node/m-p/641302#M1090</guid>
      <dc:creator>pjj</dc:creator>
      <dc:date>2008-01-21T08:20:20Z</dc:date>
    </item>
    <item>
      <title>Re: signal generation using the data from matlab script node</title>
      <link>https://ni.lithium.com/t5/Signal-Generators/signal-generation-using-the-data-from-matlab-script-node/m-p/641694#M1091</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;Hello Jingjing,&lt;BR /&gt;&lt;BR /&gt;After reading this thread, I have a question about your overall application. How is it that you are trying to output your data? Are you looking for real-time performance (e.g. you create IQ data in Matlab at least as fast as you generate (output) it)? Or are you interested in aperiodically generating a waveform (you want your generator to output a "packet," then cease generating until you download a new "packet")? Or do you want some kind of repetitive generation (you repeatedly output one waveform until you create a new one in matlab, then when the initial waveform completes, you begin repeatedly generating the new one). Let's call these options A, B, and C:&lt;BR /&gt;&lt;BR /&gt;A: real-time, continuous (what we would call &lt;I&gt;streaming&lt;/I&gt;) output&lt;BR /&gt;B: aperiodic waveform generation&lt;BR /&gt;C: repetitive waveform generation, with aperiodic updates&lt;BR /&gt;&lt;BR /&gt;Under which of these would you classify your application? A few comments for each scenario:&lt;BR /&gt;&lt;BR /&gt;A: This will require high performance to calculate data in real time and potentially large buffers requiring lots of memory. What is your IQ rate? Are you sure that your matlab computation can run fast enough on your machine?&lt;BR /&gt;B: This should be very simple, requiring only that you wait for generation to complete, clear the waveform, then begin generating again.&lt;BR /&gt;C: This can be done in &lt;I&gt;Arbitrary Sequence&lt;/I&gt; mode, which basically controls how multiple waveforms can be generated in succesion . More information on this technique can be found &lt;A href="http://zone.ni.com/devzone/cda/tut/p/id/5534" target="_blank"&gt;here&lt;/A&gt;. &lt;BR /&gt;&lt;BR /&gt;Please let us know your desired behavior, and that will help us to get you going in the right direction. I'm also intrigued by this application. Any details you have on the application as a whole would be very much appreciated. Thanks!&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;Message Edited by Ryan V[DE] on &lt;SPAN class="date_text"&gt;01-21-2008&lt;/SPAN&gt; &lt;SPAN class="time_text"&gt;01:48 PM&lt;/SPAN&gt;</description>
      <pubDate>Mon, 21 Jan 2008 19:48:24 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Signal-Generators/signal-generation-using-the-data-from-matlab-script-node/m-p/641694#M1091</guid>
      <dc:creator>Ryan_V[DE]</dc:creator>
      <dc:date>2008-01-21T19:48:24Z</dc:date>
    </item>
    <item>
      <title>Re: signal generation using the data from matlab script node</title>
      <link>https://ni.lithium.com/t5/Signal-Generators/signal-generation-using-the-data-from-matlab-script-node/m-p/641709#M1092</link>
      <description>Hi Jingjing,&lt;BR /&gt;&lt;BR /&gt;One more thing... I noticed you were sharing the 10 MHz reference of the two upconverters (and thus AWGs). I wanted to point out that though you will be phase locked and your clocks will not drift over time, the phase noise will be uncorrelated. &lt;BR /&gt;&lt;BR /&gt;Ryan&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 21 Jan 2008 20:11:56 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Signal-Generators/signal-generation-using-the-data-from-matlab-script-node/m-p/641709#M1092</guid>
      <dc:creator>Ryan_V[DE]</dc:creator>
      <dc:date>2008-01-21T20:11:56Z</dc:date>
    </item>
    <item>
      <title>Re: signal generation using the data from matlab script node</title>
      <link>https://ni.lithium.com/t5/Signal-Generators/signal-generation-using-the-data-from-matlab-script-node/m-p/641864#M1093</link>
      <description>&lt;P&gt;Hello Ryan&lt;/P&gt;
&lt;P&gt;Thank you for your kind support:-) &lt;BR /&gt;I cannot explicitly attribute it to one of the three scenarios. The overall application seems like a &lt;/P&gt;
&lt;P&gt;mixture of A and B. &lt;/P&gt;
&lt;P&gt;Just like you've mentioned, the matlab computation cannot run fast enough. One reason of time &lt;/P&gt;
&lt;P&gt;consuming is matrixes manipulation in the script, and another important reason is that the input of &lt;/P&gt;
&lt;P&gt;matlab depends on higher level(Tcp in my application). Thus matlab script computes in a loop of nearly &lt;/P&gt;
&lt;P&gt;1 second according to the data from Tcp link. (New data from Tcp will trigger a new cycle of the &lt;/P&gt;
&lt;P&gt;loop.)&lt;/P&gt;
&lt;P&gt;It's expected that before new data arrives from output of matlab, the waveform continously keeps &lt;/P&gt;
&lt;P&gt;generating using the current data. As soon as new data is created, the waveform should be update to &lt;/P&gt;
&lt;P&gt;overwrite the original one.&lt;/P&gt;
&lt;P&gt;It seems more like the option B. But I've already tested: abort generation-&amp;gt; clear memory-&amp;gt; create waveform. The result is no explicit waveform can be seen from spectrum analyser, since the duration of each waveform is small(about 1second). At the receiver, only noise is captured.&lt;/P&gt;
&lt;P&gt;If the application can be attributed to option B, then how can I solve the above problem due to abort generation and clear memory?&lt;/P&gt;
&lt;P&gt;Thanks^_^&lt;/P&gt;
&lt;P&gt;Best Regards!&lt;BR /&gt;Jingjing&lt;/P&gt;
&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 22 Jan 2008 03:13:59 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Signal-Generators/signal-generation-using-the-data-from-matlab-script-node/m-p/641864#M1093</guid>
      <dc:creator>pjj</dc:creator>
      <dc:date>2008-01-22T03:13:59Z</dc:date>
    </item>
    <item>
      <title>Re: signal generation using the data from matlab script node</title>
      <link>https://ni.lithium.com/t5/Signal-Generators/signal-generation-using-the-data-from-matlab-script-node/m-p/641900#M1094</link>
      <description>Hello Jingjing,&lt;BR /&gt;&lt;BR /&gt;Are you sure this would not fall under option C? It sounds like it to me. In this scenario, you would always have something on the output of the generator. You would also generate contiguous waveforms, updating with a new waveform only after the prior waveform has been completely generated. The basic method is that you set up a sequence of two waveforms, with a burst software trigger to advance to the next waveform. You first download waveform #1, then begin generating. When you have new data, you then download waveform # 2, and send a software trigger. Upon completion of the current iteration of waveform #1, the AWG will begin generating waveform #2. Again, when you have new data, you overwrite waveform #1 and send a software trigger, etc., etc. Effectively, you are "hopping" back and forth between the two waveforms, guaranteeing continuous output. Does that sound like it would work? Thanks!&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 22 Jan 2008 05:33:30 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Signal-Generators/signal-generation-using-the-data-from-matlab-script-node/m-p/641900#M1094</guid>
      <dc:creator>Ryan_V[DE]</dc:creator>
      <dc:date>2008-01-22T05:33:30Z</dc:date>
    </item>
    <item>
      <title>Re: signal generation using the data from matlab script node</title>
      <link>https://ni.lithium.com/t5/Signal-Generators/signal-generation-using-the-data-from-matlab-script-node/m-p/642523#M1095</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;P&gt;Hello Ryan:&lt;/P&gt;
&lt;P&gt;Thanks for your suggestion:-) I've gained your point. But one question is that for "niFgen Create Advanced Arb Sequence.vi",&amp;nbsp; I don't know to fill "loop counts array ". But the duration of each waveform is not configurable since it depends on the time&amp;nbsp;duration between the data arrival from&amp;nbsp;higher application(Tcp). Can&amp;nbsp;this problem be solved?&lt;/P&gt;
&lt;P&gt;Best Regards!&lt;/P&gt;
&lt;P&gt;Jingjing&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jan 2008 02:58:12 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Signal-Generators/signal-generation-using-the-data-from-matlab-script-node/m-p/642523#M1095</guid>
      <dc:creator>pjj</dc:creator>
      <dc:date>2008-01-23T02:58:12Z</dc:date>
    </item>
    <item>
      <title>Re: signal generation using the data from matlab script node</title>
      <link>https://ni.lithium.com/t5/Signal-Generators/signal-generation-using-the-data-from-matlab-script-node/m-p/642527#M1096</link>
      <description>Hello Ryan:
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;One more question:&amp;nbsp;I got from the help that "The signal generator must not be in the Generating state when you call this VI". &lt;/DIV&gt;
&lt;DIV&gt;So I guess when downloading a new waveform, this vi cannot work and change the waveform on the fly.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Best Regards!&lt;/DIV&gt;
&lt;DIV&gt;Jingjing&lt;BR /&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 23 Jan 2008 03:34:16 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Signal-Generators/signal-generation-using-the-data-from-matlab-script-node/m-p/642527#M1096</guid>
      <dc:creator>pjj</dc:creator>
      <dc:date>2008-01-23T03:34:16Z</dc:date>
    </item>
  </channel>
</rss>

