LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

serial read freeze problem

Having a serial read problem with my PDA.  I have it reading in the data and then sorting out all the data it ran great for awhile and then without error it freezes up on me and doesn't display anymore data i dont know why this is. From other applications i know my device is still sending data just for some reason my code is not reading. Here is my code for the read part of my project any insight would be very much appreciated.
 
0 Kudos
Message 1 of 12
(8,868 Views)
well i have tried different approaches such as waits and flushing buffer.  Nothing seemed to work does anyone know a better way to read continually other then the way im doing it which is the vi i showed you in the last thread is in a case statement that is determined by a button the switches state.
0 Kudos
Message 2 of 12
(8,833 Views)
Does the program completely hangs or you can still act on the user interface? Do you still see something in the Data Read indicator?
I suggest you to remove temporarily the processing code and see what happens when only read and display (string) is running.
Paolo
-------------------
LV 7.1, 2011, 2017, 2019, 2021
0 Kudos
Message 3 of 12
(8,684 Views)
i can not use the user interface after it has frozen
0 Kudos
Message 4 of 12
(8,664 Views)
Hello Mark,
 
How long does it take for the PDA to hang?
What is your physical set up that you have for obtaining data?
Is this vi the only one that hangs, can you run any other vis?
 
 
Juan Galindo
Applications Engineer
National Instruments
0 Kudos
Message 5 of 12
(8,567 Views)

Here is a link towards:

Timing In Program, Hanging: Many times a read operation is performed on a port that causes the Serial Port Read VI to stop running and wait or "hang".

http://digital.ni.com/public.nsf/websearch/e22da85e97818de78625678c0069bfc9?OpenDocument

Regards, Martin

0 Kudos
Message 6 of 12
(8,492 Views)
thanks for all your help but its still seems to be freezing or not reading the data correctly that is coming though my serial port is there a better way then what i am doing to read the data coming in on the serial port continuously
0 Kudos
Message 7 of 12
(8,442 Views)
Although improvable, your vi is basically correct. Did you try my suggestion? what happens? what you see as a final value into the Data Read indicator?
Paolo
-------------------
LV 7.1, 2011, 2017, 2019, 2021
0 Kudos
Message 8 of 12
(8,437 Views)
yes i did try that and when i ran just the serial read and the program still froze and the data read was showing data but i had to exit out of the program its close out of it via task manager and then it came up with would you like to wait or end task.  To give a little more information about my project i have a sensor that is converting its voltage into a digital signal that is sent in a packet that is being transmit by a bluetooth module to my pda that i was hoping i could use labview to show what the sensor voltage is but it seems that this is giving me a problem.  Another problem i saw was that when i did finally get out of my labview program my bluetooth module seem to be still connected to something. any ideas of what could be going on. thanks for your help
 
0 Kudos
Message 9 of 12
(8,423 Views)
what improvements could i make to improve my serial read
0 Kudos
Message 10 of 12
(8,377 Views)