<?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: DAQmx Synchronous Reading and Writing in LabVIEW</title>
    <link>https://ni.lithium.com/t5/LabVIEW/DAQmx-Synchronous-Reading-and-Writing/m-p/531261#M251237</link>
    <description>&lt;DIV&gt;Hi Drew.&lt;/DIV&gt;
&lt;DIV&gt;Thnx a lot for ur post.&lt;/DIV&gt;
&lt;DIV&gt;It was really helpful. I was able to sunchronize the ouput and input. I get a constant phase lag of -7 degrees. I guess thats due to the delay in computation that I do inside the loops. And i guess it wil depend on the processor that I am using. So when I am using the VI for the actual data acquisition, I can just add 7 degrees to the phase shift rite? ... &lt;/DIV&gt;
&lt;DIV&gt;Out of curiosity, is there a way to make it independent of the system used? &lt;/DIV&gt;
&lt;DIV&gt;Thnx.&lt;/DIV&gt;
&lt;DIV&gt;Gokul.&lt;/DIV&gt;</description>
    <pubDate>Tue, 05 Jun 2007 08:57:22 GMT</pubDate>
    <dc:creator>gokul_bits</dc:creator>
    <dc:date>2007-06-05T08:57:22Z</dc:date>
    <item>
      <title>DAQmx Synchronous Reading and Writing</title>
      <link>https://ni.lithium.com/t5/LabVIEW/DAQmx-Synchronous-Reading-and-Writing/m-p/529053#M250319</link>
      <description>&lt;DIV&gt;
&lt;DIV&gt;I am trying to make a Lock-in Amplifier using a USB DAQ device (forgot the product Id). I am facing a problem when I am trying to send the reference signal out and read the voltage drop. The problem is that both are&amp;nbsp;not synchronous.&amp;nbsp;The reading of the voltage is taking place everytime at different time intervals and hence&amp;nbsp;I am getting a varying phase angles between the reference and the&amp;nbsp;voltage signal. I tried connecting the&amp;nbsp;error out of the&amp;nbsp;DAQmx write to the DAQmx Read VI. And another point is that I used the example&amp;nbsp;option to generate the code for the DAQmx Task. My signal out is at 1kHz, 1V and the update rate is 50kHz and 1000 samples. My analog input is done at 50kHz sampling rate and&amp;nbsp;no of samples to read is 1000 (both configured in Measurement &amp;amp; Automation Explorer).&amp;nbsp;I also read somewhere that the reading must be continuous to avoid errors. So I gave the continous reading option '-1'. Is there any way out for this problem?&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Secondly, when I get those 1000 samples, I multiply them with the reference signal (from sine wave generation VI). And then I pass them through a LowPass Inv Chebyshev Filter with a cutoff freq of 40 and Sampling freq as 50khz. The mean of the&amp;nbsp;filtered output gives mean absurd values. But if I use the default values, Fs=1Hz and cutoff as 0.49 I am getting some proper values. Why is this happening? &lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Thanking You.&lt;/DIV&gt;
&lt;DIV&gt;Gokul.&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 31 May 2007 05:29:23 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/DAQmx-Synchronous-Reading-and-Writing/m-p/529053#M250319</guid>
      <dc:creator>gokul_bits</dc:creator>
      <dc:date>2007-05-31T05:29:23Z</dc:date>
    </item>
    <item>
      <title>Re: DAQmx Synchronous Reading and Writing</title>
      <link>https://ni.lithium.com/t5/LabVIEW/DAQmx-Synchronous-Reading-and-Writing/m-p/529686#M250579</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;P&gt;You might want to consider posting in the multifunction daq thread since this seems to pertain to that.&lt;/P&gt;
&lt;P&gt;Also, if you post your code or a screen shot it will be easier to understand what you're doing (or not doing).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;regards,&lt;/P&gt;
&lt;P&gt;Drew&lt;/P&gt;</description>
      <pubDate>Fri, 01 Jun 2007 00:41:33 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/DAQmx-Synchronous-Reading-and-Writing/m-p/529686#M250579</guid>
      <dc:creator>caz</dc:creator>
      <dc:date>2007-06-01T00:41:33Z</dc:date>
    </item>
    <item>
      <title>Re: DAQmx Synchronous Reading and Writing</title>
      <link>https://ni.lithium.com/t5/LabVIEW/DAQmx-Synchronous-Reading-and-Writing/m-p/530424#M250878</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;P&gt;Please check the attachment.&lt;/P&gt;
&lt;P&gt;I have included the VI that I am working on wid tis post.&lt;/P&gt;
&lt;P&gt;The DAQ card that I am using is USB 6251.&lt;/P&gt;
&lt;P&gt;Please help..&lt;/P&gt;
&lt;P&gt;THnx.&lt;/P&gt;
&lt;P&gt;Gokul.&lt;/P&gt;</description>
      <pubDate>Sun, 03 Jun 2007 05:40:35 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/DAQmx-Synchronous-Reading-and-Writing/m-p/530424#M250878</guid>
      <dc:creator>gokul_bits</dc:creator>
      <dc:date>2007-06-03T05:40:35Z</dc:date>
    </item>
    <item>
      <title>Re: DAQmx Synchronous Reading and Writing</title>
      <link>https://ni.lithium.com/t5/LabVIEW/DAQmx-Synchronous-Reading-and-Writing/m-p/530448#M250888</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;P&gt;Hi Gokul,&lt;/P&gt;
&lt;P&gt;The reason why you are getting the phase error is because your AO and AI are not synced in anyway.&amp;nbsp; Passing an error&amp;nbsp;cluster from one task to the other won't synchronize the actual hardware, it will just force the order of operation, and in your code, the error cluster is being split so its really not even doing that.&lt;/P&gt;
&lt;P&gt;Now for the good news.&amp;nbsp; There are a couple shipping examples that will do exactly what you want.&amp;nbsp; Under the Hardware Input and Output/DAQmx/Synchronization/Multi-Function folder when you search the examples, there are 2 codes Multi-Function-Synch AI-AO.vi and Multi-Function-Synch AI-AO-Ext Digital Trigger.vi.&amp;nbsp; These codes are the same except one uses an external start trigger and the other doesn't.&amp;nbsp; These show the proper way to sync the two tasks.&amp;nbsp; The synchronization is done by configuring a start trigger for the AO and setting the source of this trigger to be the AI start trigger internal signal.&amp;nbsp; That is, when the AI starts, an internal pulse will be generated to start the AO.&amp;nbsp; To make this all work in the proper sequence, the AO task is started before the AI task so that it is ready and waiting for the start trigger pulse.&lt;/P&gt;
&lt;P&gt;As for the digital filtering, the code you posted is using the default fs and fL (1 and 0.49) so I don't what values you were wiring to get the error.&amp;nbsp; One thing about these inputs, if you put 1000 and 490 for fs and fL you will get the same filter response&amp;nbsp;as using 1 and 0.49.&amp;nbsp; So its the ratio of fs and fl that matters.&amp;nbsp; In order for the filter to work, the ratio of fL/fs must be less than 0.5 to ensure Nyquist is met.&amp;nbsp; If you're intended inputs are valid (meet the less than 0.5 ratio requirement) and it still doesn't work, you might want to try lowering the order.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Drew&lt;/P&gt;</description>
      <pubDate>Sun, 03 Jun 2007 14:38:50 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/DAQmx-Synchronous-Reading-and-Writing/m-p/530448#M250888</guid>
      <dc:creator>caz</dc:creator>
      <dc:date>2007-06-03T14:38:50Z</dc:date>
    </item>
    <item>
      <title>Re: DAQmx Synchronous Reading and Writing</title>
      <link>https://ni.lithium.com/t5/LabVIEW/DAQmx-Synchronous-Reading-and-Writing/m-p/531261#M251237</link>
      <description>&lt;DIV&gt;Hi Drew.&lt;/DIV&gt;
&lt;DIV&gt;Thnx a lot for ur post.&lt;/DIV&gt;
&lt;DIV&gt;It was really helpful. I was able to sunchronize the ouput and input. I get a constant phase lag of -7 degrees. I guess thats due to the delay in computation that I do inside the loops. And i guess it wil depend on the processor that I am using. So when I am using the VI for the actual data acquisition, I can just add 7 degrees to the phase shift rite? ... &lt;/DIV&gt;
&lt;DIV&gt;Out of curiosity, is there a way to make it independent of the system used? &lt;/DIV&gt;
&lt;DIV&gt;Thnx.&lt;/DIV&gt;
&lt;DIV&gt;Gokul.&lt;/DIV&gt;</description>
      <pubDate>Tue, 05 Jun 2007 08:57:22 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/DAQmx-Synchronous-Reading-and-Writing/m-p/531261#M251237</guid>
      <dc:creator>gokul_bits</dc:creator>
      <dc:date>2007-06-05T08:57:22Z</dc:date>
    </item>
    <item>
      <title>Re: DAQmx Synchronous Reading and Writing</title>
      <link>https://ni.lithium.com/t5/LabVIEW/DAQmx-Synchronous-Reading-and-Writing/m-p/531573#M251352</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;P&gt;Glad to hear your code is working.&lt;/P&gt;
&lt;P&gt;For more info about DAQmx and synchronizing check this link &lt;A href="http://zone.ni.com/devzone/cda/tut/p/id/4322#toc4" target="_blank"&gt;http://zone.ni.com/devzone/cda/tut/p/id/4322#toc4&lt;/A&gt;&amp;nbsp; In your application you might want to also make sure to share the same clock for both AI and AO and there is an example of that.&lt;/P&gt;
&lt;P&gt;I am a little unclear about what 2 signals the phase lag refers to.&amp;nbsp; If you've done the synchronized start correctly, the AI should start the same time the AO does.&amp;nbsp; For instance, you should be able to read exactly what you are writing.&amp;nbsp; I don't believe the phase lag has anything to do with computation delays or processor speed since this would probably give a time varying phase lag.&amp;nbsp; Once the AI has started, it will continue to sample data.&amp;nbsp; The read function just pulls the data in LV memory to allow for the data processing.&amp;nbsp; On the next read, you don't read the AO data at that time but rather continue where the last read left off.&amp;nbsp; If your application is fast enough, then the read function might have to wait a little before reading the N requested samples since they won't be available yet.&amp;nbsp; If your application is slower, then the number of samples in the buffer will slowly build over time until you might reach the condition where the AI is overwriting old data.&lt;/P&gt;
&lt;P&gt;Back to the phase shift.&amp;nbsp; If you are using a single phase lock-in then to maximize the output you must make sure the reference signal and the measured signal are in phase.&amp;nbsp; However, to not have to worry about the phase a dual-phase lockin can be used.&amp;nbsp; the measured signal is multiplied to a sine wave and cosine and then filtered and added in quadrature.&amp;nbsp; This eliminates the need for knowing the phase of the measured signal.&amp;nbsp; In your previous code, it looks as if this is what your kind of doing.&amp;nbsp; However, I don't have the vi you are using to create the reference signals.&lt;/P&gt;
&lt;P&gt;You might want to post the new code so I can better understand where the phase lag is coming from.&lt;/P&gt;
&lt;P&gt;regards&lt;/P&gt;
&lt;P&gt;Drew&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jun 2007 16:55:16 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/DAQmx-Synchronous-Reading-and-Writing/m-p/531573#M251352</guid>
      <dc:creator>caz</dc:creator>
      <dc:date>2007-06-05T16:55:16Z</dc:date>
    </item>
    <item>
      <title>Re: DAQmx Synchronous Reading and Writing</title>
      <link>https://ni.lithium.com/t5/LabVIEW/DAQmx-Synchronous-Reading-and-Writing/m-p/531832#M251462</link>
      <description>Hi.. &lt;BR /&gt;I have included the Code that I am using with this post (screenshot. cudnt load tht VI due to some system problems.). Trial.vi is the main VI with trialfunc.vi generates the necessary AO data.&lt;BR /&gt;Please tell me from where the phase lag arises. I checked for the phase lag by connecting the Analog Output 0 of the DAQ to the Analog Input 0 of the DAQ. And started the VI. I got the samples properly but I am getting a phase lag of -7 degrees. The Analog Output that I am generating is used as the reference. And how do I make sure that I am using the same clock for both of AI and AO ? And one more thing, to recover the signal at DC I have used a AC&amp;amp;DC estimate VI but is it necessary to use the Low pass filters? Wat are the pros and cons of both?&lt;BR /&gt;Thnx a lot.&lt;BR /&gt;Bye.&lt;BR /&gt;Gokul. &lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 06 Jun 2007 04:52:50 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/DAQmx-Synchronous-Reading-and-Writing/m-p/531832#M251462</guid>
      <dc:creator>gokul_bits</dc:creator>
      <dc:date>2007-06-06T04:52:50Z</dc:date>
    </item>
    <item>
      <title>Re: DAQmx Synchronous Reading and Writing</title>
      <link>https://ni.lithium.com/t5/LabVIEW/DAQmx-Synchronous-Reading-and-Writing/m-p/532575#M251676</link>
      <description>&lt;DIV&gt;You can set the clock on the DAQmx timing function.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;What you will want to do in your case is to leave the AO clock unwired and set the AI clock to be dev1/ao/sample clock.&amp;nbsp; By doing this, the timing of your code should be this;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;1) The AO task starts first and waits for a digital trigger&lt;/DIV&gt;
&lt;DIV&gt;2) The AI task starts and sends a trigger but does not sample since no clock edges are available&lt;/DIV&gt;
&lt;DIV&gt;3) The AO task receives the trigger and begins AO samples on clock edges&lt;/DIV&gt;
&lt;DIV&gt;4) The AI task samples on the same clock edges as the AO task thus removing any chance of phase differences&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;As for the filtering for the digital lock-in.&amp;nbsp; If you're measured signal is a perfect sinusoid (1 frequency), then just the DC component is all you need.&amp;nbsp; However, a real signal will have some bandwidth around its central frequency and this bandwidth is captured by using a low pass filter with a cut-off set to half the bandwidth of your expected signal.&amp;nbsp; I would not use the AC&amp;amp;DC estimator.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Happy wire trails,&lt;/DIV&gt;
&lt;DIV&gt;Drew&lt;/DIV&gt;</description>
      <pubDate>Wed, 06 Jun 2007 23:07:35 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/DAQmx-Synchronous-Reading-and-Writing/m-p/532575#M251676</guid>
      <dc:creator>caz</dc:creator>
      <dc:date>2007-06-06T23:07:35Z</dc:date>
    </item>
    <item>
      <title>Re: DAQmx Synchronous Reading and Writing</title>
      <link>https://ni.lithium.com/t5/LabVIEW/DAQmx-Synchronous-Reading-and-Writing/m-p/532664#M251719</link>
      <description>Hi..&lt;BR /&gt;Thnx for the info.&lt;BR /&gt;I tried doing wat u said. But I am facing some problems. I connected to the Source of AI clock the /Dev1/ao0/SampleClock . But dont know how to leave the ao0 clock unwired? When I am just by passing the ao0 clock, I am getting error saying "Write cannot be performed when the auto start input to DAQmx Write is false, task is not running, and timing for the task is not configured or Timing Type is set to On Demand. Set auto start to true, start the task, or configure timing and specify Timing Type other than On Demand." I tried making the AutoStart True. But again I faced some error. How should I leave the clock ao0? I understood the flow you were talking about. But I have a doubt. In step 2 - 3, the ai clock source has been set to be the ao0 clock right? now the ao0 clock will functioning right once I press the start button? Otherwise how will ao0 start once it recieves the trigger? Does the ao0 clock itself starts when it receives the trigger? According the connections I think only the generation starts after the trigger. So I tried connecting the ao0 task to the Digital Edge trigger which I connected to the ao0 clock and then to the Generation VIs. But I am still facing the same problem of phase lags. I am attachin the jpg file with this post please have a look and tell me about wat sud I do with ao0 clock? I understood the info about the LPF and DC Estimator. Thnx a lot.&lt;BR /&gt;Bye.&lt;BR /&gt;Gokul.&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 07 Jun 2007 05:03:24 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/DAQmx-Synchronous-Reading-and-Writing/m-p/532664#M251719</guid>
      <dc:creator>gokul_bits</dc:creator>
      <dc:date>2007-06-07T05:03:24Z</dc:date>
    </item>
    <item>
      <title>Re: DAQmx Synchronous Reading and Writing</title>
      <link>https://ni.lithium.com/t5/LabVIEW/DAQmx-Synchronous-Reading-and-Writing/m-p/532877#M251788</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;P&gt;I believe that the AO task will not start the AO clock until it receives the trigger or put another way, the AO clock that the AI task uses should only be the edges that are actually used for waveform generation thus syncing your 2 tasks.&amp;nbsp; You have wired the AO task correctly by not wiring anything, it should default to the onboad clock which is what you want.&amp;nbsp; If it makes you more comfortable you could&amp;nbsp;explicitly set the AO clock to be the onboard clock.&lt;/P&gt;
&lt;P&gt;Let me&amp;nbsp;think about this a little more and I will get back to you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Drew&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jun 2007 13:58:14 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/DAQmx-Synchronous-Reading-and-Writing/m-p/532877#M251788</guid>
      <dc:creator>caz</dc:creator>
      <dc:date>2007-06-07T13:58:14Z</dc:date>
    </item>
    <item>
      <title>Re: DAQmx Synchronous Reading and Writing</title>
      <link>https://ni.lithium.com/t5/LabVIEW/DAQmx-Synchronous-Reading-and-Writing/m-p/533271#M251977</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;P&gt;Hi Gokul,&lt;/P&gt;
&lt;P&gt;could ya try one more thing for me.&amp;nbsp; Get rid of the trigger vi in the AO task and set the AO to use the AI sample clock.&amp;nbsp; Make sure to set the AI task to use the onboard clock.&amp;nbsp; I am curious about the synchronization when not using the trigger. Also, try flipping it around and set AO task to use the onboard clock and AI to use the AO sample clock.&amp;nbsp; I am curious as to what phase error exists and if its different for the 2 cases.&amp;nbsp; You might also want to try flipping the clocking in your current code using the trigger to start the AO.&amp;nbsp; All should be quick and painless tests and I will be interested to hear the results.&lt;/P&gt;
&lt;P&gt;Drew&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jun 2007 02:20:27 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/DAQmx-Synchronous-Reading-and-Writing/m-p/533271#M251977</guid>
      <dc:creator>caz</dc:creator>
      <dc:date>2007-06-08T02:20:27Z</dc:date>
    </item>
    <item>
      <title>Re: DAQmx Synchronous Reading and Writing</title>
      <link>https://ni.lithium.com/t5/LabVIEW/DAQmx-Synchronous-Reading-and-Writing/m-p/533299#M251989</link>
      <description>Hi Drew..&lt;BR /&gt;I tried the different connections as you suggested and I observed the following:&lt;BR /&gt;&lt;BR /&gt;Case 1: Using ai sample clock for ao and onboard clock for ai and removing the trigger VI of ao. The amplitude remained the same but the phase still remained at -7.2 degrees.&lt;BR /&gt;&lt;BR /&gt;Case 2: Using ao sample clock for ai and onboard clock for ao and removing the trigger VI of ao. The amplitude remained the same but the phase varied every time I start executing the VI but remains constant throughout the run (till I press stop).&lt;BR /&gt;&lt;BR /&gt;Case 3: For the original VI, changing the trigger from ao to start ai. I get the following error. &lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "An attempt has been made to perform a route when the source and the destination are the same terminal. In many cases, such as when configuring an external clock or a counter source, you must select a PFI, PXI Trigger, or RTSI line as the source terminal."&lt;BR /&gt;&lt;BR /&gt;If this problem of constant phase lag still exists, shall I add (-1)*value to it and make it zero ? Coz now I know the phase is zero between them rite? Will that cause some problem when the system is put to actual use?&lt;BR /&gt;&lt;BR /&gt;Thnx.&lt;BR /&gt;Gokul.&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 08 Jun 2007 03:57:09 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/DAQmx-Synchronous-Reading-and-Writing/m-p/533299#M251989</guid>
      <dc:creator>gokul_bits</dc:creator>
      <dc:date>2007-06-08T03:57:09Z</dc:date>
    </item>
    <item>
      <title>Re: DAQmx Synchronous Reading and Writing</title>
      <link>https://ni.lithium.com/t5/LabVIEW/DAQmx-Synchronous-Reading-and-Writing/m-p/533612#M252103</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;P&gt;Hi Gokul,&lt;/P&gt;
&lt;P&gt;If you have a system in place that provides a constant phase relationship then you can simply do some shifting of the waveform to realign the phase.&amp;nbsp; Again, if you are using a dual-phase lockin, that is multiplying the measured signal by the reference and another reference that is 180 deg out of phase (usually a sine and cosine waveform) and adding the results after LPF in quadrature, then the relative phase between your signal and the reference signals doesn't matter.&amp;nbsp; A single phase lockin, on the other hand, needs the reference and measured signal to be in phase to maximize the signal.&lt;/P&gt;
&lt;P&gt;Drew&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jun 2007 15:18:35 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/DAQmx-Synchronous-Reading-and-Writing/m-p/533612#M252103</guid>
      <dc:creator>caz</dc:creator>
      <dc:date>2007-06-08T15:18:35Z</dc:date>
    </item>
    <item>
      <title>Re: DAQmx Synchronous Reading and Writing</title>
      <link>https://ni.lithium.com/t5/LabVIEW/DAQmx-Synchronous-Reading-and-Writing/m-p/534025#M252292</link>
      <description>Hi..&lt;BR /&gt;Thnx for the info. I am making both Single and Dual Phase lock-in amplifier. So I need to know watz happening.. So I thought since, I know that the phase difference is zero, I can correct tis by adding a number to make it zero. But will that work for a single phase. I guess it should.&lt;BR /&gt;But I am not sure. Will tell you once I do the actual measurement.&lt;BR /&gt;Post in if u have any idea abt tis phase problem.&lt;BR /&gt;Thnx.&lt;BR /&gt;Bye.&lt;BR /&gt;Gokul.&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 11 Jun 2007 04:25:50 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/DAQmx-Synchronous-Reading-and-Writing/m-p/534025#M252292</guid>
      <dc:creator>gokul_bits</dc:creator>
      <dc:date>2007-06-11T04:25:50Z</dc:date>
    </item>
    <item>
      <title>Re: DAQmx Synchronous Reading and Writing</title>
      <link>https://ni.lithium.com/t5/LabVIEW/DAQmx-Synchronous-Reading-and-Writing/m-p/534557#M252514</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;P&gt;Hi Gokul,&lt;/P&gt;
&lt;P&gt;I would suggest checking out this thread, it is a very similar problem to yours with the differnce being&amp;nbsp;multiple channel AI versus single channel.&amp;nbsp; The last couple posts are particularly helpful in showing how to calculated how many points your measured phase lag refers to.&amp;nbsp; I guess it would be impossible to identically measure the same signal for AI and AO when using the same clock since there will be some physical distance between the two and I don't know what kind of cabling you are using.&amp;nbsp; At any rate, since you are measuring a constant phase difference the easiest thing to do will be to delete a point(s) from the beginning or end of the measured signal (depending on the sign of the phase shift) and&amp;nbsp;do the opposite&amp;nbsp;on the&amp;nbsp;reference signal to&amp;nbsp;maintain the same number of points in&amp;nbsp;both arrays.&lt;/P&gt;
&lt;P&gt;&lt;A href="http://forums.ni.com/ni/board/message?board.id=250&amp;amp;message.id=30860" target="_blank"&gt;http://forums.ni.com/ni/board/message?board.id=250&amp;amp;message.id=30860&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Drew&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jun 2007 22:11:07 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/DAQmx-Synchronous-Reading-and-Writing/m-p/534557#M252514</guid>
      <dc:creator>caz</dc:creator>
      <dc:date>2007-06-11T22:11:07Z</dc:date>
    </item>
  </channel>
</rss>

