10-01-2007 04:59 AM
10-01-2007 08:35 AM
Before you get into the labview side of it I would define the system parameters, how are you doing the sensing of the environmental settings
1. lights: photodiode for light or is there an automated switch Networked switch
2. Probe the computer on/off using a message system or listen for fan activity
3. Temperature TC or RTD, usb module, Compact DAQ Daq card .....
Once you decide how you are going to sense the physical phenom. then the labview code should be easier.
paul
10-01-2007 08:42 AM
Before you get into the labview side of it I would define the system parameters, how are you doing the sensing of the environmental settings
1. lights: photodiode for light or is there an automated switch Networked switch
2. Probe the computer on/off using a message system or listen for fan activity
3. Temperature TC or RTD, usb module, Compact DAQ Daq card .....
Once you decide how you are going to sense the physical phenom. then the labview code should be easier.
Thanks for the quick reply 😉
The system parameters are basically
1)There is an automated networked switch... I would basically take a single switch into account and wait for it to be turned on / off to determine the condition of usage.
2) I would like to listen to the fan activity. / I may want to attach current clamps on computers to measure current usage and try and log data onto a computer
3) temperature to be measured by a normal cheap temperature sensor.. I am not sure about the USB module or any other DAQ card..
I would just like to Log the room temperature of the room at any given instance of time and save it on computer for further analysis.
Are there any tutorials related to these....Are there any readymade VI for this ? It would be very nice if you can point out some resources...Thanks.
10-01-2007 05:41 PM
10-02-2007 03:02 AM
as Falkpl pointed out, you task for the moment is not yet programming, but setting your hardware.
use a small oscilloscope, wire it to your switch sensor, observe signal.
decide on how you want to measure activity on the computer, and as well observe on a small scope that it does what you want. (side note: everycomputer has a small LED indicating operation. you can look on the motherboard and you will probably discover close to the LED connection some other unused pins. check if they give you a 5V signal when computer on - carefully )
purchase a temperature sensor - you have to decide what kind. if you are only for room temperature with no rate limit, you can just buy a cheap semsor with display of T and humidity, which has rs232 connection.
once you have your physical channels, then you can think of exactly what you want to do with them. the choice for Hardware will depend on the nb of sensors and rate of aquisition. from what i understand, you probably dont need more than a USB6008 (150$). once you have that, wire your channels to the DAQ card, and measure everything using MAX (Measurment and automation explorer - NI).
THen, and only then, it it is worth begining to develop your software. browse the Labview examples to get you started.
good luck
10-02-2007 08:36 AM
10-02-2007 09:14 AM
10-02-2007 09:30 AM
10-02-2007 09:42 AM
10-02-2007 10:00 AM
...Some more "parenting advice"...as for the modular code...do some reading at this site: http://www.idef.com/
Using tools like this will assist in defining the relationships between your modules in your system...if you have multiple developers working on the same project...I would categorize this as a must...this will also greatly reduce the amount of rework when it is time to integrate each person's puzzle piece...it also helps out when you need to change a portion of the system...you can very easily see how it will affect the rest of the system (modules)...