06-25-2012 01:54 PM
This is my first time trying to write a labview program and I am having difficulties with my labview code. I am using an NI USB 6008 to output a voltage triangle type function by creating an array of 1000 voltage points. This voltage is being applied to an electrode where I am measuring the current between two electrodes using an electrometer that outputs a voltage proportional to the current. That voltage is then being read on the NI USB 6008 analog input channel. I want to take the analog output voltage and analog input voltage and plot them on an x-y graph, where the applied potential is on the x axis and the voltage proportional to the current is on the y-axis. I understand I can't synchronize the analog input/output due to the fact there is no hardware timing available on this device. What I have done is tried to share a sample clock within a while loop, hoping it would work. However, the plot I am seeing is nothing like what I expected so it leads me to believe there is something wrong with my program. Any suggestions would be much appreciated. Here is what I have so far.
06-25-2012 05:01 PM - edited 06-25-2012 05:02 PM
A few notes:
06-26-2012 05:05 PM
Thank you for your suggestions, they were very helpful in getting my program to run much more efficiently. However, I am still having a few difficulties with some of the noise in the signal. I was wondering if anyone had any suggestions on how to average say every ten points read from my analog input. Im thinking this might help decrease some of the spikes in the signal, making the graph a little easier to read. Also, I was wondering if there is anyway to control the amount of points I output. To be more clear, I want to be able to choose how many cycles I want to run. As of now, each cycle consists of 1000 points, but what I want to do is be able to specify 1 cycle, 2 cycles, ...etc. Is there anyway to do that. Here is my new VI attached below.
07-09-2012 04:25 PM
Here is what I have so far with no timers
07-10-2012 11:03 AM
Hi hedlundc33,
Please refer to the Gen Mult Volt Updates-Int Clk.vi shipping example in LabVIEW in order to see a general programming architecture. From here you can make your own modifications. Hope this helps! Thanks!
-Carisa L.
07-11-2012 03:24 PM
New code...