11-12-2008 02:54 AM
Hi,
I am using a TB-2627 terminal block in a PXI-2527 relay multipleaxer and i am having trouble switching a relay.
In the terminal block i have a simple pos and neg which goes out to a enable button on my rig. I want to open and close this relay. I have taken part of the relay switching example but no matter what i try, when i press "close relay" rather than just staying closed it keeps openeing and closing really fast continuously.
Can anybody help me or share a bit of code that will enable me to simply keep the realy open or closed?
Kind Regards,
Kieran
11-12-2008 03:10 AM
Hi!
Just post your code!
I guess that switching is inside a while loop that is continuously launched...looking at your code would help!
graziano