LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Indicator for a waveform array?

Your loop time will be 0.3 seconds plus the time to run the other code (ULx Read, etc)

 

You don't have the timeout wired to ULx read, so you don't know how long that subvi is running. 

 

From the ULx read help:

 

timeout specifies the amount of time in seconds to wait for samples to become available. If the time elapses, the VI returns an error and any samples read before the timeout elapsed. The default timeout is 10 seconds. If you set timeout to –1, the VI waits indefinitely. If you set timeout to 0, the VI tries once to read the requested samples and returns an error if it is unable to.

>

"There is a God shaped vacuum in the heart of every man which cannot be filled by any created thing, but only by God, the Creator, made known through Jesus." - Blaise Pascal
0 Kudos
Message 11 of 32
(1,257 Views)

So what exactly do I have to do for the indicator to show realtime values?

0 Kudos
Message 12 of 32
(1,252 Views)

Show your latest updated code so we can see how you've incorporated it the changes.

0 Kudos
Message 13 of 32
(1,249 Views)

here ya go,

0 Kudos
Message 14 of 32
(1,245 Views)

How fast will they update if you remove the elapsed timer?

>

"There is a God shaped vacuum in the heart of every man which cannot be filled by any created thing, but only by God, the Creator, made known through Jesus." - Blaise Pascal
0 Kudos
Message 15 of 32
(1,227 Views)

I tried that, there's so set time. Like I said before, the indicator values update intermittently, even when I remove the elapsed timer.

0 Kudos
Message 16 of 32
(1,223 Views)

How often is "Intermittently"?  If you remove the elapsed timer, then something else in the loop is controlling the update rate and the iteration speed of the entire loop.  It could be the acquisition settings you are using for the DAQ device.

0 Kudos
Message 17 of 32
(1,217 Views)

It seems to come through the indicator every 11 seconds or so. I'm using 25000 samples per channel, continuous samples, with onboard clock, as seen in the VI.

0 Kudos
Message 18 of 32
(1,212 Views)

I'm using a MCC usb-1608fs

0 Kudos
Message 19 of 32
(1,211 Views)

Here's a cleaned up version without the file save option.  Run it and see if it is faster/better. 

 

I don't understand your logic, so I'm not making any guarantees that the codes runs correctly.

 

 

>

"There is a God shaped vacuum in the heart of every man which cannot be filled by any created thing, but only by God, the Creator, made known through Jesus." - Blaise Pascal
0 Kudos
Message 20 of 32
(1,205 Views)