08-15-2008 01:12 AM
hey hi
how can i convert an array of complex no into a analog signal that i can use to send out using a daq card????
08-15-2008 06:56 PM
Hi nolsqn,
Since you can only output real signals, I suppose you simply want to truncate your complex number and retain simply the real part or take its magnitude. To do this you can use one of our function nodes from our Complex palette by opening up the Functions palette. We can use the "Complex to Polar" or the "Complex to Re/Im" function node under Programming » Numeric » Complex to get your data and pass this data to your DAQ assistant or your DAQmx Write VI.
Please let me know if I have not answered your question.
08-17-2008 11:03 AM
Of course you might want to output it in two channels, one for the real and one for the imaginary part of the signal.
Can you give us a few more details?
What is your main problems (converting from complex, outputting an analog signal, etc.)
08-18-2008 09:08 PM
hey
well i know that i need to saperate real and complex parts ...but i am not sure is that how to get analog output because arnt these real and img parts whd be digital ..........so my problem is how to get the analog output from a daq card since i have an array of complex numbers ..........................i know how to get an analog signal out of the daq card what i cannot understand is that how a bunch of real and img part be taken out of the daq card as an analog value?????
08-18-2008 09:43 PM
nolsqn wrote:... know how to get an analog signal out of the daq card what i cannot understand is that how a bunch of real and img part be taken out of the daq card as an analog value?????
Well, you need a DAQ card with a minimum of two channels, use one for the RE component and one for the IMG component of the complex data.
Sorry, it is difficult to fully understand what you actually want.
08-18-2008 09:50 PM - edited 08-18-2008 09:52 PM
What 'digital' are you talking about and what does that have to do with complex numbers? I also don't think you understand at all how to output a signal from a DAQ board. To output the real and imaginary components on two separate channels, you use the Complex to Re/Im, you get two arrays out and you just have to use a Build Array and the appropriate DAQmx Write.
08-25-2008 01:20 AM
08-25-2008 08:55 AM
08-25-2008 03:25 PM
Hi nolsqn,
Is it possible that you didn't specify 2 channels in your DAQmx physical channels? For example, for a 2 channel output (ao0 & ao1), you would have to define the channels in either of two ways:
Dev1/ao0:1
or
Dev1/ao0, Dev1/ao1
Perhaps you could post your code so we could have a look at the problem.
08-25-2008 09:17 PM - edited 08-25-2008 09:20 PM
to S_Hong
i was using single channel multiple samples. as a was using only an array ... i also tried with mutiples channel multiples sample it was giving the same error even when i specified two channels....attached is the progromme that i want to get the data out from the daq... on the next post i have attached the VI that i am using to get dataout from keithley