LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Differences when using serial comm. with LabView and DOS, performance, time

In my application, I have a program in running under MS-DOS, and a similar function I'm programming in Labview..... the access seems to be quicker in DOS than Labview. I need to place a very big delay in the Labview programm so I can read correct data, but gets very slow....
0 Kudos
Message 1 of 4
(3,066 Views)
I've recently had to deal with the same problems. One solution is to write a DLL to perform the tasks. You can find some info on that at MSDN online -- it's not as hard as it sounds. Another useful tool is a freeware program called portmon. If you can't find it, let me know and I'll look up where I got it from...
-Matt Bradley

************ kudos always appreciated, but only when deserved **************************




0 Kudos
Message 2 of 4
(3,066 Views)
Do you think it would be the same if I create a DLL within labview? I mean, making just the read or write serial vi and convert it into a DLL using the tools>> Build application or shared library (DLL)
0 Kudos
Message 3 of 4
(3,066 Views)
Please post your serial LabVIEW code. There is a strong possibility that you may be doing a little more work in the software than you should, and this could be affecting your performance.

The only difference in performance between DOS and Windows for reading from the serial port will be a result of Windows, or how you wrote the serial portion of the LabVIEW code. LabVIEW doesn't do serial IO any slower than in DOS.

I have extensive experience with Serial IO in LabVIEW and elsewhere, and may be able to help streamline your code, if you were to post it (or at least a GIF screenshot of the diagram.
0 Kudos
Message 4 of 4
(3,066 Views)