LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

[Two Questions] [1. Wiring problem of thermal couple][2. How to add a counter with reset function]

Hi:

 

I have two questions in the labview program to ask.

 

1.

The .exe file, originated from this labview source file, is now working properly. After I installed the Labview 2010 in my laptop and opened this source file, there is a wiring problem about the thermal couple appeared. I did download the sub_VI of the thermal couple (LabJack, U6) from the company website and linked it to the source file. Therefore, I am not sure the reason of having this message of wiring problem. Based on the hint, I opened the "Context Help" and saw the window at top-right concer of the attachment.

If anyone has the idea of fixing it, please let me know.

 

2.

The original function of this source file is to switch on/off the power supply under the targeted temperature. Now I try to add an interlock, switching off the power supply when the temperature is over 80C for a certain time period (say ~2 hrs). In the whole loop structure, the load temp will be read every 5s. The way I am thinking now is to design a counter and link it to the case structure (see red circle 2). I use the "Formula Node" and write the counter inside. I setup the load temp as the input variable "T". If T is over 80C, the variable y will be added 1 every 5s. If T is less than 80C, y will be reset to 0.

Please let me know whether the code in the Formula Node and the whole idea are workable. I am not sure whehter I should initialize y as 0. 

0 Kudos
Message 1 of 5
(3,489 Views)

The word is thermocouple.

0 Kudos
Message 2 of 5
(3,478 Views)

Hi:

 

I have solved the question 2.

 

Can anyone provide the hint for question 1?

 

Since the .exe file from the original souce file works fine, I don't expect to see this problem.

0 Kudos
Message 3 of 5
(3,450 Views)

My guess is that you have a different subVI with the same name. The one shown in the context help window only has error in and error out terminals while the one on the block diagram has an array of integers as input  and an array of DBL as output.  LabVIEW is a strictly typed language meaning that if you connect wires of differnt datatypes, the resulting wires will be broken. The image does not show broken wires so the subVI terminal configurations must be different.

 

Lynn

0 Kudos
Message 4 of 5
(3,420 Views)

Hi:

 

Thanks!!

 

The problem got fixed.

0 Kudos
Message 5 of 5
(3,397 Views)