LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Input->output latency.

Hi,

Im new to LabView and my first project is to sample 2 channels in at
least 20Khz, calculate the length of the vector between these two
channels (channel 0 is X, channel 1 is Y). When the legnth is over (or
under) a certain value I want to send a character on the COM-port.
I made a small "test" in VC++ (as my knowledge in LabView is quite
limited yet) to test the time from the signals in on the channels
until we get the character out on the COM port. The result was 0.5 to
4ms. Quite OK I thought.
Ive now "converted" the program to LabView and I was quite
dissapointed by the result which in LabView is 150-300ms.

I use NT 4.0 as OS.

My questions are:

1. Are the figures above normal?
2. Can I somehow take the VC++ code and put it in LabView t
o get the
same performance?
3. Is there open source device drivers to download somewhere?
4. Can I read further on this topic somewhere?

Thanks for your help!

/Thomas
0 Kudos
Message 1 of 3
(2,653 Views)
If possible, just upload the LV-code to the forum.
I guess some-one will be able to boost the vi's speed.
0 Kudos
Message 2 of 3
(2,653 Views)
> Im new to LabView and my first project is to sample 2 channels in at
> least 20Khz, calculate the length of the vector between these two
> channels (channel 0 is X, channel 1 is Y). When the legnth is over (or
> under) a certain value I want to send a character on the COM-port.
> I made a small "test" in VC++ (as my knowledge in LabView is quite
> limited yet) to test the time from the signals in on the channels
> until we get the character out on the COM port. The result was 0.5 to
> 4ms. Quite OK I thought.
> Ive now "converted" the program to LabView and I was quite
> dissapointed by the result which in LabView is 150-300ms.
>
> I use NT 4.0 as OS.
>
> My questions are:
>
> 1. Are the figures above normal?
> 2. Can I somehow take the VC++ code and put
it in LabView to get the
> same performance?
> 3. Is there open source device drivers to download somewhere?
> 4. Can I read further on this topic somewhere?
>


My guess is that you should open and configure the COM port in advance,
then look at the signals. That way only the write is required when the
event takes place.

As the other post suggested, you should upload your VIs.

Greg McKaskle
0 Kudos
Message 3 of 3
(2,653 Views)