<?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: Multithreading and COMCallback in LabWindows/CVI</title>
    <link>https://ni.lithium.com/t5/LabWindows-CVI/Multithread-and-COMCallback/m-p/2398990#M61908</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;/P&gt;
&lt;P&gt;me too I have a problem with that kind of application. I use multithreading communication between my evalboard (stm32F4) and NIcvi (my PC equipped&amp;nbsp;with &amp;nbsp;corei3 processors ) I&amp;nbsp;am not using a high baud rate (9600) but the communication is always faster than the cvi code execution. I wonder, if there is someone who can help me in improving&amp;nbsp;execution time and thinks in advance. (the code is not complicated I have just to verify a checksum of every received packet ).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 22 Apr 2013 16:04:41 GMT</pubDate>
    <dc:creator>hadjrami</dc:creator>
    <dc:date>2013-04-22T16:04:41Z</dc:date>
    <item>
      <title>Multithread and COMCallback</title>
      <link>https://ni.lithium.com/t5/LabWindows-CVI/Multithread-and-COMCallback/m-p/104747#M8391</link>
      <description>Hi ! I've written a program that receives datas from serial port and plot them in a strip chart. The problem is that if too data reaches the pc, the program freezes and dies. I thought to put the ComCallback in another thread and plot blocks of datas for example 5 times per second. But how can I make the COMCallback run inside another thread ??&lt;BR /&gt;Thank you !! &lt;BR /&gt;</description>
      <pubDate>Fri, 17 Oct 2003 15:33:30 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabWindows-CVI/Multithread-and-COMCallback/m-p/104747#M8391</guid>
      <dc:creator>Massimiliano Conti</dc:creator>
      <dc:date>2003-10-17T15:33:30Z</dc:date>
    </item>
    <item>
      <title>Re: Multithread and COMCallback</title>
      <link>https://ni.lithium.com/t5/LabWindows-CVI/Multithread-and-COMCallback/m-p/104748#M8392</link>
      <description>Hi Max,&lt;BR /&gt;&lt;BR /&gt;the best documentation you can get to learn how to implement Multithreading in CVI is located in this folder on your computer&lt;BR /&gt;...\Program Files\National Instruments\MeasurementStudio\CVI\bin&lt;BR /&gt;and it is called MultithreadingOverview.PDF.&lt;BR /&gt;&lt;BR /&gt;This document include some neat examples for your needings.&lt;BR /&gt;If this answer is not fully going to solve your problems, consider also posting an e-mail message on the web at &lt;BR /&gt;http://www.ni.com/ask&lt;BR /&gt;&lt;BR /&gt;or consider calling our Technical Support service to get in touch with one of us. The phone number is 02.41309217.&lt;BR /&gt;&lt;BR /&gt;Ciao&lt;BR /&gt;&lt;BR /&gt;A. Deotto&lt;BR /&gt;Applications Engineer&lt;BR /&gt;National Instruments &lt;BR /&gt;</description>
      <pubDate>Fri, 17 Oct 2003 16:27:30 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabWindows-CVI/Multithread-and-COMCallback/m-p/104748#M8392</guid>
      <dc:creator>AlessioD</dc:creator>
      <dc:date>2003-10-17T16:27:30Z</dc:date>
    </item>
    <item>
      <title>Re: Multithread and COMCallback</title>
      <link>https://ni.lithium.com/t5/LabWindows-CVI/Multithread-and-COMCallback/m-p/104749#M8393</link>
      <description>Hello&lt;BR /&gt;&lt;BR /&gt;That docuement is an excellant reference, especially if its the first time you are using CVI with multithreading. &lt;BR /&gt;&lt;BR /&gt;You can also look into using the PostDeferredCallToThread() function inside the callback. allows you to run functions in seperate threads and its really simple to setup. All you need is a thread that stays alive during the process and calls ProcessSystemEvents ( refer to the docuementation for PostDeferredCallToThread() ), and with the thread ID, you can basically tell CVI to call your custom function after the COM callback is called. SO the COM callback will still run in the UI thread, but now you can "defer" the processing inside the callback to run in another thread. &lt;BR /&gt;&lt;BR /&gt;I hope this helps&lt;BR /&gt;&lt;BR /&gt;Bilal Durrani&lt;BR /&gt;NI &lt;BR /&gt;</description>
      <pubDate>Mon, 20 Oct 2003 19:50:27 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabWindows-CVI/Multithread-and-COMCallback/m-p/104749#M8393</guid>
      <dc:creator>bilalD</dc:creator>
      <dc:date>2003-10-20T19:50:27Z</dc:date>
    </item>
    <item>
      <title>Re: Multithreading and COMCallback</title>
      <link>https://ni.lithium.com/t5/LabWindows-CVI/Multithread-and-COMCallback/m-p/2398990#M61908</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;/P&gt;
&lt;P&gt;me too I have a problem with that kind of application. I use multithreading communication between my evalboard (stm32F4) and NIcvi (my PC equipped&amp;nbsp;with &amp;nbsp;corei3 processors ) I&amp;nbsp;am not using a high baud rate (9600) but the communication is always faster than the cvi code execution. I wonder, if there is someone who can help me in improving&amp;nbsp;execution time and thinks in advance. (the code is not complicated I have just to verify a checksum of every received packet ).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Apr 2013 16:04:41 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabWindows-CVI/Multithread-and-COMCallback/m-p/2398990#M61908</guid>
      <dc:creator>hadjrami</dc:creator>
      <dc:date>2013-04-22T16:04:41Z</dc:date>
    </item>
  </channel>
</rss>

