LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

visa-serial

hi to all.

i write a program with pic and connect it to the pc (lab view) with seriat to usb connector. this progam send temp of the amb to the pc(data logger) . this sampling is every 10 ms update.i have several problem.

after several minute stop the program so that display this error(on the image).lab view stop and hanging . sometime restart the my pc!!

i use the serial to usb connector(made in china!!!) whats is the problem?

visa.jpg

0 Kudos
Message 1 of 14
(3,787 Views)
Neither the error message or your VI are readable in that image. Do NOT attach such images in the future. If you attach an image, attach a snippet. That is a specific type of image. Look it up in the help if you don't know how to create one.
0 Kudos
Message 2 of 14
(3,775 Views)
0 Kudos
Message 3 of 14
(3,750 Views)

Hi zahra,

 

the error says: "You're too slow with reading the data from the port!"

 

So: read more often and/or read more bytes/chunk…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 4 of 14
(3,737 Views)
You still haven't attached a snippet!
0 Kudos
Message 5 of 14
(3,733 Views)

tnx.

dennis i dont understand. whats is this?

 

i think i have to set a block for example(clear visa,flush or ...) thats true?

beacouse my buffer will become full and hang my program.

whats should i do ?????/

0 Kudos
Message 6 of 14
(3,719 Views)
You shouldn't let your buffer get full!

A snippet is fully explained in the LabVIEW help as I already said.
0 Kudos
Message 7 of 14
(3,710 Views)

tnx .tell me about  which function i have to use!?

 

0 Kudos
Message 8 of 14
(3,695 Views)
I have no idea what function you have to use because you still have not attached your code in the correct format. If you are unwilling to read the LabVIEW help, then I am unwilling to answer your questions.
0 Kudos
Message 9 of 14
(3,677 Views)

Please post your actual VI so that we can get the full picture of what you are trying to do.

 

But based on the half picture, you could just get away with getting rid of your wait.  These buffer overflows also happen a lot due to the highlight execution slowing things down a lot.


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 10 of 14
(3,674 Views)