Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

problem with reading the serial port

Solved!
Go to solution

Though even the program work put some more time 300ms or 500ms.

 

Labview is amazing.

0 Kudos
Message 11 of 17
(1,369 Views)

OK.

 

Thank you

Gustavo Carlos da Silva

PROBES - Engineering Solutions - Brazil
0 Kudos
Message 12 of 17
(1,362 Views)

Good morning,

my problem with serial communication seems to be similar to the one of gustavo carlos but it has not been solved with a simple delay.

I try to get continous information of an eletronical load HDT ML50 (µload) every second (minimum)

As you can see the program sends the string "TA000000" serial, what means to "Tell All" Values of the electronical load, consisting of current, voltage and power of the load. The command has to be closed with return and linefeed.

The problem: the values are readable but after a while the communication is lost, the program only gets a "?". After more time communication continues.

I nearly tried everything to solve this problem but I obviously do not understand the communication.

Do you have any hints or advice?

 

Best regards,

Jonas

0 Kudos
Message 13 of 17
(1,333 Views)

I´ve forgotten to add the vi, but here it is now.

I have added the random function to simulate a not constant intervall of measurement (caused by the code in while loop)

0 Kudos
Message 14 of 17
(1,320 Views)

move the open and close outside the loop

It is also not needed to have a sequence frame around the read and the write. Keep the sequence frame around the wait !

This probably helps a bit

 

Another option is just to ask for 11 bytes (or a bit more) and have endcharacter enabled and defined

greetings from the Netherlands
0 Kudos
Message 15 of 17
(1,305 Views)

open close outside

greetings from the Netherlands
0 Kudos
Message 16 of 17
(1,304 Views)

thank you for help but in fact it´s not the solution. Maybe it is caused by the instrument`? It has an internal serial to usb converter. After a while the connection is lost if timing intervall is not constant, everytime! In my opinion the handicap is the internal converter.

0 Kudos
Message 17 of 17
(1,296 Views)