11-29-2006 02:19 PM
I’m working on a VI that monitors four input lines coming in on a PCI-6251 linked BNC-2110. Upon receiving a voltage change (e.g. from 0V to 1V) the VI is supposed to generates and send a sine wave to one of four outs on an external sound card. We have been succesful at setting 1V vs. 2V inputs to trigger generation of two different waves, and playing that sound.
Currently we have two problems:1) We would like to gate (i.e. amplitude modulate) the sine wave with either a linear or cosine function over 5 milliseconds at the start and again at the end of a 300 millisecond wave.
2) Also, we are having problems with the current VI setup not picking up nearly-simultaneously activated input lines (two lines go high at nearly the same time; only one wave is generated, for the first line). This is likely because we can not have two instances of the DAQassist, and don’t see how to get around this.
Does anyone know how to modify a generated signal to accomplish the amplitude gating?Does anyone know how to monitor multiple lines in a more efficient way so that we do not miss simultaneous instances of signal changes?
Our current file is attached, with the first three instances still putting out a standard sine wave and the last of four our 'work-in-progress' attempt at log ramping the ends of the generated wave; we are running WindowsXP ServicePack2 on a 3.6GHz Pentium 4 with 1 GB RAM.
12-01-2006 08:15 AM
12-05-2006 03:39 PM
Thanks for the reply, Yardov; we’re interested in software option 2), running an aquisition loop simultaneous with sine wave production loops, where one follows the voltage and separate loops generate the sine wave (while the first continues to acquire other inputs). We are having problems construction these loops and sending the data from one loop to the other. By using a tunnel to send the data out, it is sent out as an array, however that’s not what we want. We also tried using a shift register to no avail.
We want the single element representing the value changes over time to be sent out of the first loop while this acquisition loop is still iterating (instead of storing data values in an array after each loop iteration through a tunnel, just send out the value at the current iteration). Are there Examples available or specific methods usually employed to achieve this sort of communication?
12-06-2006 06:41 AM
12-06-2006 11:58 AM