LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

delay

dear sir,
 I have attached my code .My problem is , there is a delay acquiring in every while loop ie the captured data is  displayed and again it goes to the serial read there is some delay acquired(it takes some delay then it displayinn it every looping time it occurs)
 
pls solve my problem
 
thanks and regards
jayanthi.k
0 Kudos
Message 1 of 5
(3,004 Views)

I'm not sure what you are asking. I can confirm that the delay you added to the loop appears to be working.

If you have some problem with the code, could you explain exactly what it is? And, could you clean up the wiring and repost. You have wires on top of wires, underneath other wires, underneath structures, going from right to left, etc. All of this makes your program hard to read.

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

dear sir,

             I am reading data from DVL through serial port.dvl output is coming as below

AUTO_VEL_OFF
AUTO_VEL_ON
$#NQ.RES 0X0000 1 1 1 1 0.6 0.9 0.9 0.9 994.6 0.2 1.1 -439.3 0 0 0 0 0 0 0 0 1326.0 586.6 150.0 1 -495.6 1361.8 157.5 1 3.31 1.13 86.5 0.6 29.5  1545 74
:SA,+01.13,+03.31,086.5
:TS,00000000000000,35.0,+29.5,0000.0,1545.0,000
:WI,+00000,+00000,+00000,+00000,I
:BI,-00586,-01326,+00150,+00000,A
:BD,+00000000.00,+00000000.00,+00000000.00,0000.60,000.00
$#NQ.RES 0X0000 1 1 1 1 0.6 0.9 0.9 0.9 995.7 0.2 1.3 -442.3 0 0 0 0 0 0 0 0 1327.2 590.6 149.6 1 -501.7 1362.4 156.8 1 3.33 1.16 86.6 0.6 29.5  1545 68
:SA,+01.16,+03.33,086.6
:TS,00000000000000,35.0,+29.5,0000.0,1545.0,000
:WI,+00000,+00000,+00000,+00000,I
:BI,-00590,-01327,+00149,+00000,A
:BD,+00000000.00,+00000000.00,+00000000.00,0000.60,000.00

My requirement is , I want to store the datas :SA,:TS,:WI,:BI,:BD in a single  xl file.what is my problem is the datas are stored in a file but every time it goes to the loop(serial read) there is delay between data capturing between the previous loop.ie first time it stores the 13 rows then it takes some delay and then it displays the next 13 values in a file.

 

pls suggest as soon as possible.

Thanks and regards

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

dear sir,

             I am reading data from DVL through serial port.dvl output is coming as below

AUTO_VEL_OFF
AUTO_VEL_ON
$#NQ.RES 0X0000 1 1 1 1 0.6 0.9 0.9 0.9 994.6 0.2 1.1 -439.3 0 0 0 0 0 0 0 0 1326.0 586.6 150.0 1 -495.6 1361.8 157.5 1 3.31 1.13 86.5 0.6 29.5  1545 74
:SA,+01.13,+03.31,086.5
:TS,00000000000000,35.0,+29.5,0000.0,1545.0,000
:WI,+00000,+00000,+00000,+00000,I
:BI,-00586,-01326,+00150,+00000,A
:BD,+00000000.00,+00000000.00,+00000000.00,0000.60,000.00
$#NQ.RES 0X0000 1 1 1 1 0.6 0.9 0.9 0.9 995.7 0.2 1.3 -442.3 0 0 0 0 0 0 0 0 1327.2 590.6 149.6 1 -501.7 1362.4 156.8 1 3.33 1.16 86.6 0.6 29.5  1545 68
:SA,+01.16,+03.33,086.6
:TS,00000000000000,35.0,+29.5,0000.0,1545.0,000
:WI,+00000,+00000,+00000,+00000,I
:BI,-00590,-01327,+00149,+00000,A
:BD,+00000000.00,+00000000.00,+00000000.00,0000.60,000.00

My requirement is , I want to store the datas :SA,:TS,:WI,:BI,:BD in a single  xl file.what is my problem is the datas are stored in a file but every time it goes to the loop(serial read) there is delay between data capturing between the previous loop.ie first time it stores the 13 rows then it takes some delay and then it displays the next 13 values in a file.

 

pls suggest as soon as possible.

Thanks and regards

0 Kudos
Message 4 of 5
(2,979 Views)
As I said, you've added the delay to your VI and it works. Do you not understand what the Wait (ms) does? You've coded in a 1 second delay between loop iterations. There is also some delay involved with using Excel. Your VI acquires data from the serial port, writes to Excel, waits, and then repeats. If you are looking to speed up the acquisition, change the delay and how you are saving the data. There are probably other programming enhancements but the state of your wiring made me stop looking at the rest of your code.
0 Kudos
Message 5 of 5
(2,976 Views)