05-24-2011 10:25 AM
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
11-08-2012 08:10 AM
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.
11-09-2012 12:30 PM
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.
05-14-2016 04:24 AM
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