04-20-2007 08:58 PM
04-23-2007 05:02 PM
Hi Wosborn,
In order to prevent error 1, the VI ‘Pulse Measurements.vi’ requires a periodic waveform or array of periodic waveforms. I was able to reproduce this error by inputting a floating signal, and the error went away when I input a periodic sine wave. I could not reproduce the second error, but it again sounds like there is a signal going into the VI which is not acceptable.
For the spreadsheet problem, I would like to ask for more clarification. Eveytime I ran your VI ‘Temp and Water flow VI’, I did not get more than 2 files (and these were lvm files). Was there another VI which was not attached?
04-24-2007 08:10 AM
04-24-2007 08:33 AM
Will,
I believe you may be seeing the problem because the VI’s are taking in two different inputs. Your Pulse Flow VI, you are measuring a signal from ai3 – see Pulse Flow.jpg. In your Temp and Water flow VI, you are sending a signal from ai1 to the Pulse Measurements vi. (You are splitting signals, and bringing the 3rd signal to the Pulse Measurements vi. However, in the DAQ assistant, the 3rd signal is ai1, and not ai3 – see Temp and Water Flow.jpg attached.)
You can change the order of signals by opening the DAQ assistant, clicking on the double blue arrows pointing left (“show details” is next to these arrows), and then using the up/down arrows as seen in my screenshots.
05-17-2007 11:45 PM
05-21-2007 11:04 PM
wosborn,
Could you please verify that you have an SCXI 1122. You did not mention that in the list of hardware in your first post. As far as your questions are concerned :
>>Is it possible to get the 1121 to sample at a faster rate than the 1122 in the same vi?
Since you are using an E series device that only has one ADC and one timing engine, you can sample only at one rate, in your case the slower one. Also, looking at the error that you are getting, it seems as if there might be some problems with the incoming signal. Could you test it with a scope to be sure that the signal is working right, and you might have already done this.
>>Is there any way to modify the pulse subvi to work at this slower speed?
You are using the express VIs to achieve this, you could however develop some of your own code to develop this as well. The express VI cannot be editted though. Below is a link about using the SCXI-1122 to measure multiple channels.
Incorrect Measurements with SCXI-1122 when Scanning Two or More Channels
Also, in the VI where the error is occurring, can you graph your data? Please let us know if you notice the correct waveform that you expect to see on the graphs. Which VI is your error occurring on? You can know this because as soon as the error occurs the subVI in which the error occurs will get highlighted. It does seem as if, only when you combine your VIs and try to sample on multiple channels you are seeing this behavior, am I correct? If that is the case please follow some of the steps in the linked KB and let us know if that helps.