02-18-2023 01:01 AM
I had this idea that it would be really nice to be able to program the relay card to open and close certain relays with a single input, instead of controlling a single relay with a bunch of labview code and have my timing be limited to software constraints.
I want to be able to turn on 4 relays, sequentially, within 5ms. I don't think I could do this with software because it would take to long for the computer to make it happen. But if i could make it a hardware timed event, that would be really cool.
Theoretically it would make sense that i would be able to program the relay card, but i have no idea how or where to begin.
The relay card I am using is a NI PXI-2567.
Thanx!
02-18-2023 08:53 AM
You can refer to shipping examples for NI-Switch. Go to Help >> Find Examples... > Hardware Input and Output >> Modular Instruments >> NI-Switch.
You can pay attention to the examples of Scanning with NI-DMM, which implements hardware scan triggers.
02-18-2023 09:10 AM - edited 02-18-2023 09:11 AM
@ranvealiu wrote:
I had this idea that it would be really nice to be able to program the relay card to open and close certain relays with a single input, instead of controlling a single relay with a bunch of labview code and have my timing be limited to software constraints.
I want to be able to turn on 4 relays, sequentially, within 5ms. I don't think I could do this with software because it would take to long for the computer to make it happen. But if i could make it a hardware timed event, that would be really cool.
Theoretically it would make sense that i would be able to program the relay card, but i have no idea how or where to begin.
The relay card I am using is a NI PXI-2567.
Thanx!
Just so you do consider the actuation time of relays, typical electro-mechanical relays take a few ms to actuate. When you turn ON 4 relays sequentially in 5ms, there is no guarantee that the order of real actuation is the same as the first relay could actuate in 5ms and the last one could actuate in 1ms. Only way to ensure the order of actuation is preserved is giving sufficient actuation and debounce delay between relay actuation.