LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

rs232 communication is slowing labview down

I have several devices that are connected to my network via a rs232 to Ethernet converter. These devices then show up as com ports on my computer. My problem is that when I read and write to these labview bogs down to the point where I can't use it (I can't use the front panel until the scanning is complete..

I am running a state machine with one of the states being "Acquire data"

In this loop I have my drivers in re-entrant sub vi's.

I am running multiple instances of these vi's at the same time.

 

Am I running to many at once? I am running 6 in parallel. The though here is that I can read faster in parallel than reading each device one at a time.

 

Any thoughts??

 

If I open task manager there is minimal CPU and memory usage.

 

I am running:

Labview 2012 -32 bit

Windows 7 -64 bit

 

0 Kudos
Message 1 of 5
(2,647 Views)

It sounds like you should be using parallel loops.  Look at the Producer/Consumer Design Pattern for guidance.

 

Lynn

0 Kudos
Message 2 of 5
(2,643 Views)

Well,

I ran everything in one Sub Vi instead of parallel Sub vi's and It took the same time.

Is there something with how labview accesses the com ports?

0 Kudos
Message 3 of 5
(2,620 Views)

There's nothing inherent in LV or the way that it handles serial ports that would slow things. However, there are alot of things that code can do wrong. Can you post a bit?

 

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 4 of 5
(2,616 Views)

I zipped the whole driver structure.

This was created using VI's from watlow and a little of my own addition (a couple of years ago) I am sure there are some things that need work.

0 Kudos
Message 5 of 5
(2,567 Views)