LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to convert a scalar variable into a 1-D length N array?

I don't see how generating a ramp one way or another would cause timing problems unless you generate gigantic arrays and it thus takes a very long time.

 

Can you elaborate what kind of "timing" issues you are talking about?

Message 21 of 23
(809 Views)
Sure, when I do my voltage sweep with 10 voltage values, most of the current values output are what I would expect, but there are one or two values that are wrong. I noticed that the incorrect values are just the values from the previous voltage input and not the present one. So I think the output does not have time to actually output before the voltage changes. I was thinking about adding a time delay, but I'm not sure it's worth it as in the end I'll be using about 100 values, so a few wrong wouldn't matter too much.
0 Kudos
Message 22 of 23
(789 Views)

Most likely, you need to add a small delay between the write and read operation.

 

Easiest would be to insert a single-frame flat sequence into the error wire between ther read and write operation, such as in this image. See if it makes a difference.

 

 

(You could also use the time delay from the express palette, it has error terminals so you don't need the sequence frame.)

Message Edited by altenbach on 03-05-2009 09:52 AM
Message 23 of 23
(778 Views)