Relay switching

DUT is followed. Power is given through relay. The current control system is taking to this time delay relay is on. If the current increases up to a certain level relay must off the coast. And at the same time when the stopped program relay also change its state of not OFF. Can I use a conditional loop?

Your explanation is a bit rough.  But I'll try to help:

Use a While loop with a stop button.  On the inside of the loop insert your current tracking code.  Compare the current limit by using more function.  The Boolean value to a structure in the event of the wire.  If True, set the code to deactivate the relay.  If False, do nothing.  After the loop, put the code to deactivate the relay.  But you must have a wire from the while loop for the code to deactivate the relay.  You can stop button out of the loop of wire in a sequence structure flat and put the code to deactivate the relay inside the sequence.

Tags: NI Software

Similar Questions

  • OK to mix 'of connection to the switch"and"close relay switch?

    Hi all

    I'm developing a test sequence using the card multiplexer 2527 to the track signals.  To configure the card, I use DAQmx switch functions.  In my application, I have a Subvi routine that imports the data from a spreadsheet Setup and run a loop for to set the configuration for each step (each iteration of the loop contains the channel for 2527 card information).  The topology is set on the first iteration, as well as the configuration of the path to the first string.

    My concern is this: I need to close the extra channels/relays without changing the topology or resetting the device.  In the first round, I use "connection to the switch" function to set the initial path, (ch0 to com0 for example).  Then in subsequent iterations of the loop, I use "Relay close switch" function to close the additional channels individually (for example k2).  In the end, when the measure is taken, both ch0 ch2 must be closed and routed to com0.  This implementation is so sure, or am I somehow to make the adjustments to the initial loop?

    I would like to test this with the hardware, but it is not yet available.

    Also, I realize that I could use independent topology and configure all relays individually for each step, but I hope that my approach will be easier and safer.

    Please notify.  Thank you.

    GSinMN

    Hello GSinMN,

    It's OK to mix 'of connection to the switch"and"Close relay switch"If you understand what's happening below. "Switch Connect" connects two channels by closing a path of relay between the channels, then "Close relay switch" can be used to change the State of the individual relays. If you are not careful you can mess up your connection by activating / deactivating relays that are part of the route connecting your channels.

    "Also, I realize that I could use independent topology and configure all relays individually for each step, but I hope that my approach will be easier and safer."

    I would recommend the topology independent if you want to stick with connections to channels only. http://zone.NI.com/reference/en-XX/help/375472G-01/switch/2527_independent/

    Initial connection:

    CH0-> pcom0

    pcom0plus-> icom0plus

    pcom0minus-> icom0minus

    icom0-> com0

    In each future iteration just connect to the next to pcom0 channel (which will be indirectly connect it to com0):

    CH1-> pcom0

    CH2-> pcom0

    ...

    ...

    Jarrod

  • Strange behavior. 2590 relay switch and Get position vi.

    I'm reading a PXI2590 1 x 4 MUX switch relays that I fires only when necessary. I know the names of the relays are MUX01, MUX23 and MUX0123. If I switch, niConnect channels INIT, wait Debounce and can get the Position of the relay, I get a correct reading (closed or open). I then called niSwitch close .vi and the switch remains in this position.

    However if I just called INIT, niSwitch getting the Position of relay and close vi seems the selector to a different value (default?). I confirmed this behavior using a HF generator and Analyzer of spec.

    Is what I do with these evil vi? Can I use DAQmx driver for this switch instead?

    LabVIEW 8.5.1

    OR-Switch 3.70.49152

    NOR-DAQmx 8.7.1f2

    NOR-PXI-2590

    Hello GovBob,

    Correct me if I'm wrong.  First you call OR-SWITCH boot (not initialize with topology) or initialize options with the 'reset device' Boolean is unwired? (which means reset = true)

    Then, in a case: call OR-SWITCH connect channels, wait OR-SWITCH Debounce, OR-SWITCH get relay post, then NOR-SWITCH close (close a session, not close relay).  Then physically measure opens or shorts.

    In the other case: appeal OR-SWITCH get relay post, then NOR-SWITCH close.  Then physically measure opens or shorts.

    The results are the second case has openings (ch0 is connected to the com).  This is expected behavior since the indicator 'reset the device' in one of the screws initialize is TRUE if left thread continues.  However, if you physically measure different values compared to what OR-SWITCH get post is back, so please submit your screws and a list of the steps and the values measured for each stage.  I hope this helps!

    -Jordan

  • Relay switching with error entries. Requirements?

    I am brand new to NEITHER. I would use Labview (graphic language rather than software) from a PC to relay Board interface. The entrance will be a single microphone for operation sequential relay (up to 16 relays). Also, there should be a programmable delay relay, as well as the error input capabilities.

    Can anyone suggest a start-up package, and what would be required for this design.

    ConradH,

    You want someone to do the work for you or you want to learn LabVIEW, e/s material and the design of the system yourself?

    You mentioned LabVIEW and relays, but were not specific about what other equipment or software you have.  You have some sort of input device and digital outputs?  If so who?  What type of relay? What are the power requirements for their reels?

    What is the range and resolution of the delays? What are the initial and final conditions for your system?

    You should start going through the tutorials online on LV

    There are several examples showing how to make digital and exit entrance.  Those who would be good starting points.

    Lynn

  • DAQmx and SCXI-1160 with 'DAQmx switch Open Relays.vi '.

    Hello

    I use DAQmx to pass the baton on a map of SPDT 16 SCXI-1160. When I run the 'DAQmx switch Open Relays.vi' with the entry "ch0/SC1Mod1 / ' I think the relay normally open position 'NO '. But this is not the case, the relay is in the position of the NC. Here are the steps I do a simple VI.

    1. define the topology of the 'SC1Mod1' to '16/1160-inverter.

    2. call the 'DAQmx switch Open Relays.vi' with the string "/ SC1Mod1/ch0.

    3. then I take a physical measurement, with a multimeter on the SCXI-1324 terminal block and the relay is in position "NC".

    4. If I run the "DAQmx get relay switch Position" he's back "Open"!

    Is this the good behavior, and if so can someone explain the logic behind it.

    Thanks in advance,

    Michel

    Hey Michael,

    Sorry, I didn't know that you were actually able to control the relay and you receive just the reverse logic. To answer your question, on the SCXI-1160 module, there are three connections for each channel: COM, NO pine and pine of NC code. Reset, COM is connected to the spindle of the NC. When you issue a command to OPEN channel 0, COM will stay connected to the NC pin, even if the software indicates now that the PIN is open. When you issue a command NARROW-gauge 0, COM will be now connected to pin number and not on the spindle of the NC.

    A better way to think of it, is to focus only on the relationship between COM and no. pine. When you send a BLANKET order, this connection between COM and no. will be open. When you send a CLOSE command, the connection between COM and no. will be closed. Consult this manual for a visualization of how this switch is set up: http://www.ni.com/pdf/manuals/320513b.pdf. Refer to page 2-9 and 2-14 of this manual for pinout.

    -Nathan H

  • Why E-mail stopped to relay my ISP?

    I had my server running beautifully for serval months now.  Last Friday, we noticed that some of the emails from our office did not reach their destination in a few minutes. Some would take hours and days. I could very well receive emails. We organize our company e-mail service in the House on a mac mini with OX 10.11.6 5.1.7 server. In case of problems today, I determined that the implementation of relay on the server is correct, but when I need local customers send the relay through our server it fails. If I uncheck this requirement, local customers can send very well.

    The requirement of relay works well until last week. Without going through this may very well at the moment, but it seems counter-intuitive. Is there a problem with the installation of relay that needs work to update or rinsed out properly?

    Now that I have turned off the outgoing 'Through ISP mail relay' switch I received a call from a person in Texas who does not work for us. He received an e-mail from his home account to our domain name.

    It doesn't have an e-mail account in our system. How is this possible, and is this power flowing through our mail server?

  • Use cRIO module NI 9477 as relay to provide 24V input for Siemens S7 - 200 (CPU222)

    Dear all, could someone please confirm my use of NI 9477 as a relay works or not with the following details. It might be stupid question, but I do not know it is not displayed before and I can't really afford to burn my modules. I have two concerns, it's sink or connection to the source, another is the question of overcurrent.

    The Siemens S7-200 is used to control an engine not by sending impulses. I provide two digital signals to control the direction of rotation of the motor. So I propose to connect my NI 9477 as illustrated in the graphic below (left configuration) relay switch.

    According to the data sheet NI 9477 (attached), I suppose I should connect it as the right configuration for NI 9477 sinking module. However, power running electric in the control cabinet is wired as a configuration on the left. I don't know if I can connect to my NI 9477 or I need to set the polarity of power supply.

    Another concern would be the current that runs through NI 9477. He rated at 1 a and will be connected in series with only a power supply 24VDC input digital s7 - 200. I don't know if the current could be a problem as in s7-200 datasheet, it seems that the current is only 4mA. I'm reading this correctly? I've also attached the s7-200 Datasheet if you have time to varify that, please.

    Thanks in advance for any help.

    Kind regards

    Jinyu

    Personally, I would just change a 9476.  9477 module looks like it's better for negative logic (24V = FALSE, 0V = TRUE).

    And running for the PLC is practically in the noise of a digital signal of 24V, so I wouldn't worry on this subject.

  • OR close Switch

    Close the vi appellant NOR switch resets the relay/switch in a known state, or they keep their State existing?

    The UUT is connected to our card PXI-2568 31 SPST shouldn't have some of these switches changed while it is turned on. If the switch cards can be closed without changing the State of the switches, I can avoid the extra wires necessary to check the status of power supply and worry not for sequencing when stopping down.

    Hi NickDngc,

    Thanks for posting on the forums.  I was able to run tests, and a switch will stay in the stay in open or closed position, until you or the other power down the chassis, or reset the unit.  When you call an OR-Switch initialize VI, make sure a fake contant of wire in the Terminal to reset device, because the default value is true.  If you turn off the chassis or reset the device however, they will return to the initial state, that is open.

    I hope this helps.

    Kind regards

    Brian P.

  • Relay control using cRIO LabVIEW and the NI 9472 c series module

    Hi all

    I try to get my program to run so far without success, and need help.

    I use the compact rio with the program on labVIEW and the NI 9472 digital output module. I enclose my VI.

    Basically, it's a test program to run an algorithm at a time. If I use a solid state format to get a time warp that dictates, time of execution of the algorithm. The operation by default, I put is for when the time channel produced a fake.

    Question 1: The problem I have is that even if the time string is true, as it does not run. It remains in State sending false so only of false signals to my relay (which is represented by the round LED - relay switch a solenoid on and outside).

    Question 2: If I can get 1 problem solved, the next step I have will be executing the same algorithm, but for more than a State of time. For example. "06:00" run algorithm. I want this algorithm to keep running as long as he sends signals REAL (which means the solenoid valve remains open until a WRONG signal). Then he will run again to say '08:00 ', execute the algorithm as long as he sends signals REAL and so on...

    In summary -.

    -I want to order a relay (which controls a solenoid)

    -L' use of components listed above

    -With the help of semiconductor in labVIEW (VI attached)

    -At different times, the execution of the algorithm UNTIL sends the WRONG signal and then return to the default state, which means that his waiting until the time channel product TRUE.

    Any help would be appreciated.

    Kind regards

    William

    something like that...

  • Change the value of a Boolean switch rocker during execution

    Hello world

    Is it possible to change the value of a switch to toggle Boolean during execution?

    I make a program where the user can switch a relay switch.  However, I want the program to replace the user input if a measured value exceeds a predefined threshold.

    The program below did almost what I want.  The major problem is that it if the measured value returns below the threshold, the relay will be awarded if the switch is set to 'true '.

    I would be very grateful for any suggestions to solve this problem!

    Regards, Martin

    Hi Martin & Asad,

    Well, the problem is even more easy to solve

    After cleaning example of Asad, remove this RubeGoldberg, put in some wait States and make a correct stop button I put in place the example...

  • PXI-4110 deactivation and activation of the output

    I'm programmming power CC PXI-4110. I want to activate and deactivate the outputs. I use niDCPower_Disable() to disable the outputs. and the use of niDCPower_Initiate() to activate the outputs. Problem is after I have activate the outputs with niDCPower_Disable() and with niDCPower_Initiate() that I lose all my settings as the output voltage. What I so niDCPower_ConfigureVoltageLevel() and niDCPower_ConfigureCurrentLimit() call before calling niDCPower_Initiate() then outputs are put to the required voltage.

    I want to do is turn on and off just like pushing a button on a Panel.

    For example, I call niDCPower_Disable() to open the relay switch.

    It seems to me like there is a function niDCPower_Enable() which would close this switching relay and not reset all my voltage and current limit settings.

    Any help on the best way to proceed would be appreciated.

    Figured it out using:

    status = niDCPower_ConfigureOutputEnabled (vi_4110_0, channel0Name, VI_FALSE);

    to turn off and then I start with

    status = niDCPower_Initiate (vi_4110_0);

    In this way, my diet is ready to go, but my relay is open.

    When I'm ready to close the relay I follow these steps:
    status = niDCPower_ConfigureOutputEnabled (vi_4110_0, channel0Name, VI_TRUE);

    Then later I want to open the relay call again I have only this:

    status = niDCPower_ConfigureOutputEnabled (vi_4110_0, channel0Name, VI_FALSE);

    Problem solved.

  • PID feedback of the heating element regulation

    I developed a .VI which controls the temperature of up to 8 items from a device, I built successfully but the solution feels dirty and I'm looking for feedback.

    Hardware I use

    • USB data acquisition board - TC for temperature input and relay control (using the digital output). - Link
    • Thermocouples type K
    • Crydom solid relay switch. - Link
    • Heater cartridge 120V

    I have included an an example of a single entry .VI.  I start by configuring bit exit USB - TCs so I can control the CRDD.  Then, once all ten loops I taste a DAQ card for a weather channel.  I'm doing this because I use a second DAQ card for no temperature measurements and see common cards right now.  The temperature of the sampled goes to the the .vi PID process variable.  The output of the PID .vi range from 0 to 100% because I want a duty cycle output.   This is where it gets really "disorder."  I use the PID output to generate a waveform, and then convert a digital waveform and then to convert the digital signals in an array of Boolean.  I found the [1,1] index of that table works and I lets put the digital output channel either up or down.  I have this output connected to the Republic socialist Soviet, high once allowing current flow to the cartridge heater.

    I feel like there's a cleaner way to do it.

    Thanks for all the inputs.

    Hunter

    Sorry, I didn't watch it with enough attention your time VI the first by in order to understand what you were doing.  It's the kind of simplification you're looking for?  If you don't want to follow both entry yourself, you can use the similar "Wave.vi Square" (instead of the version of Point by Point, I've used here).

  • Fastest way to pass the baton on RT PXI-2564?

    I'm trying to pass the baton on a map of relay PXI-2564 on a PXI-8184 LVRT running. I'm running a host vi on my laptop that is networked variable Boolean such as True = False and closed = open. The way I do now the vi devours 64% of my processor PXI load. Is there a better way to do it?

    Michael

    There is a break-in associated with writing to a relay.  I suggest to convert your table relay switched from Boolean to a list of ascii to relay that you want to open, and another list ascii of the relay you want to close.  You should also check if the relay has already been ordered to open (or close).  Then simply send this list to a single instance of "open relays" vi or the "close" relay vi.  If you are minimizing the amount of communication to Dev 2.

  • LabVIEW executable becomes insensitive, Windows reports the lack of resources in trying to perform tasks of the Explorer

    I have a test program that uses modules of NOR-9481 relay to switch the power part and pass a Keithley 2000 DMM to measure the voltage. This test must feed on and off the part x 3000 for 4 minutes and 4 minutes. I've implemented this drawing using a state machine design style. Timing is done in one minute increments by using the ' find Date/time in seconds ' function available with Labview 8.2. Every minute, a measurement is performed and the data is written to a text file.

    -Algorithm measurements:

    -Whatever it is, the instrument is initialized with a reset, between state machine loop

    Measurment - function configures Volts DC and relax, (relay switch), send the trigger and read in instrument when SRQ asserts itself

    -Switching algorithm:

    -DAQmx create task w/Auto cleanup (T)

    -DAQmx create TV - digital output

    -Channel - DO property node. Reverse lines = False

    -DAQmx generate 1 d digital data

    -DAQmx write data w / Auto start (T)

    I worked with the devices that we communicate with the bugs and they seem to work normally, but for the second time (yesterday, it was a mistake DAQmx) cycle 131 (17ish hours after the test), the program became unresponsive and windows will not open the Task Manager and windows Explorer reports "insufficient system resources" which tent to open a window. LabVIEW is not report an error...

    Currently, I suspect the while loop that controls the timing and am put a WaitTillNextmsMultiple function in the loop the value 500.

    I also wonder if the sequence DAQmx consumes memory and eventually consume all system resources.

    If anyone has a problem with the cameras that I use his knowledge or ideas please help. Thank you

    N8D11 wrote:

    I have a test program that uses modules of NOR-9481 relay to switch the power part and pass a Keithley 2000 DMM to measure the voltage. This test must feed on and off the part x 3000 for 4 minutes and 4 minutes. I've implemented this drawing using a state machine design style. Timing is done in one minute increments by using the ' find Date/time in seconds ' function available with Labview 8.2. Every minute, a measurement is performed and the data is written to a text file.

    -Algorithm measurements:

    -Whatever it is, the instrument is initialized with a reset, between state machine loop

    Measurment - function configures Volts DC and relax, (relay switch), send the trigger and read in instrument when SRQ asserts itself

    -Switching algorithm:

    -DAQmx create task w/Auto cleanup (T)

    -DAQmx create TV - digital output

    -Channel - DO property node. Reverse lines = False

    -DAQmx generate 1 d digital data

    -DAQmx write data w / Auto start (T)

    I worked with the devices that we communicate with the bugs and they seem to work normally, but for the second time (yesterday, it was a mistake DAQmx) cycle 131 (17ish hours after the test), the program became unresponsive and windows will not open the Task Manager and windows Explorer reports "insufficient system resources" which tent to open a window. LabVIEW is not report an error...

    Currently, I suspect the while loop that controls the timing and am put a WaitTillNextmsMultiple function in the loop the value 500.

    Also I wonder if the sequence DAQmx consumes memory and eventually consume all system resources.

    If anyone has a problem with the cameras that I use his knowledge or ideas please help. Thank you

    If the fat thing happens repeatedly... you answered your own question.

    LV won't destroy resources until it closes as part of his routine of cleaning.

    Create tasks and assign resources once when you start and reuse until finished, then destroy them.

    Ben

  • OR handset and other relays in the direction of the switch

    Hello

    I am beginner in products OR and now I want to solve a problem.

    If I know the relay and their connection paths. These relays are of NEITHER and some other producers. Can I Switch Executive put first and last point and automatically will join them using IVI drivers? Relay cards and theit drivers can be of different producers.

    Thank you.

    Sorg,

    As crossrulz said if you have a correctly installed and configured (in max) IVI driver Executive OR Switch can manage several types of products. This includes switching modules of NOR and switching of third party modules.

    To implement automatic routing, you may need to do additional things (such as: providing the report to show how the devices are connected, lines reserve for routing, put in place by the endpoints channel configuration, etc..) Once this is set up, then you can create a connection by specifying endpoints and it will automatically route the things for you.

    See you soon!

Maybe you are looking for