03-18-2010 04:16 PM
Here is a start of what you need. There is a lot to it. I added the digital channel stuff. You will still have to add the analog channel to read. I also added the cycle counter.
You can change the color of a single boolean indicator but if you place them in an array it will change all of them.
I do not have time to write all of the code. I can give advice if you try and can not get it to work. I tried to show you the basic flow from the structure that you had.
I would suggest adding a third loop that only does the analog reading for the pressure sensor. You can add more logic in the loops to make the channel wait until it is above a certain point to read the pressure or vacuum.
As I said I am will to help but I have done as much as I can for now.
03-18-2010 05:08 PM
03-18-2010 06:22 PM
03-19-2010 07:40 AM
03-19-2010 01:09 PM
Thanks. I have modified the program from your help and got to a point where I have to start the timer when
pressure is 10psi and stop when 30psi. I didn't implement the digital stuff from your sample because I guess
I wan't clear when I explained my application to you. I am not controlling the solenoid. The solenoid are
controlled by outside instrument. All I am doing is reading a bunch of pressure sensor using USB6218 data
acquisition. I have attached my VI. Please let me know how to automatically start and stop the timer based on
pressure and for the same solenoid start the timer again at 10psi and stop at -10psi. I tried with outer while loop
and a shift register to carry the time until pressure is 30psi and get an current time again to subtract the prev
value with the current. But I wasn't sure how to break the while when the condition is met and start it when the
pressure drops again to 10psi and reaches -10psi for vacuum. Thanks for all your support.
03-22-2010 01:39 PM
I would really appreciate your feedback on creating the timer based on pressure reading. Thanks