03-26-2009 11:41 AM
Hi All,
Thank you again in advance for you help on this. I am trying to create a setup where a spectrum is generated over time (millisecond time range, this function works properly), and a maximum for a peak that I select (this also works correctly) plots over time (minute time scale). However, when I try to run this, the fast plot is operating at about 40 Hz, and I have a calculation to allow a resolution feature for the minute time graph (the fast experiment is averaged a given number of times to produce a spectrum which is then analyzed for the maximum peak, so for example, at 40 Hz, and a resolution of 0.5 seconds, it should need to average 20 spectra for each point), but in operation, the time does not work correctly. At 20 spectra averaged per point, I only get about one point per second, not 2. So, in an attempt to correct this, I cut the averages in half, and was able to get it to work at very nearly 2 spectra per second. However, the time is not exact when compared to an external clock, and I need to know then exact time. Thus, is there any way to have the minute time frame graph count time on its own, and just plot a Y value whenever it recieves one? I need to have it plot in real time, as is currently achieved in the attached vi. In th attached VI, I am working with the "chromatography mode" tab, the other tabs already work correctly. However, I am somewhat new at this, and my code is a bit messy, so I apologize for that in advance. Thank you,
<>< Eric
03-30-2009 10:05 AM
Hello Eric,
As a couple of subVIs are missing and I do not have the external triggering setup here, I cannot run your VI. I do not think I have understood what exactly you are trying to do. Do you want to plot the values obtained against actual time data (such as hh:mm:ss)? In the 'Chromatography' tab, what are you expecting to see? It would be great if you could make a simple example VI to demonstrate the problem that you are having at the moment.
03-30-2009 10:48 AM
04-01-2009 11:27 AM
Hello Eric,
I see that you are creating a waveform using the Build Waveform VI and then wiring it to the outputs in the Chromatography Mode tab - namely 'Waveform Graph' and 'Waveform Graph 3'. Is the 'dt' value constant for every iteration of the while loop? If so, your output should have constant time spacing between plotted values in the waveform graph.
So, again I am not completely sure what you mean by the IMS not operating at the frequency you input :-(. Are you seeing the problem in 'Waveform Graph' or 'Waveform Graph 3' or both? An simple example VI would be great to describe your issue.
04-01-2009 12:23 PM
Vivek_N wrote:.... Is the 'dt' value constant for every iteration of the while loop? If so, your output should have constant time spacing between plotted values in the waveform graph....
If this is true, you could use a waveform CHART, and just scale the x-axis accordingly
04-01-2009 12:31 PM
Hi all,
I think it is more a software limitation due to the amount I am calling it to perform. It looks like if I do not have background processes, the system operates correctly, but if anything slows the system down, my time axis changes (when compared to an external clock or stopwatch). However, it seems to be working for what I need. Thank you for your help,
<>< Eric