03-19-2012 04:06 AM
Hi
I am looking for an example that demonstrate how to command many transistors that I am using to control relays. To generate signals, I am using PCI-MIO-16E-4
Can someone give me a link to an example.
Thanks
03-19-2012 04:42 AM
Rafa,
The PCI-MIO-16E-4 card had 8 Digital IO, which can be used to control your relays. You can write to this port either as a port or as individual lines.
As this is an older card, I had a dig around the NI site to find out if this card is compatible with the DAQmx drivers. The card is also known as the 6024E, and _should be_ compatible with the DAQmx drivers.
If you are new to NI LabVIEW and Data Acquisition device, I'd recommend that you start in Measurement and Automation Explorer (MAX) to configure a couple of DAQmx tasks/global channels to control this port, and then extend in your application if you need lower-level control. You can also play around with the IO in MAX so that you can test your physical setup without worrying whether your LV code is "good".
Additionally, you can use the following shipping examples with LV to play around with the DIO of the 16E-4.
Write Digital Channel.vi
Write Digital Port.vi
Which can both be found in the following directory:
C:\Program Files\National Instruments\LabVIEW XXXX\examples\DAQmx\Digital\Generate Values.llb\Write Dig Port.vi
Good luck!
Wes