Quantcast
Channel: LabVIEW topics
Viewing all articles
Browse latest Browse all 66712

Labview Code Working in Highlight Execution but not in normal run

$
0
0

Hi,

I am using 4-Numato Ethernet Relay Board for the control of Powers supplies in my application. I have written the Labview code for testing one relay board at a time and all 4 relay boards at a time with different IP Address. Both codes are working fine. I can able to control all relays by having event control for ON/OFF. I have attached the Zip File for the code. Pls refer the image also for

 

But for my application I need automated control. I need to first turn On relay and perform some process and then turn off relays. My application is very big. To make it simple to explain my problem,i have written one code for which will Switch ON wait for 1 Sec and Switch OFF.The problem is that it is switching ON and after On second it is not switching off.

 

To Debug this i have done checked following things.

1. I am Initializing all four boards and taking TCP reference in an array and it was successful.

2. I am taking index array of references based on Board Number and giving for the ON/OFF control Vi. The selected relay is switching ON. The Problem is after one second it is not switching OFF.

3. So I put a breakpoint before sending switch OFF command and checked the inputs. No error, TCP/IP Reference is fine and vi is executing. but the relay is not switching off.

4. I repeated the test by executing with highlight execution after breakpoint. It is working fine and command is going. I thought timing problem and i increased the delay upto 10 seconds. It was not working in Normal run. But in Highlight execution it switches off instantly after break point.

 

So can you please provide me the solution why in Normal run it is having problem.

 


Viewing all articles
Browse latest Browse all 66712

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>