キャンセル
次の結果を表示 
次の代わりに検索 
もしかして: 

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 件の賞賛
メッセージ11/32
2,209件の閲覧回数

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

0 件の賞賛
メッセージ12/32
2,204件の閲覧回数

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

0 件の賞賛
メッセージ13/32
2,201件の閲覧回数

here ya go,

0 件の賞賛
メッセージ14/32
2,197件の閲覧回数

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 件の賞賛
メッセージ15/32
2,179件の閲覧回数

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 件の賞賛
メッセージ16/32
2,175件の閲覧回数

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 件の賞賛
メッセージ17/32
2,169件の閲覧回数

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 件の賞賛
メッセージ18/32
2,164件の閲覧回数

I'm using a MCC usb-1608fs

0 件の賞賛
メッセージ19/32
2,163件の閲覧回数

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 件の賞賛
メッセージ20/32
2,157件の閲覧回数