<?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: 2d raster scan photon counting optimization in LabVIEW</title>
    <link>https://ni.lithium.com/t5/LabVIEW/2d-raster-scan-photon-counting-optimization/m-p/3044125#M867775</link>
    <description>&lt;P&gt;Just drop a&amp;nbsp;Channel&amp;nbsp;property node in there.&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://ip1.i.lithium.com/f86f15992848106771a52d64084413b02abfb6c3/68747470733a2f2f6e692e6c69746869756d2e636f6d2f74352f696d6167652f736572766572706167652f696d6167652d69642f31353837353969413531303134383833384139454641382f696d6167652d73697a652f6f726967696e616c3f763d6d70626c2d312670783d2d31" border="0" alt="Capture1.PNG" title="Capture1.PNG" align="center" /&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 05 Nov 2014 19:42:09 GMT</pubDate>
    <dc:creator>JÞB</dc:creator>
    <dc:date>2014-11-05T19:42:09Z</dc:date>
    <item>
      <title>2d raster scan photon counting optimization</title>
      <link>https://ni.lithium.com/t5/LabVIEW/2d-raster-scan-photon-counting-optimization/m-p/3041719#M867270</link>
      <description>&lt;P&gt;I have written a VI for a 2-D raster scan and&amp;nbsp;counting TTL pulses from a photon counter at every pixel.&lt;/P&gt;
&lt;P&gt;It seems to be working fine and is serving its purpose for the time being. However there are a couple of thing I&amp;nbsp;want to improve&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Currently, I have 2 loops, on within the other for each of the axes (x and y) for the scan. Then within the inner loop, I am counting the pulses. Now, the problem I am facing is that I have not figured out how to start the counter from 0 at every iteration. Instead, what I am doing is running the counter twice in a for loop and outputting the difference between these two iterations using shift registers.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What I would like to do is avoid having to count twice for each iteration. I tried the start task and stop task vi but they seem to be doing nothing.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The other thing that would be nice is to avoid having the loops. I have heard that it is "expensive" to use the loops and they cause some overhead time in the program. I don't really think it is bothering me at this point but I think if I have to do faster scanning rates then it might. Currently I am scanning at &amp;gt;100ms per pixel.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(And also, just FYI, my raster wavefrom is slightly different in that in is a "triangle"instead of sawtooth. i.e. it goes to the end of the fast axis, then starts the next line from the end rather than the beginning to avoid sudden jerks to my hardware.)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have attached my VI. thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Aditi&lt;/P&gt;</description>
      <pubDate>Mon, 03 Nov 2014 18:00:59 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/2d-raster-scan-photon-counting-optimization/m-p/3041719#M867270</guid>
      <dc:creator>IUCHEM</dc:creator>
      <dc:date>2014-11-03T18:00:59Z</dc:date>
    </item>
    <item>
      <title>Re: 2d raster scan photon counting optimization</title>
      <link>https://ni.lithium.com/t5/LabVIEW/2d-raster-scan-photon-counting-optimization/m-p/3041847#M867290</link>
      <description>&lt;P&gt;I cannot help with your counter issues.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The loops do have some overhead. It is on the order of a few nanoseconds. While loops are probably slightly slower than for loops because of the extra testing. Compared to your DAQ timing the loop time is completely negligible. Look at the test program below.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since you know (or can calculate) the number of steps, for loops are probably the better choice. I think the conditional for loop is available in LV 2011.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You should probably move the AO Create channels VIs and associated Clear Task VIs outside the loops. Connect the task ID wires via shift register so that the value will be passed in the event someone enters start and end values which result in zero iterations of the loops.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Generally to speed things up you want to move any calculations and any displays (indicators) outside the loops when it can be done without adverse impact on functionality. &amp;nbsp;For example the divide by two can be moved to the outer loop; the inputs do not change within the inner loop. &amp;nbsp;If you do not need to see every update immediately, reducing the number of writes to the Intensity graph amy speed things up a bit.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Avoid right to left wires and wires behind other objects. These have no effect on program performance but they make it much harder to understand what is going on and to fine problems. I have attached a cleaned up version of your program.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Lynn&lt;/P&gt;</description>
      <pubDate>Mon, 03 Nov 2014 20:25:13 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/2d-raster-scan-photon-counting-optimization/m-p/3041847#M867290</guid>
      <dc:creator>johnsold</dc:creator>
      <dc:date>2014-11-03T20:25:13Z</dc:date>
    </item>
    <item>
      <title>Re: 2d raster scan photon counting optimization</title>
      <link>https://ni.lithium.com/t5/LabVIEW/2d-raster-scan-photon-counting-optimization/m-p/3044007#M867749</link>
      <description>&lt;P&gt;Hi, thanks for your reply and your improvements. You version is running well.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am still looking for solutions to my counter problem . Should I leave this thread open or post another question?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Aditi&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Nov 2014 18:23:54 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/2d-raster-scan-photon-counting-optimization/m-p/3044007#M867749</guid>
      <dc:creator>IUCHEM</dc:creator>
      <dc:date>2014-11-05T18:23:54Z</dc:date>
    </item>
    <item>
      <title>Re: 2d raster scan photon counting optimization</title>
      <link>https://ni.lithium.com/t5/LabVIEW/2d-raster-scan-photon-counting-optimization/m-p/3044125#M867775</link>
      <description>&lt;P&gt;Just drop a&amp;nbsp;Channel&amp;nbsp;property node in there.&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://ip1.i.lithium.com/f86f15992848106771a52d64084413b02abfb6c3/68747470733a2f2f6e692e6c69746869756d2e636f6d2f74352f696d6167652f736572766572706167652f696d6167652d69642f31353837353969413531303134383833384139454641382f696d6167652d73697a652f6f726967696e616c3f763d6d70626c2d312670783d2d31" border="0" alt="Capture1.PNG" title="Capture1.PNG" align="center" /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Nov 2014 19:42:09 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/2d-raster-scan-photon-counting-optimization/m-p/3044125#M867775</guid>
      <dc:creator>JÞB</dc:creator>
      <dc:date>2014-11-05T19:42:09Z</dc:date>
    </item>
    <item>
      <title>Re: 2d raster scan photon counting optimization</title>
      <link>https://ni.lithium.com/t5/LabVIEW/2d-raster-scan-photon-counting-optimization/m-p/3798645#M1072028</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am working on project where I have to make laser scan device which can scan the sample in line by line manner or raster scan.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For the same I am using small beam galvano mirror device from Thorlab (&lt;A href="https://www.thorlabs.de/newgrouppage9.cfm?objectgroup_id=3770" target="_blank" rel="nofollow noopener noreferrer"&gt;https://www.thorlabs.de/newgrouppage9.cfm?objectgroup_id=3770&lt;/A&gt;), USB DAQ 6361(National Instrument) and Labview software.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Galvano mirror has input range +-10V, sinewave(250Hz) or Triangular Wave(175Hz) or Sawtooth wave(175Hz) or Square Wave(100Hz). using two inputs one for X mirrror and second for Y mirror.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Mirror is configured to rotate 0.8V/1 Degree,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have made one labview design by using that I can operate the mirror, but now I have to make graphical programme which can control the scanning of the beam through galvano mirrors on to the sample.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So do you know how to control the laser beam while scanning?&lt;/P&gt;
&lt;P&gt;control the X and Y mirror analog input voltage.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have attached the prepared Labview design for better understanding.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 May 2018 13:05:50 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/2d-raster-scan-photon-counting-optimization/m-p/3798645#M1072028</guid>
      <dc:creator>@mi</dc:creator>
      <dc:date>2018-05-30T13:05:50Z</dc:date>
    </item>
    <item>
      <title>Re: 2d raster scan photon counting optimization</title>
      <link>https://ni.lithium.com/t5/LabVIEW/2d-raster-scan-photon-counting-optimization/m-p/3798879#M1072096</link>
      <description>&lt;P&gt;This message has been crossposted 3 places.&amp;nbsp;&amp;nbsp;Rather than start a new thread to create a 4th, I think that right here is the best of the 3 places to continue discussion.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'll start.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You need a better starting point than your existing code.&amp;nbsp; It's not terrible, but there are many reasons it isn't ready to work right, and the massive diagram size makes it difficult to communicate about.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One such starting point would be the &lt;A href="https://forums.ni.com/t5/Example-Programs/Synchronize-Analog-Output-Sample-Clock-With-TTL-Pulse-Count/tac-p/3798876" target="_blank"&gt;example code&lt;/A&gt; posted by&amp;nbsp;&lt;EM&gt;John_P1&lt;/EM&gt; over in one of the threads where you crossposted.&amp;nbsp; It's probably worthwhile to follow and inspect the links he put there too.&amp;nbsp; Basically, anything he posts I automatically consider a good starting point for the job in question.&amp;nbsp; His track record around here is outstanding.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-Kevin P&lt;/P&gt;</description>
      <pubDate>Wed, 30 May 2018 20:05:10 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/2d-raster-scan-photon-counting-optimization/m-p/3798879#M1072096</guid>
      <dc:creator>Kevin_Price</dc:creator>
      <dc:date>2018-05-30T20:05:10Z</dc:date>
    </item>
    <item>
      <title>Re: 2d raster scan photon counting optimization</title>
      <link>https://ni.lithium.com/t5/LabVIEW/2d-raster-scan-photon-counting-optimization/m-p/3799068#M1072157</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you very much for the information and reply,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As I am new in Labview, I am facing problems to understand the programme, also have some questions,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1) Where is the analog input channels to see the response of the galvano mirror?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2) Could you explain the two parts of the programme which I have attached?(second part and end part)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;First part of the programme I got perfectly.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 31 May 2018 09:06:04 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/2d-raster-scan-photon-counting-optimization/m-p/3799068#M1072157</guid>
      <dc:creator>@mi</dc:creator>
      <dc:date>2018-05-31T09:06:04Z</dc:date>
    </item>
    <item>
      <title>Re: 2d raster scan photon counting optimization</title>
      <link>https://ni.lithium.com/t5/LabVIEW/2d-raster-scan-photon-counting-optimization/m-p/3799179#M1072200</link>
      <description>&lt;P&gt;The example I linked corresponded to the *title* of the posting (AO to control a pair of galvos, Counter task for photon counting.)&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The questions you posted relate to code used to do photo counting.&amp;nbsp;&amp;nbsp;Do you need to do photon counting?&amp;nbsp; Or do you just need to sync the AO galvo control with some kind of AI acquisition?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-Kevin P&lt;/P&gt;</description>
      <pubDate>Thu, 31 May 2018 13:53:37 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/2d-raster-scan-photon-counting-optimization/m-p/3799179#M1072200</guid>
      <dc:creator>Kevin_Price</dc:creator>
      <dc:date>2018-05-31T13:53:37Z</dc:date>
    </item>
    <item>
      <title>Re: 2d raster scan photon counting optimization</title>
      <link>https://ni.lithium.com/t5/LabVIEW/2d-raster-scan-photon-counting-optimization/m-p/3799195#M1072204</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I do not need to count the photon,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I just need to control the two axis galvano mirrors in a way so they can scan the sample in raster pattern.&lt;/P&gt;
&lt;P&gt;max input range is +-10 V for both mirrors and they configure to rotate 0.8v/1 degree and input signal can be sine(250Hz) or sawtooth(175Hz) or Triangular (175Hz).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have made the Vi which can operate the X and Y mirrors, but the question how to control the mirrors so they can scan the sample.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Yes I am looking for the solution of same kind of problem.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;do you just need to sync the AO galvo control with some kind of AI acquisition?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 31 May 2018 14:21:23 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/2d-raster-scan-photon-counting-optimization/m-p/3799195#M1072204</guid>
      <dc:creator>@mi</dc:creator>
      <dc:date>2018-05-31T14:21:23Z</dc:date>
    </item>
    <item>
      <title>Re: 2d raster scan photon counting optimization</title>
      <link>https://ni.lithium.com/t5/LabVIEW/2d-raster-scan-photon-counting-optimization/m-p/3799234#M1072218</link>
      <description>&lt;P&gt;I've never worked a similar app, only taken part in some discussions here related to the configuration of DAQ tasks.&amp;nbsp; So I don't really know what you mean when you say:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://ni.lithium.com/t5/user/viewprofilepage/user-id/604574"&gt;@mi&lt;/a&gt;
&lt;P&gt;I have made the Vi which can operate the X and Y mirrors, but the question how to control the mirrors so they can scan the sample.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Operating and controlling sound like the same kind of thing to me, so I think you might need help from someone with more specific knowledge about raster scanning, galvos, and the applications that need such things.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Meanwhile, there have been a number of discussions around here about raster scanning and galvo mirror control via AO.&amp;nbsp; &amp;nbsp;To get started, here are a couple I've gotten in on, but there are plenty of others that might answer even more of your questions.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://forums.ni.com/t5/Multifunction-DAQ/AO-output-limit-PCIe-6363-BNC-2110/m-p/3654281" target="_blank"&gt;AO output limit, PCIe-6363, BNC-2110&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://forums.ni.com/t5/Multifunction-DAQ/NI-6211-running-2-AO-channels-simultaneously/m-p/3732094" target="_blank"&gt;NI 6211 - running 2 AO channels simultaneously&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-Kevin P&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 31 May 2018 15:05:32 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/2d-raster-scan-photon-counting-optimization/m-p/3799234#M1072218</guid>
      <dc:creator>Kevin_Price</dc:creator>
      <dc:date>2018-05-31T15:05:32Z</dc:date>
    </item>
    <item>
      <title>Re: 2d raster scan photon counting optimization</title>
      <link>https://ni.lithium.com/t5/LabVIEW/2d-raster-scan-photon-counting-optimization/m-p/3802123#M1073111</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I made Vi by using the john_P1´s raster scan Vi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;so could you check the logic of the Vi, whether it is right or not ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I use raster scan Vi of john_P1´s and than I fed the output of the raster scan to the write Daqmx via function generator and the input signal from the mirrors will be read by the read Daqmx.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please find attached Vi for better understanding&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jun 2018 08:46:00 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/2d-raster-scan-photon-counting-optimization/m-p/3802123#M1073111</guid>
      <dc:creator>@mi</dc:creator>
      <dc:date>2018-06-07T08:46:00Z</dc:date>
    </item>
    <item>
      <title>Re: 2d raster scan photon counting optimization</title>
      <link>https://ni.lithium.com/t5/LabVIEW/2d-raster-scan-photon-counting-optimization/m-p/3802234#M1073169</link>
      <description>&lt;P&gt;You'll need to sync the&amp;nbsp;AO and AI tasks so you know which AI sample corresponds to which AO sample.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I recommend sharing a sample clock to keep the sampling in hardware sync.&amp;nbsp; Once you get that going, I'd also recommend that you generate AO on the *leading* edge of the clock while sampling AI on the *trailing* edge.&amp;nbsp; That gives your system a little opportunity to respond and settle between the generated AO stimulus and the measured AI response.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's one &lt;A href="https://forums.ni.com/t5/LabVIEW/How-can-AI-keep-up-with-the-change-of-AO-in-NI-USB-6251/m-p/3798326/highlight/true#M1071954" target="_blank"&gt;recent thread&lt;/A&gt; I was in that addresses how to sync AO and AI by sharing a sample clock.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-Kevin P&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jun 2018 12:16:37 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/2d-raster-scan-photon-counting-optimization/m-p/3802234#M1073169</guid>
      <dc:creator>Kevin_Price</dc:creator>
      <dc:date>2018-06-07T12:16:37Z</dc:date>
    </item>
    <item>
      <title>Re: 2d raster scan photon counting optimization</title>
      <link>https://ni.lithium.com/t5/LabVIEW/2d-raster-scan-photon-counting-optimization/m-p/3805038#M1074160</link>
      <description>&lt;P&gt;hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As you recommended to share the sample clock of AI and AO for the sync.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;but as you see the attached VI, I am sharing the sample clock.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;what should I do next is it ok ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jun 2018 09:06:17 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/2d-raster-scan-photon-counting-optimization/m-p/3805038#M1074160</guid>
      <dc:creator>@mi</dc:creator>
      <dc:date>2018-06-14T09:06:17Z</dc:date>
    </item>
    <item>
      <title>Re: 2d raster scan photon counting optimization</title>
      <link>https://ni.lithium.com/t5/LabVIEW/2d-raster-scan-photon-counting-optimization/m-p/3805648#M1074359</link>
      <description>&lt;P&gt;What you're doing is not what I mean by "sharing the sample clock".&amp;nbsp; What you're doing is sharing the parameters that define the sample clock rate.&amp;nbsp; You aren't yet getting the two tasks into hardware sync by literally sharing the same timing signals for sampling.&amp;nbsp; It's a subtle but crucial distinction.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://forums.ni.com/t5/Multifunction-DAQ/Synchronized-Analog-Input-and-Output-USB-6211/m-p/3574793/highlight/true#M91483" target="_blank"&gt;Here's a thread&lt;/A&gt; that starts with an example that shows how to achieve a hardware-shared sample clock.&amp;nbsp; The AI task is configured&amp;nbsp;to use the signal "/Dev1/ao/SampleClock" as its own sample clock.&amp;nbsp; And then dataflow sequencing is used on the error wires to make sure the AI task is started *before* the AO task.&amp;nbsp; That way, the AI task is ready and waiting to receive the AO sample clock signal when the AO task starts.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Once you get yourself configured for hardware sync via shared sample clock signal, you can come back to the rest of the thread to see whether the further discussion is needed for your app.&amp;nbsp; (It's basically about the idea that you'd often want the AI sample to occur just a little later than the AO so that the&amp;nbsp;AO value and system response are stable at the time AI is sampled.)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-Kevin P&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jun 2018 11:57:11 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/2d-raster-scan-photon-counting-optimization/m-p/3805648#M1074359</guid>
      <dc:creator>Kevin_Price</dc:creator>
      <dc:date>2018-06-15T11:57:11Z</dc:date>
    </item>
  </channel>
</rss>

