09-05-2014 08:29 AM
I have an Dataflow Problem.
I wish that in the 2nd loop it would be this dataflow:
-DAQ Assistant 2
- Time Delay
- DAQ Assistant 1
- Array 3 split in 2 arrays and make new array
- then the 2 Graphes should write.
How can i solve it best.
Need i do Sub VIs or can i somethink make an priorisation. It would be great.
And a second question.
When i am starting my program a 2nd time i need to clear Array 3.
Why is it so?
i think i create a new Array 3 before the Loops.
Solved! Go to Solution.
09-05-2014 08:35 AM
Just wire the error out of DAQ Assistant 2 to time delay error in, then wire time delay error out to DAQ Assistant 1 error in.
Yup those error chains are really handy And wireing those errors will improve your code functionality in the event something is wrong with the hardware.
09-05-2014 08:38 AM
Use the error wire from between the daq assistants and the delay function to determine the order of execution.
Don't use local variables. Array 3 should be maintained in a shift register on your outer For Loop.
Insert into Array is almost always the wrong function to use. You should be using Build Array instead.
I would recommend looking at the online LabVIEW tutorials
LabVIEW Introduction Course - Three Hours
LabVIEW Introduction Course - Six Hours
09-08-2014 02:12 AM - edited 09-08-2014 02:26 AM
when i use shift registers instead of the local variables:
I dont need the array3 any more...i can shift the output of "build array".
But how can i write and read in an array.
because its allways control or indicator.
so if i use it i cant update the array any more or?
edit: i cant use Build array because i dont know how many elements that array should have. its dynamic
09-08-2014 08:17 AM
nkritsch wrote:
when i use shift registers instead of the local variables:
I dont need the array3 any more...i can shift the output of "build array".But how can i write and read in an array.
because its allways control or indicator.
so if i use it i cant update the array any more or?
edit: i cant use Build array because i dont know how many elements that array should have. its dynamic
I don't understand what you are trying to say in the first paragraph.
Yes. You can use Build Array. You can put a new element at either the beginning or an of an existing array.
See attached.