<?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: daq and write to array in LabVIEW</title>
    <link>https://ni.lithium.com/t5/LabVIEW/daq-and-write-to-array/m-p/1915325#M641908</link>
    <description>&lt;P&gt;Hi there,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can most certainly add data from different loops to the same queue.&amp;nbsp; There is a simple Example VI in the NI Example Finder called "Queue Multiplexer.vi".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm not sure if it's in the LabVIEW 8.6 Example Finder, so I saved as previosu version for you and attached it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best of luck!&lt;/P&gt;</description>
    <pubDate>Thu, 15 Mar 2012 17:16:59 GMT</pubDate>
    <dc:creator>Ryan-C</dc:creator>
    <dc:date>2012-03-15T17:16:59Z</dc:date>
    <item>
      <title>daq and write to array</title>
      <link>https://ni.lithium.com/t5/LabVIEW/daq-and-write-to-array/m-p/1906317#M640221</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a data acquisition task,&amp;nbsp;&lt;SPAN&gt;as shown in the attached file&lt;/SPAN&gt;. In order to speed up the data acquisition process, I am planning to first acquire and save the data into an array, and then write the whole chunk into a txt file. I have searched a lot, but I could not find how to do this. Can someone instruct me or give an example link to do so.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;
&lt;P&gt;Amir&lt;/P&gt;</description>
      <pubDate>Thu, 08 Mar 2012 14:09:03 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/daq-and-write-to-array/m-p/1906317#M640221</guid>
      <dc:creator>ballbouncing</dc:creator>
      <dc:date>2012-03-08T14:09:03Z</dc:date>
    </item>
    <item>
      <title>Re: daq and write to array</title>
      <link>https://ni.lithium.com/t5/LabVIEW/daq-and-write-to-array/m-p/1906375#M640229</link>
      <description>&lt;P&gt;Hi Amir,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I found de following example for you:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H2&gt;&lt;FONT size="2"&gt;Continuously Read Data and Log to a TDMS File&lt;/FONT&gt;&lt;/H2&gt;
&lt;P&gt;&lt;A href="https://decibel.ni.com/content/docs/DOC-11300" target="_blank"&gt;https://decibel.ni.com/content/docs/DOC-11300&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This example acquire data and write after the acquisition the data in a TDMS File.&lt;/P&gt;
&lt;P&gt;I think this example will help you.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Mar 2012 14:37:04 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/daq-and-write-to-array/m-p/1906375#M640229</guid>
      <dc:creator>Phanuel</dc:creator>
      <dc:date>2012-03-08T14:37:04Z</dc:date>
    </item>
    <item>
      <title>Re: daq and write to array</title>
      <link>https://ni.lithium.com/t5/LabVIEW/daq-and-write-to-array/m-p/1906469#M640243</link>
      <description>&lt;P&gt;Thank you very much for you help. But I have two more questions:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1- The TDMS file, as pops up at the end, does not have the corresponding time stamps for each acquired voltage value. How can I store the time stamps in the same file as well?&lt;/P&gt;
&lt;P&gt;2- I have another dependent measure in the loop that I need to store it in the same file. How can I add this value to the TDMS file so that at the end I can have that as well.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Basically I need three colums in my &lt;SPAN&gt;output&amp;nbsp;&lt;/SPAN&gt;TDMS file:&lt;/P&gt;
&lt;P&gt;1- Voltage values&lt;/P&gt;
&lt;P&gt;2- The time stamps correponding to each acquired voltage&lt;/P&gt;
&lt;P&gt;3- &amp;nbsp;Another dependent measure, which is computed within the loop&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;
&lt;P&gt;Amir&lt;/P&gt;</description>
      <pubDate>Thu, 08 Mar 2012 15:24:04 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/daq-and-write-to-array/m-p/1906469#M640243</guid>
      <dc:creator>ballbouncing</dc:creator>
      <dc:date>2012-03-08T15:24:04Z</dc:date>
    </item>
    <item>
      <title>Re: daq and write to array</title>
      <link>https://ni.lithium.com/t5/LabVIEW/daq-and-write-to-array/m-p/1906513#M640250</link>
      <description>&lt;P&gt;Hi Amir,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;with the TDMS Write.vi you can add Channels and Groups to your TDMS File.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The following example write random values in specific groups and channels. &lt;/P&gt;
&lt;H2&gt;&lt;FONT size="2" color="#000000"&gt;Timestamping Queued Data and Storing in TDMS Files:&lt;/FONT&gt;&lt;/H2&gt;
&lt;P&gt;&lt;A href="https://decibel.ni.com/content/docs/DOC-5789" target="_blank"&gt;https://decibel.ni.com/content/docs/DOC-5789&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Mar 2012 15:36:30 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/daq-and-write-to-array/m-p/1906513#M640250</guid>
      <dc:creator>Xenox</dc:creator>
      <dc:date>2012-03-08T15:36:30Z</dc:date>
    </item>
    <item>
      <title>Re: daq and write to array</title>
      <link>https://ni.lithium.com/t5/LabVIEW/daq-and-write-to-array/m-p/1906755#M640290</link>
      <description>&lt;P&gt;Hi Again,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have cutomized the example for my application. Attached you can find my code. But there is still a problem. At the end of the trial, as set by the total time (sec), the TDMS file does not show all the values, i.e. it is too short. Where are the other values? I thought I saves all data points!&lt;/P&gt;
&lt;P&gt;Additionally all the measurements are 0. I have connected it to the clock source but they are all still zero.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your help.&lt;/P&gt;
&lt;P&gt;Amir&lt;/P&gt;</description>
      <pubDate>Thu, 08 Mar 2012 17:41:38 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/daq-and-write-to-array/m-p/1906755#M640290</guid>
      <dc:creator>ballbouncing</dc:creator>
      <dc:date>2012-03-08T17:41:38Z</dc:date>
    </item>
    <item>
      <title>Re: daq and write to array</title>
      <link>https://ni.lithium.com/t5/LabVIEW/daq-and-write-to-array/m-p/1907737#M640445</link>
      <description>&lt;P&gt;Hi Amir,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Remove that 100ms wait vi&amp;nbsp;from 2nd loop and connect 100ms to timeout terminal of dequeue element.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope that will work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Bijay&lt;/P&gt;</description>
      <pubDate>Fri, 09 Mar 2012 08:50:50 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/daq-and-write-to-array/m-p/1907737#M640445</guid>
      <dc:creator>Bijay</dc:creator>
      <dc:date>2012-03-09T08:50:50Z</dc:date>
    </item>
    <item>
      <title>Re: daq and write to array</title>
      <link>https://ni.lithium.com/t5/LabVIEW/daq-and-write-to-array/m-p/1907743#M640448</link>
      <description>&lt;P&gt;Hey,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;at first please allow debugging in your VI. With debugging you can set probes, which help you understand the function of your VI:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://digital.ni.com/public.nsf/allkb/22729F1BAC6BBDD086256FDC005FE8FD" target="_blank"&gt;http://digital.ni.com/public.nsf/allkb/22729F1BAC6BBDD086256FDC005FE8FD&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What clock source do you connect to your Dev1/ctr1? Did you check your clock with a scope?&lt;/P&gt;
&lt;P&gt;(Dev1/ctr1 is not the internal clock!)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I did some changes in your VI:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Xenox&lt;/P&gt;</description>
      <pubDate>Fri, 09 Mar 2012 08:59:50 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/daq-and-write-to-array/m-p/1907743#M640448</guid>
      <dc:creator>Xenox</dc:creator>
      <dc:date>2012-03-09T08:59:50Z</dc:date>
    </item>
    <item>
      <title>Re: daq and write to array</title>
      <link>https://ni.lithium.com/t5/LabVIEW/daq-and-write-to-array/m-p/1907755#M640450</link>
      <description>&lt;P&gt;Hi xenox,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try this....&lt;/P&gt;
&lt;P&gt;Go to VI properties&amp;nbsp;&amp;gt; category&amp;nbsp;Execution &amp;gt;check Allow debugging.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Continue with work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Bijay&lt;/P&gt;</description>
      <pubDate>Fri, 09 Mar 2012 09:06:45 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/daq-and-write-to-array/m-p/1907755#M640450</guid>
      <dc:creator>Bijay</dc:creator>
      <dc:date>2012-03-09T09:06:45Z</dc:date>
    </item>
    <item>
      <title>Re: daq and write to array</title>
      <link>https://ni.lithium.com/t5/LabVIEW/daq-and-write-to-array/m-p/1907767#M640452</link>
      <description>&lt;P&gt;Hi Bijay,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;i know &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;have a look at my link I posted before:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://digital.ni.com/public.nsf/allkb/22729F1BAC6BBDD086256FDC005FE8FD" target="_blank"&gt;http://digital.ni.com/public.nsf/allkb/22729F1BAC6BBDD086256FDC005FE8FD&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Mar 2012 09:10:41 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/daq-and-write-to-array/m-p/1907767#M640452</guid>
      <dc:creator>Xenox</dc:creator>
      <dc:date>2012-03-09T09:10:41Z</dc:date>
    </item>
    <item>
      <title>Re: daq and write to array</title>
      <link>https://ni.lithium.com/t5/LabVIEW/daq-and-write-to-array/m-p/1914121#M641702</link>
      <description>&lt;P&gt;Hi Bijay,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and thanks for your response. Unfortunately I could not open your example code, since it is written in a higher labview version as mine, which is 8.6. Can you help me with an example that the queue is filled in two different loops. In the example above, all values are stored in a single loop. What if I want to store x value from loop 1 and also store y value from loop 2. can I add them to the same queue? or I have to use another queue?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;
&lt;P&gt;Amir&lt;/P&gt;</description>
      <pubDate>Wed, 14 Mar 2012 21:44:48 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/daq-and-write-to-array/m-p/1914121#M641702</guid>
      <dc:creator>ballbouncing</dc:creator>
      <dc:date>2012-03-14T21:44:48Z</dc:date>
    </item>
    <item>
      <title>Re: daq and write to array</title>
      <link>https://ni.lithium.com/t5/LabVIEW/daq-and-write-to-array/m-p/1915325#M641908</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can most certainly add data from different loops to the same queue.&amp;nbsp; There is a simple Example VI in the NI Example Finder called "Queue Multiplexer.vi".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm not sure if it's in the LabVIEW 8.6 Example Finder, so I saved as previosu version for you and attached it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best of luck!&lt;/P&gt;</description>
      <pubDate>Thu, 15 Mar 2012 17:16:59 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/daq-and-write-to-array/m-p/1915325#M641908</guid>
      <dc:creator>Ryan-C</dc:creator>
      <dc:date>2012-03-15T17:16:59Z</dc:date>
    </item>
    <item>
      <title>Re: daq and write to array</title>
      <link>https://ni.lithium.com/t5/LabVIEW/daq-and-write-to-array/m-p/4362272#M1281266</link>
      <description>&lt;P&gt;This Link is no more available I am trying to resolve the same problem can you share an example?&lt;/P&gt;</description>
      <pubDate>Fri, 22 Mar 2024 07:20:48 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/daq-and-write-to-array/m-p/4362272#M1281266</guid>
      <dc:creator>shahjenil</dc:creator>
      <dc:date>2024-03-22T07:20:48Z</dc:date>
    </item>
    <item>
      <title>Re: daq and write to array</title>
      <link>https://ni.lithium.com/t5/LabVIEW/daq-and-write-to-array/m-p/4362323#M1281287</link>
      <description>&lt;P&gt;Please do not ask for "Me, too!" help on a topic that has been idle for more than a decade.&amp;nbsp; If you need help with&amp;nbsp;&lt;U&gt;your problem&lt;/U&gt;, press the "Start a Topic" button and clearly explain your problem/question.&amp;nbsp; It is best if you include your attempts.&amp;nbsp; Attaching your LabVIEW code is preferred to attaching a "picture of a VI", but many of the more-experienced Forum users are running LabVIEW 2019 or 2021 (I'm one of them), and won't be able to open LabVIEW 2023 or 2024 code unless you "Save for Previous Version" (on the "File" menu).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Bob Schor&lt;/P&gt;</description>
      <pubDate>Fri, 22 Mar 2024 12:45:23 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/daq-and-write-to-array/m-p/4362323#M1281287</guid>
      <dc:creator>Bob_Schor</dc:creator>
      <dc:date>2024-03-22T12:45:23Z</dc:date>
    </item>
    <item>
      <title>Re: daq and write to array</title>
      <link>https://ni.lithium.com/t5/LabVIEW/daq-and-write-to-array/m-p/4362340#M1281288</link>
      <description>&lt;UL&gt;
&lt;LI&gt;Actually I am not working with LabVIEW, currently I am using the ni daqmx library in python but was facing similar daq issues, didn’t knew if it was worth starting as a new topic on a LabVIEW forum if it is then I’ll be happy to start a new discussion where I can share my files too.&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Fri, 22 Mar 2024 13:41:19 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/daq-and-write-to-array/m-p/4362340#M1281288</guid>
      <dc:creator>shahjenil</dc:creator>
      <dc:date>2024-03-22T13:41:19Z</dc:date>
    </item>
    <item>
      <title>Re: daq and write to array</title>
      <link>https://ni.lithium.com/t5/LabVIEW/daq-and-write-to-array/m-p/4362653#M1281392</link>
      <description>&lt;P&gt;The LabVIEW Forums are an excellent place to ask for help with LabVIEW issues.&amp;nbsp; If you are mainly using DAQmx in a Python environment, bypassing LabVIEW, you might want to ask in some Python forums ...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Bob Schor&lt;/P&gt;</description>
      <pubDate>Sun, 24 Mar 2024 23:26:00 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/daq-and-write-to-array/m-p/4362653#M1281392</guid>
      <dc:creator>Bob_Schor</dc:creator>
      <dc:date>2024-03-24T23:26:00Z</dc:date>
    </item>
    <item>
      <title>Re: daq and write to array</title>
      <link>https://ni.lithium.com/t5/LabVIEW/daq-and-write-to-array/m-p/4362654#M1281393</link>
      <description>&lt;P&gt;Use the built in logging features of DAQmx, data will be saved to a TDMS file. Python has an excellent, if not better, TDMS library that you can use to read the files or convert to another format.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;you can post some of your python code here as the functions are similarly named.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Mar 2024 00:41:17 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/daq-and-write-to-array/m-p/4362654#M1281393</guid>
      <dc:creator>mcduff</dc:creator>
      <dc:date>2024-03-25T00:41:17Z</dc:date>
    </item>
    <item>
      <title>Re: daq and write to array</title>
      <link>https://ni.lithium.com/t5/LabVIEW/daq-and-write-to-array/m-p/4362989#M1281519</link>
      <description>&lt;P&gt;Hey,&lt;/P&gt;
&lt;P&gt;So I have attached the Python file that I am using currently to scan a 2d grid using a confocal microscope and DAQ, this program stores the result in the 2d matrix 'pmt_data' and gives me the desired output(image of the scan) however the program takes 30-40 minutes for just 200 pixels by 200 pixels grid, how do I optimize it? am I doing something wrong while writing and reading the data?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Mar 2024 13:45:05 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/daq-and-write-to-array/m-p/4362989#M1281519</guid>
      <dc:creator>shahjenil</dc:creator>
      <dc:date>2024-03-26T13:45:05Z</dc:date>
    </item>
    <item>
      <title>Re: daq and write to array</title>
      <link>https://ni.lithium.com/t5/LabVIEW/daq-and-write-to-array/m-p/4362999#M1281527</link>
      <description>&lt;P&gt;Nothing looks overtly incorrect in your python script.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How fast do you want this to go? 200 x 200 pixels is 40000 pixels. 40 minutes is 1000 pixels per minute.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Mar 2024 14:45:44 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/daq-and-write-to-array/m-p/4362999#M1281527</guid>
      <dc:creator>mcduff</dc:creator>
      <dc:date>2024-03-26T14:45:44Z</dc:date>
    </item>
    <item>
      <title>Re: daq and write to array</title>
      <link>https://ni.lithium.com/t5/LabVIEW/daq-and-write-to-array/m-p/4363014#M1281535</link>
      <description>&lt;P&gt;When I am using the ScanImage software through MATLAB if you are familiar with it, I am getting more pixels scanned in a matter of seconds which is why I was wondering if can get a similar run time in Python or LabVIEW using NI-DAQmx.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Mar 2024 15:20:42 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/daq-and-write-to-array/m-p/4363014#M1281535</guid>
      <dc:creator>shahjenil</dc:creator>
      <dc:date>2024-03-26T15:20:42Z</dc:date>
    </item>
    <item>
      <title>Re: daq and write to array</title>
      <link>https://ni.lithium.com/t5/LabVIEW/daq-and-write-to-array/m-p/4363018#M1281538</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://ni.lithium.com/t5/user/viewprofilepage/user-id/736332"&gt;@shahjenil&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;When I am using the ScanImage software through MATLAB if you are familiar with it, I am getting more pixels scanned in a matter of seconds which is why I was wondering if can get a similar run time in Python or LabVIEW using NI-DAQmx.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I am not familiar with ScanImage software. A long time ago, I was doing z-slices of florescent images and this is the basic algorithm,&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Move to Position&lt;/LI&gt;
&lt;LI&gt;Check if in Position, if false wait&lt;/LI&gt;
&lt;LI&gt;Take wide field Image&lt;/LI&gt;
&lt;LI&gt;Repeat&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;For your case, you have&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Move to position.&lt;/LI&gt;
&lt;LI&gt;Check if in position&lt;/LI&gt;
&lt;LI&gt;Readout PMT, Start Daq, stop Daq, Average values, etc&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;To speed this up adds possible programming complexity and bugs&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Start DAQ and continuously acquire Data&lt;/LI&gt;
&lt;LI&gt;Move to Position&lt;/LI&gt;
&lt;LI&gt;Check if in position&lt;/LI&gt;
&lt;LI&gt;Query DAQ for latest values now that you are in position. No need to start, stop daq, etc. That will save some time at the cost of programming complexity.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;Does ScanImage take a single point at each pixel, multiple points, does it take data while the objective continuously moves and interpolates pixel positions? All of these things can speed up acquisition time at the cost of complexity of your program.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In your python script I see a simple raster scan that is easy to program, understand, and relatively bullet proof. It's cost is a long acquisition time.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Mar 2024 15:36:30 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/daq-and-write-to-array/m-p/4363018#M1281538</guid>
      <dc:creator>mcduff</dc:creator>
      <dc:date>2024-03-26T15:36:30Z</dc:date>
    </item>
  </channel>
</rss>

