05-26-2011 10:24 AM
I am fairly sure that you can simplify your read for the keithly stuff. You should be able to make that one read. I do not have the keithly vi's so I can not tell you that for sure. I would expect that you should be able to make it read all three channels with one set of vi's and just restart the read if you change the channel cound. You will have to get someone with the keithly vi's to help optimize that part of your code.
I would also suggest that you start looking at the producer consumer systems that are provided by NI in the example file. You can set one loop up to do the data acquisition and one to do the data processing and saving. It is much more efficient that way.
05-26-2011 10:37 AM
Something like this.
05-26-2011 11:28 AM
Alright, I am having some trouble with the power supply blocks in the take reading state. It is the bottom right corner of the code with the two fromula blocks. Previously I had it working so the amperage would step up as the iterations passed. It is still wired the same way but for some reason tha amperage is stuck at about .145. I am not sure why it is no longer stepping up and down.
05-26-2011 11:59 AM
I had to hook up the iterator to the formula node since we are no longer using the incrementor on the while loop to get the cycles. This should make it work.
05-26-2011 01:08 PM
That solution was saved in version 10.0
05-26-2011 01:10 PM
Sorry it has been busy around here.
05-26-2011 01:10 PM
Can I ask what the x+1 thing is for in the bottom right hand corner of the take reading state?
05-26-2011 01:11 PM
I am going to be taking off until Tuesday so if I do not get back to you right away you know why. If you need help right away then you could start a new thread with a new question. I hope that I have been helpful along the way and good luck unitl I get back.
05-26-2011 01:18 PM
You have been an incredible help Thank You much and have a great Memorial day
05-26-2011 01:21 PM
@Kenneth22 wrote:
Can I ask what the x+1 thing is for in the bottom right hand corner of the take reading state?
That is for counting how many time you have been through the take reading step. That way you can only go through 25 times. If you look on the wait state you will see that we are keeping up with how many times you have taken a reading so that we can stop after 25.