Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

casio ct3000h balance rs 232 communication

Hi

I am working with a casio ct3000h balance to register weight changes on food during drying inside a vacuum oven.

This balance sends data every time the weight changes so there is no time expected for data transfer from it.

I use the example Advanced Serial Write and Read.vi and modified it to just read.

The problem is that if I put a low number (10 s for example) in timeout visa configure serial port, I get the error 1073807339 timeout expired,

if I put a high number (3600) the program runs but cannot be stopped and freeze when I try to end it.

 

The data that I get is like this

 

2B 20 20 20 20 35 2E 36 20 20 67 0D 0A (hexadecimal)

+    5.6  g (character)

 

 2B 20 20 20 20 38 2E 37 20 20 67 0D 0A (hexadecimal)

+    8.7 g (character)

 

 2B 20 20 20 31 31 2E 32 20 20 67 0D 0A (hexadecimal)             

+   11.2 g (character)

 

I wonder if I should use the Xon\Xoff character

 

Thanks in advance

 

Carlos Fuentes

0 Kudos
Message 1 of 4
(3,159 Views)

you can read the number of bytes available via a property node. Check the serial functions "VISA bytes at serial port"

Then wait until bytes at serial port > 13 and then read, no freezing anymore.

greetings from the Netherlands
Message 2 of 4
(3,157 Views)

thanks a lot for your help I modify my program using your suggestion and it works fine

I attach my program for anyone who could use it

Carlos Fuentes

0 Kudos
Message 3 of 4
(3,150 Views)

Thanks for posting

greetings from the Netherlands
0 Kudos
Message 4 of 4
(3,142 Views)