LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Scaling

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. 

Tim
GHSP
0 Kudos
Message 11 of 16
(955 Views)
Thankyou so much. I really appreciate your help.
0 Kudos
Message 12 of 16
(949 Views)
About changing the color to an LED I need some some advice on how to implement it. I want the led to start with default color, change to orange when 5psi is reached(start the timer) and change to red when 30psi is reached(stop the timer). Should I use 30 LED's and use color[4] property or I read about color box on this forum many times. Please let me know how I can implement that logic.
0 Kudos
Message 13 of 16
(943 Views)
For the Led you can use the following vi. I added it to an example so that you can see how it works. Save both VI's to your hard drive then run the example vi.
Tim
GHSP
Download All
0 Kudos
Message 14 of 16
(929 Views)

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.

0 Kudos
Message 15 of 16
(919 Views)

I would really appreciate your feedback on creating the timer based on pressure reading. Thanks

0 Kudos
Message 16 of 16
(895 Views)