01-25-2013 10:30 AM
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
01-25-2013 10:34 AM
It sounds like you should be using parallel loops. Look at the Producer/Consumer Design Pattern for guidance.
Lynn
01-25-2013 12:16 PM
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?
01-25-2013 12:33 PM
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...
01-29-2013 11:08 AM
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.