NI Home > Community > NI Discussion Forums

Switch Hardware and Software

Showing results for 
Search instead for 
Do you mean 
Reply
Member
MaxXx
Posts: 72
0 Kudos

labview programmable relay switch

[ Edited ]

Hello,

 

I have an experiment where a controller probe needs to be switched on/off to take measurement every 30 seconds or so. It is right now a mechanical switch that needs to be flipped on/off. I'm pretty new to switches and I dont know if there exists one but I'm trying to look for a relay switch that can be programmed and controlled via LabView so that I can automate the process. The switch should be done in real time and needs to be able to control up to 3 separate switches. It doesnt has to be one made by NI, it could be from other companies too. 

 

Thank you,

Max 

Message Edited by oioi on 11-18-2008 01:50 PM
Active Participant
Seth_B.
Posts: 756
0 Kudos

Re: labview programmable relay switch

oioi,

 

There are several possibilities:

  • Use an NI PXI or SCXI relay switch.  These are easy to integrate with LabVIEW, thanks to the NI Switch driver.  You can browse our Switches Product Page and choose your desired specifications to browse our various switch modules.
  • Use a TTL controlled external relay switch.  This will require you to configure your DAQ card to send the correct TTL signal on one of the digital lines.  You can send these commands in LabVIEW, but you'll need to pick a switch that works the both the specifications of your probe and the TTL setting of your DAQ card.

I hope one of these options will fit your application.
Seth B.
Staff Test Engineer | National Instruments
Certified LabVIEW Developer
Certified TestStand Developer

“Engineers like to solve problems. If there are no problems handily available, they will create their own problems.”- Scott Adams
Active Participant
Chad_FSE
Posts: 376
0 Kudos

Re: labview programmable relay switch

Hi Max,

 

I would like to add to Seth's first suggestion:

 

  • Use an NI PXI or SCXI relay switch.  These are easy to integrate with LabVIEW, thanks to the NI Switch driver.  You can browse our Switches Product Page and choose your desired specifications to browse our various switch modules.

 

Be sure to check out the relay driver modules (NI PXI-2567 and NI SCXI-1167) in addition to the general purpose switch modules.  If you already have external relays you simply need to drive, then the NI PXI-2567 or SCXI-1167 may just be the solution you're looking for!

 

Hope this helps!

 

Chad Erickson
Switch Product Support Engineer
NI - USA

 

 

Member
MaxXx
Posts: 72
0 Kudos

Re: labview programmable relay switch

Hello,

 

Thank you for your suggestsions. I have found a suitable switch that is perfect for my application. The model number is USB-6525. It is programmable with labview, cheap, and I dont need to get a complete PXI setup.

 

Thanks again for all your helps.

 Max

Member
pikapp506
Posts: 1
0 Kudos

Re: labview programmable relay switch

Thank you Max.  I just happened to see this posting and I believe the USB-6525 will work perfect for my application too.
Member
09845590208
Posts: 5
0 Kudos

Re: labview programmable relay switch

Hi,

 

I'm using a 2567 relay model to drive another relay which gets activated when 24v supply is given to it i'm connecting the two wires of the coil

to ch8 and com8 respectively i'm using the below program to connect and disconnect the relay but the relay is not continuosly on wen i run the progam 

it is flickering betweeen on and off continuosly when the case is true but i need the relay not flicker and to be in on state till i make the case false and disconnect it pls help me  

Member
Frank-L
Posts: 162
0 Kudos

Re: labview programmable relay switch

Hello,

 

I think the issue that you are having is caused by the fact that the Boolean "Ahead" can only either be true or false. When you click the "Ahead" button, your code goes true for a split second and makes the connections as expected. However after the program loops around, the Boolean "Ahead" is in the false state and it immediately disconnects your connections. This will cause the flickering that you are seeing. In addition, your code has a "disconnect all" function after every iteration, further preventing anything from turning on successfully. 

 

I have made a small example using a state machine to control the connections. It is fully documented so it should explain how it is works within the code. Let me know if you have any questions!

 

Steps:
1.) Select your switch device and topology.
2.) Click Run.
3.) Select the switch channels that you want to modify.
4.) Choose the action you want to perform from the drop down list. (Connect, Disconnect or Wait).
5.) Click "Enable Action" button (OK Button). This will perform the action and go to the "Wait" state.
6.) Continue to use by selecting actions and enabling them.

Frank,
National Instruments
Staff Software Project Engineer
Member
09845590208
Posts: 5
0 Kudos

Re: labview programmable relay switch

Thanks Frank the program is working fine for my application,ill ve to connect many relays to my 2567 in future, ill let u know if any assistence is required

Member
09845590208
Posts: 5
0 Kudos

Re: labview programmable relay switch

Hi Frank,

 

There is another problem i'm facing today, i'm operating 3 relays using ch8 ch9 and ch10 using the same program you had sent 

it was operating fine in the morning and after some time it stopped working suddenly i've not made any changes in the circuit or program 

i dono why it is not working pls help

Member
Kyle_K
Posts: 65
0 Kudos

Re: labview programmable relay switch

Hello, 

 

Could you explain how it stopped working? Were you still using it to actively change the switches or did you set it to a configuration an leave it alone for a while? Can you verify that your power source is not being interrupted? The answers to these questions will help give us an idea of what is happening.

 

Kyle K.

Product Manager for Product Data
National Instruments