LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to Control the Valves and Pump with Labview?

Thanks for the reply.

I have searched for error-50103, http://digital.ni.com/public.nsf/allkb/485201B647950BF886257537006CEB89?OpenDocument.

In this document mine is case 2 or case 6. It says combine all operations of same type together, or use buffer. But in my VI I am using each AI channel for different purpose one for voltage reading, other strain, current, temperature. How can combine different channels coz generally the read & write function need individual clear task? I am confused.

Please see my Vi attached.

0 Kudos
Message 21 of 34
(3,059 Views)

You simply wire each Create Channel from one to the next. All of your operations are the same - analog input. It's irrelevant that some are voltage, strain, etc.

 

This last example is just as wrong as your previous one.

0 Kudos
Message 22 of 34
(3,054 Views)

Thanks alot!

Please see the revised VI.

File 1: I revised the Error-50103. But I am not sure. Is it correct?

File 2: I wish to save the data file in one analog, file as voltage, current, temperature, online, one as digital data file, continously.How can I modify it?

But

1.Stop button is not working in both.

2. I am unable to save the file.

3. When I put the create channel strain analog input, it gives error , no excitation..

 

 

Download All
0 Kudos
Message 23 of 34
(3,045 Views)

How can modify my VI for one Stop?

How can I save the data of analog and digital in excel file.

Please see the attached.

0 Kudos
Message 24 of 34
(3,010 Views)

Several ways of stopping multiple loops exist.

 

Use of a notifier is one good way.  A local variable can be used, but you cannot use the latching mechanical action for the boolean and you must be very careful to avoid race conditions.

 

You inner while loop (where the Digital Read and Write are located) cannot be stopped by the stop 2 button as you have it connected unless the button is pressed before the inner loop starts.  In that case it executes one iteration and stops.  If stop 2 is false when the inner loop starts, that loop will never stop and the loop containing it will never proceed to the second iteration because it must wait for the inner loop to finish.

 

Do you want to save the data from only one iteration or all data?  The Write to Spreadsheet File.vi is the easy starting point.  It will not accept mixed numeric and boolean data so you will need to do some manipulation of data before writing to file.

 

Lynn

Message 25 of 34
(3,003 Views)

Thanks John.Your suggestion helped me alot.

 Please can you help me develop the VI for saving analog and digital data as per the VI I posted.

0 Kudos
Message 26 of 34
(2,979 Views)

Yes I want all data which is iterated or online data values.

0 Kudos
Message 27 of 34
(2,982 Views)

First you need to define the format for data in your file.  Will it be a text file (tab- or comma- delimited) or a true Excel format file? How many significant digits do you need to save for each data point?  Is it the same for all columns or different fro different kinds of data?  HOw will you format boolean data in your file?  What kind of headers do you need in the file?

 

When you have defined these things, then you can get to specifics about how to save to the files.

 

Lynn

0 Kudos
Message 28 of 34
(2,972 Views)

I am using N channels with one sample data at each channel. File format needs to be excel.

 

Analog Data  consist of Pressure values, Temperature Values, Level values

Digital Data consist of Information about Motor, compressor, pump switches On/Off i.e 1 and 0 values

 

Digital Data             Analog Data                    

   Pump                  Pressure    Temperature  Level     

 

Digital data

Compressor

 

Digital Data

Motor

 

0 Kudos
Message 29 of 34
(2,964 Views)

how can I change the filling color in the pipes? Its by default giving black color? I checked the properties there is no option to change the fill color also its not availble in the scales, when I right click the pipe it give the color pallete, I can change the color to any color but when I run the program the pipe is enabled, the color changes to black?

please let me know how can I solve the problem.

0 Kudos
Message 30 of 34
(2,945 Views)