Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

PCI6520 examples

Hi guys, just got my PCI 6520 relay. Where can i find example VIs using 6520? I can't find any in the examples that came with LV and on ni.com I did find only 1 VI that uses DAQmx in the examples Switch Controlling Individual Relay.vi it uses switches. Are they both the same?

I'm using 8.2.1 and DAQmx 8.3. Appreciate it if someone can point to me any links. Thanks.

Message Edited by ATMA on 08-22-2007 02:38 AM

0 Kudos
Message 1 of 10
(5,318 Views)
I've tried fixing up a 3V supply across a resistor and played around using MAX and i've managed to control the relay. But how do i switch using LV?
0 Kudos
Message 2 of 10
(5,311 Views)

Hi ATMA,

The PCI-6520 relays are controlled by NI-DAQmx as if they were static digital outputs. This means that any example for software-timed digital output will be effective in controlling your device. Any single-point digital write functions will work with the 6520 (as long as the functions do not address more than 8-bit port widths). Digital example programs can be found in the example finder (Help >> Find Examples... >> Hardware Input and Output >> DAQmx >> Digitla Generation or Digital Measurements).

David L.
Systems Engineering
National Instruments
0 Kudos
Message 3 of 10
(5,298 Views)
Hi David, thanks for replying.

Sorry but i don't understand. I'm still new with DAQmx so please bear with me.

I understand there are 8 DIO on the 6520 also. Are you saying that P0.0 corresponds to P1.0? And i only have to write a 1 or HIGH into P0.0 as i would normally in DAQmx and i can control relay P1.0?

If that's the case for eg: P0.0 have + and -, which one do i use?
0 Kudos
Message 4 of 10
(5,293 Views)

Hi ATMA,

The 6520 actually has 16 lines total – 8 channel-to-channel optically isolated inputs and 8 nonlatching mechanical relay outputs. What I mean by previously stating ‘do not address more than 8-bit port widths’ is that some cards can perform writes to 8, 16, or 32 bits at a time. The 6520 only has 8 Inputs and 8 outputs, therefore should never try to use more than 8 lines in a task configuration. The picture below demonstrates using 8 lines in a task.


This was taken from the shipping example ‘Write Dig chan.vi’. You only need to declare the lines you will be using. This program also shows how you can assign a different value to each line.

I have put a picture below to answer your questions about connections. This was taken from the NI 6520/6521 User Guide, p14.


Message Edited by David L. on 08-23-2007 08:35 AM

David L.
Systems Engineering
National Instruments
Download All
0 Kudos
Message 5 of 10
(5,286 Views)
Hi David, thanks for the screenshots. I have actually already read the user guide.

I think you have misunderstood what i wanted. Let me give you an example:

I have a +5Vdc, + connected to P1.0COM, and it returns to a motor through P1.0NO and back to the - of the power supply. P1.0NC is not connected.

How do i program in LV to toggle this P1.0 relay to turn on and off?
0 Kudos
Message 6 of 10
(5,273 Views)
I got it.

The P1.Xs are actually my digital outputs and the P0.Xs are my digital inputs.
0 Kudos
Message 7 of 10
(5,271 Views)

ATMA,

Yes, that is correct. Also, in order to control the outputs, you can use the example I mentioned in my previous post. Run the VI and change the switches on the front panel to control the 6520 output lines. Lines 0,1,2 will switch between NC & NO depending on the digital output, and lines 3,4,5,6,7 will switch between open and closed. Please see page 8 of the user manual for diagrams and more information.

David L.
Systems Engineering
National Instruments
0 Kudos
Message 8 of 10
(5,262 Views)

Hello,

 

  I am trying to use the relays in  PCI 6521 and CB 37F LP to control measurement of 6 devices sequentially. I see that in the DAQ assistance properties, there are digital output in that we have line and port, while clicking port, i see port1 and port1-8 what does these two means.

 

  I have 6 devices to do the same IV characteristic using keithley 6430 source measure unit. I plan to use relay to select each device one at a time. Can somebody advice me how to programme the PCI 6521 for this purpose please. I deeply appreciate your help and Thanking you in advance

 

Manoj

0 Kudos
Message 9 of 10
(4,794 Views)

Hi Guys

 

I'm using card PCI6520 with the NI Vision Builder and it's communucating with automate , my question is can i use  the same Line of the card ,used in the first programe, with another programe without disturbing the performance of the first programe ?   

0 Kudos
Message 10 of 10
(4,225 Views)