LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to make without delay?

The position run forward from 0 to 1000, then backward from 1000 to 0,....Creat in demo_read_position.vi
The value: radom number. Creat in demo_read_value.vi
Try.vi is read both of these vi. When position is 0,100,200,....,900,100 . The graph show array of value collected.
Why in my graph, the graph is not display the array? How to make it correct? ( I don't want to put delay time in try.vi )
 
 
Download All
0 Kudos
Message 1 of 13
(4,555 Views)
Hi ha noi,

maybe because you set the output of the 2nd case structure to "default if unwired"?

The "split array" is senseless when using the array size as split value! I quite don't understand what you are trying to do in this 2nd case structure...


Message Edited by GerdW on 01-15-2008 04:53 PM

Message Edited by GerdW on 01-15-2008 04:54 PM
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 13
(4,550 Views)

Hello ha noi,

i attache a picture. In the second Case Structure the array marked with an arrow in my picture is every time empty, because the size is one more as the last index.

Mike



Message Edited by MikeS81 on 01-15-2008 10:02 AM
0 Kudos
Message 3 of 13
(4,536 Views)
Hi GerdW,
 
The second struct , i want to take the array data of value ( step of 100) ( only show the array when position is 0,100,200...., and the data array of value is total data from position 0-100,100- 200,......
Download All
0 Kudos
Message 4 of 13
(4,534 Views)
It's seem the case structure not woking, because i put the indicator led, it's not turn on or not blinking ( if i don't put any delay) . What is the reason?
0 Kudos
Message 5 of 13
(4,497 Views)

Hi ha noi,

the second case don´t work because of the problem i described in my post before. If you have an Array [0..9] thanyou get size = 10. And in your second case you want split the array into two parts from index 10. But this element do not exist, so the array is empty.

Mike

0 Kudos
Message 6 of 13
(4,491 Views)
I don't think it's the reason! I want to make the second array (of split array) is [0,0] ( empty) . Then the value will start stored in new array! Maybe the problem is:  the speed of reading position is faster than value?
0 Kudos
Message 7 of 13
(4,487 Views)

Hello ha noi,

do you ever connect the error output from your Variant to Data conversion. If there is an error than the value you get is 0 and so the values you are comparing are equel and the case structure runs the false case.

Mike

0 Kudos
Message 8 of 13
(4,482 Views)
Hi ,
This the vi I test without call other vi. So the problem could be from the speed different between read_position ( i put delay 100) and read valuve (delay 1000) VI?
0 Kudos
Message 9 of 13
(4,474 Views)
Sorry i forgot to attach the file.
0 Kudos
Message 10 of 13
(4,473 Views)