<?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: AI A0 Synchronization in LabVIEW</title>
    <link>https://ni.lithium.com/t5/LabVIEW/AI-A0-Synchronization/m-p/3791166#M1069491</link>
    <description>&lt;P&gt;Good afternoon,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have tried to reconfigure my vi (vi2) with a DAQmx set of functions in hopes that I could reproduce the same waveform graph in the front panel of the vi (vi1) that uses DAQ Assistant. However, I am not able to get the same signal in the front panel. (See vi1_Front_Panel and&amp;nbsp;&lt;SPAN&gt;vi2_Front_Panel attached below). I have attached both vi1 and vi2 below. Could someone tell me what I have configured wrong that is causing me to get two different signals?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;NOTE: I am only trying to reproduce the 'white line' (ai0) in the bottom left figure from&amp;nbsp;vi1_Front_Panel in&amp;nbsp;vi2_Front_Panel. Please ignore the other lines in the bottom left figure in the&amp;nbsp;vi1_Front_Panel.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best,&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Mike&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 09 May 2018 17:38:53 GMT</pubDate>
    <dc:creator>Michael.D</dc:creator>
    <dc:date>2018-05-09T17:38:53Z</dc:date>
    <item>
      <title>AI A0 Synchronization</title>
      <link>https://ni.lithium.com/t5/LabVIEW/AI-A0-Synchronization/m-p/3790408#M1069193</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Good morning,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using LabView DAQ assistant with NI PXIe-1082 to measure voltage signal from two channels (AI0 and AI1) on NI BNC-2110 board. AI1 is connected to the "input" actuator (via T-connection) and AI0 is connected to the "output" sensor. I send a Gaussian modulated pulse as the "input". I want to measure the delay (time shift) between the input and the output signal peaks (center line of each signal packet). I need to measure delays of the order of 10 microseconds. I send signals using DAQ Assistant, and write AI0, AI1 measurements using "Write to measurement file." (See attached VI, picture of my interface, and excel file of data).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have the following questions:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. I want to send only one Gaussian modulated pulse. Why do I see multiple signals sent by the actuator? (Red lines in the picture)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Do data measurements from AI0 and AI1 start at the same time (within, say, 1 microsecond of each other)? That is, do the first entries for AI0, AI1 voltage written in my excel file correspond to the same wall clock time (difference less than 1 microsecond)?&amp;nbsp; The time stamp provided by the WriteToMeasurement function gives accuracy only up to 1 millisecond. My sampling frequency is 3MHz, and I see the same "time" for multiple samples.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance for your help.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 08 May 2018 12:03:14 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/AI-A0-Synchronization/m-p/3790408#M1069193</guid>
      <dc:creator>Michael.D</dc:creator>
      <dc:date>2018-05-08T12:03:14Z</dc:date>
    </item>
    <item>
      <title>Re: AI A0 Synchronization</title>
      <link>https://ni.lithium.com/t5/LabVIEW/AI-A0-Synchronization/m-p/3790411#M1069195</link>
      <description>&lt;P&gt;Without some code to have a look at how you are approaching this in code, trying to answer the question is almost certainly futile.&lt;/P&gt;</description>
      <pubDate>Tue, 08 May 2018 12:06:00 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/AI-A0-Synchronization/m-p/3790411#M1069195</guid>
      <dc:creator>Intaris</dc:creator>
      <dc:date>2018-05-08T12:06:00Z</dc:date>
    </item>
    <item>
      <title>Re: AI A0 Synchronization</title>
      <link>https://ni.lithium.com/t5/LabVIEW/AI-A0-Synchronization/m-p/3790480#M1069229</link>
      <description>&lt;P&gt;1. You've named your chassis (PXI-1082) and terminal block (BNC-2110), but not your data acquisition device.&amp;nbsp; We'll need to know that.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. We'll need you to post your code and supply further&amp;nbsp;info about any other "code substitutes" like all the DAQ Assistant config information.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3.&amp;nbsp;Your test and analysis sound like they deserve better treatment than the "training wheels" of the DAQ Assistant and Write to Measurement File.&amp;nbsp; Training wheels have their place, but they're meant to be grown *out* of before you hit the road for real.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;I have almost no familiarity whatsoever with most of those kinds of functions.&amp;nbsp; It's possible they can be configured in ways that get you the results you need today.&amp;nbsp; But in the longer run, it'll be worthwhile to learn to use the regular DAQmx functions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;4. All that being said, if both AI0 and AI1 are in&amp;nbsp;a 3 MHz sampling task on the same DAQ device, then both will be sampled every 1/3 microsec.&amp;nbsp; The time skew between them can't be more than 1/6 microsec.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&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>Tue, 08 May 2018 14:42:51 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/AI-A0-Synchronization/m-p/3790480#M1069229</guid>
      <dc:creator>Kevin_Price</dc:creator>
      <dc:date>2018-05-08T14:42:51Z</dc:date>
    </item>
    <item>
      <title>Re: AI A0 Synchronization</title>
      <link>https://ni.lithium.com/t5/LabVIEW/AI-A0-Synchronization/m-p/3791042#M1069440</link>
      <description>&lt;P&gt;Good morning,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have attached the code below along with and excel spreadsheet of the output from the write to measurements file.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I will address the other comments in a bit.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-Mike&lt;/P&gt;</description>
      <pubDate>Wed, 09 May 2018 13:40:26 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/AI-A0-Synchronization/m-p/3791042#M1069440</guid>
      <dc:creator>Michael.D</dc:creator>
      <dc:date>2018-05-09T13:40:26Z</dc:date>
    </item>
    <item>
      <title>Re: AI A0 Synchronization</title>
      <link>https://ni.lithium.com/t5/LabVIEW/AI-A0-Synchronization/m-p/3791166#M1069491</link>
      <description>&lt;P&gt;Good afternoon,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have tried to reconfigure my vi (vi2) with a DAQmx set of functions in hopes that I could reproduce the same waveform graph in the front panel of the vi (vi1) that uses DAQ Assistant. However, I am not able to get the same signal in the front panel. (See vi1_Front_Panel and&amp;nbsp;&lt;SPAN&gt;vi2_Front_Panel attached below). I have attached both vi1 and vi2 below. Could someone tell me what I have configured wrong that is causing me to get two different signals?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;NOTE: I am only trying to reproduce the 'white line' (ai0) in the bottom left figure from&amp;nbsp;vi1_Front_Panel in&amp;nbsp;vi2_Front_Panel. Please ignore the other lines in the bottom left figure in the&amp;nbsp;vi1_Front_Panel.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best,&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Mike&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 09 May 2018 17:38:53 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/AI-A0-Synchronization/m-p/3791166#M1069491</guid>
      <dc:creator>Michael.D</dc:creator>
      <dc:date>2018-05-09T17:38:53Z</dc:date>
    </item>
    <item>
      <title>Re: AI A0 Synchronization</title>
      <link>https://ni.lithium.com/t5/LabVIEW/AI-A0-Synchronization/m-p/3791188#M1069496</link>
      <description>&lt;P&gt;Looking over the code &amp;amp; pics from msg #5:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. vi1 using DAQ Assistants sets both AO and AI sample rates at 3 MHz.&amp;nbsp; Dunno your device, I'm assuming for the time being that it's capable of this rate.&amp;nbsp; It also sets both AO and AI for finite sampling with 6000 samples.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. vi2 using DAQmx functions seems to set both AO and AI sample rates at 1 kHz.&amp;nbsp; &amp;nbsp;At least those are the default values on the front panel controls for the sample rates.&amp;nbsp; It also sets both AO and AI for finite sampling with 1000 samples.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3. vi2 doesn't wire&amp;nbsp;up as many of the inputs to the Gaussian Modified Sine Wave function.&amp;nbsp; It appears that the extra ones wired in vi1 are wired with default values anyway, so this is not the immediate problem.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;4. "Write to Measurement File" has an "Advanced..." button that may let you specify greater precision in the timestamps.&amp;nbsp; Just add extra 0's to the right of the decimal in the format specifier.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;5.&amp;nbsp;Nothing syncs your AO and AI tasks in either vi1 or vi2.&amp;nbsp; I *think* you're using one of your AI channels to measure the AO signal though, is that right?&amp;nbsp; &amp;nbsp;If so, then the important thing is that AI will be ready to sample before AO starts to generate.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;vi2 starts the AO task before starting the AI task.&amp;nbsp; In vi1, there's no telling what the order is.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I made some minimal mods to your vi2 and kept&amp;nbsp;using standard DAQmx functions.&amp;nbsp; I changed default values to 3 MHz sample rate and 6000 samples, sequenced the AI task to start first, and configured the AI task to sample by sharing the AO sample clock signal.&amp;nbsp; That's about it.&amp;nbsp; Give it a try and see what you get.&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, 09 May 2018 18:59:57 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/AI-A0-Synchronization/m-p/3791188#M1069496</guid>
      <dc:creator>Kevin_Price</dc:creator>
      <dc:date>2018-05-09T18:59:57Z</dc:date>
    </item>
    <item>
      <title>Re: AI A0 Synchronization</title>
      <link>https://ni.lithium.com/t5/LabVIEW/AI-A0-Synchronization/m-p/3791218#M1069506</link>
      <description>&lt;P&gt;Thank you so much for your help. I am now getting the desired signals from the output (measured signals). I have marked the response in msg #6 as the solution.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now to address/answer your questions:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. The DAQ device is the NI PXIe-6124 with a NI PXIe-1082 as the DAQ chassis.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. In vi2, I had to manually change the default settings because I did not know how to change them permanently.&amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3. The inputs to the Gaussian Modified Sine Wave function were not placed intentionally. They are not really necessary in this case because they are not being changed.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;4. The "Write to Measurement File" will be added to vi2 in the near future. I will try to adjust the time format in the way you suggested.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;5. For my synchronization, I have a trigger hardwired into my DAQ board. This ensures that the tasks in vi1 start at the same time. The AI channels are indeed being used to measure the AO signal.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have some additional questions about how to further modify this vi but I will post them on a different thread.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you again for your help.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Mike&lt;/P&gt;</description>
      <pubDate>Wed, 09 May 2018 20:11:58 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/AI-A0-Synchronization/m-p/3791218#M1069506</guid>
      <dc:creator>Michael.D</dc:creator>
      <dc:date>2018-05-09T20:11:58Z</dc:date>
    </item>
    <item>
      <title>Re: AI A0 Synchronization</title>
      <link>https://ni.lithium.com/t5/LabVIEW/AI-A0-Synchronization/m-p/3791277#M1069532</link>
      <description>&lt;P&gt;3 quick points:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- you mention having a trigger wired in, but I don't recall the code showing any sign of tasks being configured to *use* a trigger.&amp;nbsp; (Not at a LV machine to double check right now)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- you probably won't *need* a trigger anyway.&amp;nbsp; My mod will already sync via sample clock alone.&amp;nbsp; By far that's my preferred way to sync tasks.&amp;nbsp; It's been a while since I investigated but as I recall, the timing delay from trigger to A/D or D/A conversion varied more from device to device than the timing delay from sample clock signal to conversion.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- your device is capable of simultaneous sampling.&amp;nbsp;&amp;nbsp;The nominal time skew between them will be 0.&amp;nbsp; Some tiny amount of +/- timing jitter probably exists in the nanosec realm, but the best estimate for it will be 0.&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, 09 May 2018 22:36:09 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/AI-A0-Synchronization/m-p/3791277#M1069532</guid>
      <dc:creator>Kevin_Price</dc:creator>
      <dc:date>2018-05-09T22:36:09Z</dc:date>
    </item>
    <item>
      <title>Re: AI A0 Synchronization</title>
      <link>https://ni.lithium.com/t5/LabVIEW/AI-A0-Synchronization/m-p/3791568#M1069621</link>
      <description>&lt;P&gt;- From my understanding, DAQ assistant automatically triggers the signal.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- With this new vi, a trigger was not needed. I was able to use the modifications that you suggested.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- I have noted the capabilities of our device.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you again for your help.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-Mike&lt;/P&gt;</description>
      <pubDate>Thu, 10 May 2018 16:46:12 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/AI-A0-Synchronization/m-p/3791568#M1069621</guid>
      <dc:creator>Michael.D</dc:creator>
      <dc:date>2018-05-10T16:46:12Z</dc:date>
    </item>
  </channel>
</rss>

