06-04-2018 05:40 AM
HI,
I am using dual axis galvano mirrors to scan the sample in raster pattern.
I would like to generate a sin wave with varying amplitudes. lets say i have a list of amplitudes 10, 5 , 2 ,1 .i would like to generate a sine wave with these amplitudes at 250 hz.
I need to give generated sine wave to the DAQ.
how can I do this ?
06-04-2018 06:31 AM
Need more information about the DAQ you are using.
In Case of 6363 receives normalized signal and has an option of amplitude. This way when you insert the SINE signal you must insert a NORMALIZED signal [-1: 1] into the DAQ in the program and on the output DAQ amplifies it by the value you predefined in the variable.
[-1: 1] -> [-5: 5] For Amplitude = 5
Hope this helps or are you looking for actual code?
06-04-2018 06:32 AM
make a 1-sine and multiply the value by the amplitude
06-04-2018 06:42 AM
By default, the Express VI is configured to be "full scale". So just apply a divider to get the amplitude you actually want. Alternatively, you could change the settings so the amplitude is 1 and then you apply a multiplier.
06-04-2018 07:47 AM
I am using Ni 6361 USB DAQ.
I have attached the Vi which I have made. now have to give generated sine wave with varying amplitude range between +-10 V so I can control the mirrors to scan the sample in raster pattern.
mirrors configured to rotate 0,8V/1 degree.
In second attachment How can I give the varying values of amplitude from the array to the function generator?
06-04-2018 10:04 AM
@mi wrote:
In second attachment How can I give the varying values of amplitude from the array to the function generator?
Move the Function Generator and the DAQmx Write into the inner FOR loop.
06-05-2018 05:10 AM
Hi,
I did what you suggested,
so just check the VI which I have attached,
In first attachment, I have configured multiple channel via DAQ create channel ,so in total I am using two AO and two AI.
In second attachment, I am using two AI physical channel for two channel and same two AO?
I made changed in both so please let me if something is wrong