01-17-2013 02:20 PM
@wzz525 wrote:
Hi Mark,
You mean APC has extant LabVIEW library that I can easily control the power in LabVIEW? That would be great.
No, it is a library we developed. However I would be willing to post it.
01-17-2013 02:25 PM - edited 01-17-2013 02:30 PM
@wzz525 wrote:
Our DAQ device is http://www.mccdaq.com/usb-data-acquisition/USB-2404-10.aspx
Does this work for the SparkFun devices you mentioned? Thanks.
your DAQ does not have DO's to control the devices mentioned...you can buy a cheap /inexpensive Arduino UNO and use LV drivers
01-17-2013 02:25 PM
Can you post it now? I'd like to look at your library and get to know how to use it.
Thanks.
01-17-2013 02:31 PM
OMG, it looks like so complicated for the Arduino UNO. I have no background on such subjects as electronics.
01-17-2013 02:32 PM - edited 01-17-2013 02:36 PM
01-17-2013 02:39 PM - edited 01-17-2013 02:39 PM
Here are the two libraries you need. The APC stuff includes a small application for controlling the outlets manually.
01-17-2013 02:44 PM
Just to clarify if I get it right.
If I follow Simon's advice (i.e. using PowerSwitch Tail II from SparkFun), I still need another device (i.e. Arduino UNO). What's the purposes of these devices?
My guess is: PowerSwitch is used as a controllable power supply, which would be connected with the wall power outlet and the input of our lamp. The on/off of the PowerSwitch can be controlled by external signal, which is supposed to be done by the Arduino UNO. And the Arduino UNO has LabVIEW based driver, which I can control it by LabVIEW. What's the connection between Arduino UNO and our DAQ device? Is Arduino UNO a separate signal generator? I'm a little confused. Pls clear my mind!!!
01-17-2013 02:53 PM - edited 01-17-2013 03:01 PM
@wzz525 wrote:
Just to clarify if I get it right.
If I follow Simon's advice (i.e. using PowerSwitch Tail II from SparkFun), I still need another device (i.e. Arduino UNO). What's the purposes of these devices?
My guess is: PowerSwitch is used as a controllable power supply, which would be connected with the wall power outlet and the input of our lamp. The on/off of the PowerSwitch can be controlled by external signal, which is supposed to be done by the Arduino UNO. And the Arduino UNO has LabVIEW based driver, which I can control it by LabVIEW. What's the connection between Arduino UNO and our DAQ device? Is Arduino UNO a separate signal generator? I'm a little confused. Pls clear my mind!!!
your DAQ is only an input acquisition device, on the other hand...UNO(did I forget to mentioned it also has PWM and SPI serial comm. onboard) is both input and output(which you need to control the other devices mentioned) which can be controlled by LabVIEW and at 1/10 of the cost of DAQ USB 6009
01-17-2013 03:05 PM
Thanks, Mark.
01-17-2013 03:17 PM
I'll take a look at this. Thanks for your advice.