11-09-2005 11:15 AM
11-09-2005 12:28 PM
11-09-2005 01:10 PM
Hi Dennis,
Thank you for your prompt response and sorry for the vagueness of the question. Attached is a vi that simulates what I meant in my previous post. When i say that everything goes wrong is that I can not get the average and plot the data because the vi (with the real data from instruments) does not build the proper arrays and plots only one point at a time, instead of a continuous line as the simulated vi does. I have the drivers for my instruments but my real problem is that i don't know where exactly to place them in my vi. I need to replace the random numbers inside the for loop with data continuously coming from a lock in amplifier, this is my Y axis, and my x-axis is the data I need to build from the voltmeter.
11-09-2005 01:46 PM
I'm not sure what you're trying to do. You say you're trying to read data from two different instruments. What is the purpose of the ramp that you created? What is this supposed to do? Is there another instrument that you are trying to set? In the example, the random number generator is behaving like a measured value and the number from the ramp array is acting like a setting for an instrument which does quite make sense since you have it labeled volts and it would presumably mean a voltmeter reading.
Your existing VI plots one point at a time. It does this every 100 msec according to the Delay Time setting. It plots 30 points (the size of the ramp array), and then repeats the same thing for a total of five.
11-09-2005 02:22 PM
The ramp is simulating the voltage output from my instrument. I let it run five times, this is just for averaging purposes. The random number is suppose to simulate the intensity from the lock in. The way my experiment works is as follows: I start a DAQ device that will sweep from 0 to 10 volts (in the example I have 0-300 but this is irrelevat), at the same time, I detect a signal from a sample with a lock in amplifier. I can directly plot the intensity of the signal Vs time from the lock in using a waveform graph, but what I really need is the intensity of the lock in (Y-axis), Vs the voltage (X axis). As you can see, I need to have two instruments attached and I think the data from them is different and I don't quite know how to build the arrays of the same type to be able to plot them in an xy graph. When I attach the voltmeter driver (instead of the ramp) and the lock in driver (instead of the random number generator), I run into the problems I described before. Thank you very much Dennis.
11-09-2005 03:45 PM
11-09-2005 04:10 PM
Attached are the two instrument drivers I am using, one is a gaussmeter (this is the voltage reading, volts get converted to gauss and viceversa) it is an SGL. The lock in returns a 1D array of DBL.
The truth is I am not sure if I am using the correct vi s, from the gaussmeter driver I pick the Getting Started Gaussmeter. vi, and I wire the field reading to the x-axis of the xy graph; from the SR830 lock in, I use the Dta Storage Example.vi, and I wire the channel points to the Y axis of my xy graph. This is where the conflict between data sets arises. Thanks.
11-09-2005 04:21 PM
11-09-2005 04:24 PM