LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem in reading data from serial port continuously- application hangs after sometimes

My other PC have SP3 and 1GB RAM

--------------------------------------------------------------------------------------------------------
Kudos are always welcome if you got solution to some extent.

I need my difficulties because they are necessary to enjoy my success.
--Ranjeet
0 Kudos
Message 51 of 60
(1,049 Views)

I now used 2 while loops but one of the while loop halts after some times after my application halts. 

 

Weight.png

 

Here is also my application which I modified.  Let me know if I any modification is needed.

 

--------------------------------------------------------------------------------------------------------
Kudos are always welcome if you got solution to some extent.

I need my difficulties because they are necessary to enjoy my success.
--Ranjeet
0 Kudos
Message 52 of 60
(1,041 Views)

I don't see anything obviously wrong in your VI that would explain what you are seeing.  Since it is working on one PC, but not on another, then I expect it is a hardware/driver problem rather than a problem with your code.

 

What type of serial ports do you have on the problem PC?  If they are USB to RS-232 adapters, do you know what chipset they are using (FTDI vs. Prolific vs. something else).  If they are USB based, do you have power management options set that are shutting down the USB ports or hubs?

 

Can you try a different brand of serial adapters?

0 Kudos
Message 53 of 60
(1,030 Views)

Why did you wait until now to drop that bomb of vital information?  Wouldn't you think that having it work on one machine and not another is a vital piece of information???

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 54 of 60
(1,021 Views)

I'm thinking that the original problems with the program design kept it from truly working on either machine.  Now that the program is cleaned up, it works properly on one PC and has now unmasked the other problems with the non-working PC.

 

I'm giving the benefit of the doubt that this new issue with the bad PC wasn't known when this thread first started.

0 Kudos
Message 55 of 60
(1,017 Views)

@RavensFan wrote:

I'm thinking that the original problems with the program design kept it from truly working on either machine.  Now that the program is cleaned up, it works properly on one PC and has now unmasked the other problems with the non-working PC.

 

I'm giving the benefit of the doubt that this new issue with the bad PC wasn't known when this thread first started.


I think you should doubt my ability to read a post as well.

 

Ranjeet, I offer a formal apology for misinterpreting your last post.  It was made in ignorance.  I did not realize that you made radical revisions to your VI.

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 56 of 60
(1,012 Views)

@billko wrote:

Why did you wait until now to drop that bomb of vital information?  Wouldn't you think that having it work on one machine and not another is a vital piece of information???


I wasn't hiding this purposely, I said I made a mistake. I really apologize for that and really thankful for you guys time 

--------------------------------------------------------------------------------------------------------
Kudos are always welcome if you got solution to some extent.

I need my difficulties because they are necessary to enjoy my success.
--Ranjeet
0 Kudos
Message 57 of 60
(992 Views)

@RavensFan wrote:

I don't see anything obviously wrong in your VI that would explain what you are seeing.  Since it is working on one PC, but not on another, then I expect it is a hardware/driver problem rather than a problem with your code.

 

What type of serial ports do you have on the problem PC?  If they are USB to RS-232 adapters, do you know what chipset they are using (FTDI vs. Prolific vs. something else).  If they are USB based, do you have power management options set that are shutting down the USB ports or hubs?

 

Can you try a different brand of serial adapters?


As I showed in my VI one loop is running and other stops, if any data appears then it starts running. Its woking on development PC not other PC, I genuinly think this is not a hardware problem becasue  number which is keep incrementing is actually a data which I am reading from COM port. I have COM PORT (9 pin) directly given to my other PC (where I am installing my app) motherboard. Infact in development PC I am using adaprt (RS232-USB). What you said is right regarding power management but here I am not using any adapter. This might possible that my scanner which is actually halting may have some power management setting. Let me check this settings. 

 

Thanks

--------------------------------------------------------------------------------------------------------
Kudos are always welcome if you got solution to some extent.

I need my difficulties because they are necessary to enjoy my success.
--Ranjeet
0 Kudos
Message 58 of 60
(984 Views)

@Ranjeet_Singh wrote:

@billko wrote:

Why did you wait until now to drop that bomb of vital information?  Wouldn't you think that having it work on one machine and not another is a vital piece of information???


I wasn't hiding this purposely, I said I made a mistake. I really apologize for that and really thankful for you guys time 


I twas my bad on this one, Ranjeet.  I apologize.  I did not see that you had radically changed your VI.  😞

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 59 of 60
(978 Views)

@billko wrote:
I twas my bad on this one, Ranjeet.  I apologize.  I did not see that you had radically changed your VI.  😞

Its ok friend. I had this doubt that this is feature, when I was using 1 while loop then it was making whole vi halt and now only one while loop is halting. 

--------------------------------------------------------------------------------------------------------
Kudos are always welcome if you got solution to some extent.

I need my difficulties because they are necessary to enjoy my success.
--Ranjeet
0 Kudos
Message 60 of 60
(959 Views)