LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Why do my LabView program hang on my PC?

What is the exact string you are writing?
0 Kudos
Message 11 of 23
(1,659 Views)

something like that.

 

String.png

0 Kudos
Message 12 of 23
(1,652 Views)

Now I tried this... as you can see, the Read Buffer is empty.

Unbenannt.pngFrontPanel.png

0 Kudos
Message 13 of 23
(1,645 Views)
You aren't appending a termination character with your write. Look in the manual to see what is required. It should be either a line feed or carriage return. You must right click on the control and select \ Codes Display and use \n or \r.
0 Kudos
Message 14 of 23
(1,631 Views)

I dont know exactly what you mean, but i added my program at the attachement... maybe you couldt show me what you mean?

0 Kudos
Message 15 of 23
(1,617 Views)

@MarcTUD wrote:

I dont know exactly what you mean, but i added my program at the attachement... maybe you couldt show me what you mean?


Right-click on your string control and choose '\' Codes Display.  Now put a "\n" at the end of your entered string.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 16 of 23
(1,604 Views)

Now there is no error message any more... but the ReadBuffer is still empty.

Furthermore, i can see that the milliseconds multiple has no influence anymore... however what i put in.

 

FrontPanel.png

0 Kudos
Message 17 of 23
(1,589 Views)
You aren't supposed to get any error until you stop the while loop. Have you looked in the manual for the correct termination? Did you try a carriage return? Did you try CR/LF?
0 Kudos
Message 18 of 23
(1,577 Views)

After some settings (in aid on your advices) i got as far,

that my buffer shows me the string... but in 3 alternating displays.

Actually only the second display is that what i need.

 

Can somebody tell me why?

 

string.png

0 Kudos
Message 19 of 23
(1,568 Views)

What is the exact model of your instrument?  Whatever you are getting is specified in the user manual of the instrument.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 20 of 23
(1,561 Views)