05-08-2007 07:36 AM
05-09-2007 07:02 AM
Hi there,
I'm guessing the VI you are using is the one from this KB:
http://digital.ni.com/public.nsf/allkb/6F2C2B49A89D685C8625711D007BDD64
i. The software timed loop control is to control the rate at which you change the voltage output. The timeout on the DAQmx Write VI is the maximum time in seconds the VI will wait to output a sample (eg. if the write buffer is full, the Write VI will wait for it to become available for 'timeout' seconds before outputting an error).
ii. The sine pattern is just an array constant of doubles that make up the sine wave voltage values, and the for loop adds an offset (of two volts) to every single one of those values. You might want to replace that entire array constant and for loop with a Simulate Signal Express VI (just search for Simulate Sig or look in the Functions >> Input palette) and convert the dynamic data output to an array of doubles. You can configure the type of waveform, amplitude, and time period from that express VI as well.
iii. Refer to previous answer.
iv. Index array returns an element of an array based on the index input. You can turn on the context help and move your mouse over functions to get more help on them.
I hope that helps!
Way S.
NI UK Applications Engineer