LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

serial hanging

I am running LV6.1 on Windows XP. I am communicating with a balance
that transmits a string of 16 charachters every .4 seconds. Right now I


1) initialize port to have same settings as the balance,
2) have a subloop to wait until number of bytes at serial port is 16,
3) read port, display data,
4) loop back to 1

After a bit it conks out, sometimes pressing the lightbulb gives a green arrow on the READ, sometimes I am stuck waiting until I get 16 charachters, and after I close labView entirely I get a
window that pops up saying

LabVIEW.exe application error
The instruction at "0x73e6b89a" refferenced memmory at "0xfffffffff".
The memory could not be "read".

I have tried having 4) loop to 2 , and rewiring everything with
VISA, even the V
ISA read serial with timeout does the same thing. After
it times out, it will attempt to restart, but never reads anything
more, just timeout....timeout.....

Any ideas?
0 Kudos
Message 1 of 3
(2,740 Views)
What's your serial timeout when you look for a character. I would keep it
very small.

vishi

"poly" wrote in message
news:5065000000080000008C900000-1042324653000@exchange.ni.com...
> I am running LV6.1 on Windows XP. I am communicating with a balance
> that transmits a string of 16 charachters every .4 seconds. Right now
> I
>
>
> 1) initialize port to have same settings as the balance,
> 2) have a subloop to wait until number of bytes at serial port is 16,
> 3) read port, display data,
> 4) loop back to 1
>
> After a bit it conks out, sometimes pressing the lightbulb gives a
> green arrow on the READ, sometimes I am stuck waiting until I get 16
> charachters, and after I close labView entirely I get a
> window that pops up saying
>
> LabVIEW.exe a
pplication error
> The instruction at "0x73e6b89a" refferenced memmory at "0xfffffffff".
> The memory could not be "read".
>
> I have tried having 4) loop to 2 , and rewiring everything with
> VISA, even the VISA read serial with timeout does the same thing.
> After
> it times out, it will attempt to restart, but never reads anything
> more, just timeout....timeout.....
>
> Any ideas?
0 Kudos
Message 2 of 3
(2,740 Views)
Could you post your code? I have used serial IO in this configuration without problems.

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 3 of 3
(2,740 Views)