LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do you send the Ascii-2 protocol to the Temperature and Humidity Chamber?

Hello
I want to control weiss company's chamber through LabVIEW.
I found a data sheet with Ascii protocol that can control the chamber.

So I made an Ethernet connection through NI MAX, and I entered the Chamber's ip address and port number into the tcp open connection.
You also used TCP Write to enter commands in the data sheet along with the carriage return constants.
However, the output of TCP read does not produce the value I want.

Is my VI correct?
How do I enter ASCII-2 PROTOCOL?

Attached is the VI I made, and I attach the picture of connecting the Chamber through NI MAX and the data sheet of the Chamber.

Thank you in advance for your help.

 

1.PNG2.PNG3.PNG

0 Kudos
Message 1 of 7
(892 Views)

Hi seongmo,

 


@seongmo1476 wrote:

However, the output of TCP read does not produce the value I want.
Is my VI correct?
How do I enter ASCII-2 PROTOCOL?

2.PNG


When the output is not the expected one then your VI is surely not correct…

 

General advice: The protocol is written badly, you should ask Weiss for a better one! Currently it contains misleading information, and even some German (aka "non-translated") important remarks in an otherwise English text…

 

Specific advice: Weiss describes the command as "$01I". That "I" character surely is not the vertical bar char (ASCII 124, |), but instead you should try either a capital i (ASCII 73, I) or the non-capital L (ASCII 108, l)…

Best regards,
GerdW

using LV2011SP1 + LV2017 (+LV2020 sometimes) on Win10+cRIO
0 Kudos
Message 2 of 7
(848 Views)

Hi GerdW

 

ok.. i understand!

 

I'll try and respond again.

0 Kudos
Message 3 of 7
(843 Views)

Why are you so sure that is not the problem.  The manual is unclear as to exactly what that character is.

 

Other commands use capital letters.  It seems unlikely that this one command would use a vertical bar symbol!

0 Kudos
Message 4 of 7
(840 Views)

Hi GerdW

 

I tried both i and l.
L(ASCII 108, l) was printed with the same data as | (ASCII 124, |) but i (ASCII 73, I) was different.

When i (ASCII 73, I) was entered, the code worked for 10 seconds, and the following error was output.

What's the problem with this?

 

error2.PNG

error1.PNG

0 Kudos
Message 5 of 7
(832 Views)

Hi seongmo,

 


@seongmo1476 wrote:

When i (ASCII 73, I) was entered, the code worked for 10 seconds, and the following error was output.
What's the problem with this?


Did you read the explanation for that error?

The code didn't "work for 10s", it just waits for 10s for a response of your device - which didn't arrived…

Best regards,
GerdW

using LV2011SP1 + LV2017 (+LV2020 sometimes) on Win10+cRIO
0 Kudos
Message 6 of 7
(822 Views)

Did you have any further progress with this? I too am trying to talk to a Weiss chamber.

0 Kudos
Message 7 of 7
(356 Views)