LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to Control the Valves and Pump with Labview?

If I am interpreting your response correctly the data file would look like:

 

PumpCompressorMotorPressureTemperatureLevel

0103.257.65.5

1103.858.26.4

...

 

Is that what you want?  If so, convert the booleans to 1,0 and create an array with the values in the order which matches the header.  Then either build a 2D array and write it to the file when all the data has been collected or write the 1D array to the file (append) after each acquisition.  If a text-type spreadsheet file is acceptable (Excel can open them), use the Write to Spreadsheet File.vi.  If you need the native Excel file format, you need to use other methods.  I have never tried to generate a true .xls file so I cannot help with that.

 

Lynn

0 Kudos
Message 31 of 34
(2,204 Views)

hello. i m almost facing the same problem which is the controlling of water pump (based on two level sensors in the tank) and two solenoid valve(based on two moisture sensors in two different fields). i m using modbus to access the data from the PLC and my plc type is omron...

 any kind of help will much appreciated.....

 

two level sensors are in the tank(when ever the sesnor at the bottom is off the pump will be on and when ever the sensr at the top is on the pump will be off).

for the moisture sensor when the sensor is on , the solenoid valve will be on.

0 Kudos
Message 32 of 34
(1,998 Views)

Hi Kerim, 

 

What problems are you running into?

 

It sounds like your communicating with an Omron PLC using Modbus, are you using a host PC running LabVIEW to carry out that communication?

 

As a side note: You may get more interest from other users by starting a new thread (possibly referencing this one), rather than posting your question on a thread that's been inactive for over a year.

Applications Engineer
National Instruments
CLD Certified
0 Kudos
Message 33 of 34
(1,976 Views)

Dear sir...

i is really nice work for u....may i ask about the way to program or create such three or four state valves in Labview? is it customizing for binary or other controls / indicators?

thanx

0 Kudos
Message 34 of 34
(1,507 Views)