07-18-2008 11:00 AM
07-18-2008 11:59 AM - edited 07-18-2008 12:01 PM
07-18-2008 12:11 PM
07-19-2008 08:49 PM
07-21-2008 12:12 PM
07-21-2008 12:15 PM
07-21-2008 12:25 PM
07-21-2008 01:56 PM
Okay. I added the bypass.
As for the other errors, that is one of the problems with trying to code something without hardware, you can't determine what combination of things may or may not work. For the analog inputs, I added a Create Task in front of the sample clock. I hope that fixes that error message. For the digital ouput, look at the various settings for # of channels, # of lines, # of samples. Look at the DAQmx examples as well to determine the format of data to be able to write out 3 booleans at once. I created had created a 1-D array of 3 boolean values. Since the error says, Error -200524 occurred at DAQmx Write (Digital 1D Bool NChan 1Samp 1Line)., the secret may be to make it for N lines, in which case we need a 2-D array. I'm not sure whether it would it would be a 1x3 or a 3x1, but you can try it and experiment.
07-22-2008 12:53 PM
07-22-2008 01:39 PM
I did make a mistake on the wiring to the digital outputs. I took the array from before the bypass logic rather than after. It looks like you fixed that.
I don't understand what you mean by "but the temps don't come up in the array on the front panel". What is showing up in that array? If that lower logic loop is spinning, and values are begin passed through the queue, there has to be data showing up in that array. However there is the possibility that I have that 40 x 3 array defined backwards and it should be 3 x 40, or transposing may need to happen.
Also, "is there a way to slow down the graph of the pressure? It really only needs to plot a point every 6 seconds or less (I have used 0.1 samples per second on the pressure recorder program I made first, that seemed to be ok, it didn't like anything less)"
In your original VI, you had a sample rate of 0.01 for pressure which would be 1 reading every 100 seconds. And 0.1 for temperature which would be a reading every 10 seconds. How fast are the data points coming in now? Isn't it 1 every 10 seconds?