03-18-2012 04:29 AM
Hi, I going to do my first big project in LabView. I need 3 relays, 1 input (temperature) and maybe 1 pwm. I look after oficial relay boards, but its too expensive for me. So I want build my own relay card controlled by some microchip. Or if you can recomend me some cheap relay board, it would be great (something like this http://www.selfcontrol.cz/re3usba.htm or on ebay http://www.ebay.com/sch/i.html?_sacat=0&_nkw=relay
03-19-2012 11:13 AM
03-19-2012 01:33 PM
LabVIEW is able to receive and generate data over the RS-232 serial port of your computer. Instead of using a microcontroller, you could use a simple serial to parallel converter and have each of the parallel output pins control the base of a transistor that then controls the coil of your relay. You'll need to make sure your serial to parallel converter only updates once you've shifted all the bits in... this would require a counter on the clock to commit the output every N clock cycles (N is the number of bits in the shifter).
If that is too difficult, you can still use the RS-232 port and then program LabVIEW to interface with a microcontroller that then controls the relays...
03-19-2012 05:59 PM
How about using an Arduino and a relay shield. You can then use LIFA (LabVIEW Interface for Arduino?) to process your data. Sparkfun has a package that included a Arduino with LabVIEW student edition pretty cheap. A relay shield is about 20$ US. There are tons of support for Arduino and lots of examples. Since you probably have LabVIEW already you probably just need a Arduino and relay shield.
03-20-2012 10:28 AM
I'm glad you like the idea. I just want to make sure you or any other folks that read this thread understand that LIFA will not program the Atmel chip on the Arduino. To program the chip you will still need to write a "sketch". But like I stated earlier there are a ton of examples at the Arduino website and others. Enjoy your project.
04-13-2012 02:07 AM
so I try arduino and works well, but Im afraid of is labview is the rigt software for my program, can someone tell me is this things are possible in labview:
I thinking about programing it in some Objective-C or something like that, but I have no expirience, can you recomend me some easy to lern object language?
thanks very much