LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

reduce the delay time

Hello for every one.
In my project I make in ELVIS II the option that I can get in 2 values (Input Voltage-AI0,AI1),making
some calculation and geting out 1 value (AO0).
All the procedure is working,but when I measured the delay time between input and output,the time was 0.5 sec.
How can I reduce it?
maybe I should to change my sampe time and rate?
with best regards
Zori
0 Kudos
Message 1 of 10
(4,615 Views)

How are you using the Elvis unit? I am quite sure you are doing something wrong. Can you post some code

 



Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
(Sorry no Labview "brag list" so far)
0 Kudos
Message 2 of 10
(4,580 Views)

Hi,I send you the print screen of my program,and the program.

 

with best regards.

 

Zori

24-05-09 eto nasha sofit tolko matlab drugoi.jpg

0 Kudos
Message 3 of 10
(4,569 Views)

Don't create, stop, and stop the task inside the loop.

 

You could also eliminate the conversion to dynamic data with the Split Signal function. Just use an Index Array if you only want a single element from the analog read. Don't know why you would use a multiple sample read, though. The mathscript is unneccessary. Just use the Add function.

0 Kudos
Message 4 of 10
(4,555 Views)
Dennis,Hi.
I want to get 2 values from the ELVIS II kit,so I used the multiple sample read,maybe should I use another function?
this function which I send is the test of getting in 2 values making calculation,and getting out another value.
I use the matlab script,because  in the future I want to put there linear function which will get 2 values and making calculation,and puting out another value.
p.s: I didn"t understand about "stop",can you show me what did you mean? maybe you can send me this file.
with best regards.
Zori. 
0 Kudos
Message 5 of 10
(4,538 Views)

You want 2 channels with a single sample so you could simply use NChan 1Samp.

 

Look at some of the shipping examples. The DAQmx Create Channel, DAQmx Timing, DAQmx Start task should all be done outside the loop - on the left side. The DAQmx Stop Task should also be outside the loop - on the right side.

0 Kudos
Message 6 of 10
(4,530 Views)
tmuna_hadawa28.05.09.JPG
Hi,today I tried to make what you told me and it  does not work I can see that the kit is geting the value(ai0) but don"t sending it out to the generator
 (a00). In the input I put square wave and try to see it in the output,by this test I wanted to measure the delay time and to improve it to the minimum.
I send you the program and the photo of the print screen. I will be very grateful if some one will help me fix my code so I could recieve any pulse or wave preference square wave from (Ai0) and get it out with minimal delay less than 10 msec.
p.s: what is the minimum delay time that can be between input and output,can it be less than 10msec?
with best regards
Zori
0 Kudos
Message 7 of 10
(4,464 Views)
I did not tell you to take the analog generation out of the loop! Of course you don't see anything being output. It runs once and then stops. Put the DAQmx Write back inside. You may in fact need to place some of the functions related to the DAQmx Write back inside the loop or use the timing as in the Con Gen Voltage Wfm-Int Clk-Non Regeneration example. If you have regeneration turned on, I believe you will have to stop the task before sending a new waveform.
0 Kudos
Message 8 of 10
(4,456 Views)
I want to know, what is the minimum delay time that can be between input and output,can it be less than 10msec?
0 Kudos
Message 9 of 10
(4,438 Views)

Hello for every one.

 

I have a good news,my test was succeded,and I got the delay time lower than 10msec.

I want to know,if it is possible to mprove my code than now?

what is the maximum frequency that i can get from input and getting out the same valueby making delay less than 10msec.

 

with best regards

 

Zori

pix.JPG

0 Kudos
Message 10 of 10
(4,376 Views)