02-12-2009 03:16 PM
02-13-2009 02:41 PM
epsilon,
I think you meant to attach 2 images? Could you also attach a screenshot of you Block Diagram or the VI itself?
When you run an example program do you see this same behaviour?
02-13-2009 04:23 PM
02-16-2009 10:39 AM
Epsilon,
I wrote a program exactly like this a while back. It generates 3 signals of any type (sine, square, triangle, etc) and at any phase. You can find it here:
http://decibel.ni.com/content/docs/DOC-2289
The reason you are probably getting this poor phase resolution is either due to using express VIs which are intended to be quick but not the most efficent or best for more complex applications or the fact that we want to have a property called non-regeneration on. Either way I think the VI I linked above should work perfectly.
02-16-2009 12:57 PM
Hello Jason,
I downloaded your VI and tried to run it, but an error appeared:
Error -200524 occurred at DAQmx Write (Analog 1D Wfm NChan NSamp).vi:1
Measurements: Write cannot be performed because the number of channels in the data does not match the number of channels in the task.
When writing, supply data for all channels in the task. Alternately, modify the task to contain the same number of channels as the data written.
Number of Channels in Task: 1
Number of Channels in Data: 3
Task Name:_unnamedTask<3>
I want to reiterate what I am trying to do. I want to use two output channels of the PXI-6289 to produce two waveforms simultaneously (on channels ao2 and ao3), and be able to adjust the phase shift between the two waveforms while the VI is running. Your program seems to have only one output channel selectable at a time. Am I missing something?
02-16-2009 01:02 PM
Epsilon,
Sorry I should have been more detailed and specific. When wanting to use multiple channels the proper way to do it (seen in this VI) is to group them into one task and then reference all of them in the same Device box. Yours should look like:
\Dev1\ao1:3 which will reference the channels 1 through 3. Dev1 is merely an example and should be tailored to the location of your device. An alternative to typing this in is to click the drop down box then click Browse and highlight the channels in question using ctrl to select multiple.
Finally if you only need 2 channels you will need to trim out the 3rd part of the program.