LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Continous Digital output express vi gives error -200609

Solved!
Go to solution

Using Express vi to generate continuous output on two digital ports of NI USB-6341 - extremely basic:

digital waveform input problem block diagram.png

To test, I simply right-click create a control at the data input of the express-vi and types in some data manually.

There are two digital lines dev1/port0/line0 and dev1/port0/line0 so I would expect this input to be an array of two digital waveforms each with one line of data. Right?

 

Below  is what it looks like and the error I get. Sample rate is set at 1kHz. 

digital waveform input problem.png

In the express vi, #samples to read is set at 4 (as wfm has) or 1k - it gives the same error.

 

  1. How can I fix this without going _inside_ the generated express code and change the buffer size, which I would like to avoid.
  2. Is the express vi generator broken for this particular - yet very simple and basic setup?
0 Kudos
Message 1 of 3
(3,092 Views)
Solution
Accepted by topic author heel

The error is quite clear.  You have to give at least 2 samples.  So change your waveform data to have a second data point for each digital waveform.  You can just make it the same as the first data point.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 2 of 3
(3,076 Views)

Thanks crossrulz,

Time evolves vertically not horizontally in a digital waveform control/indicator - as I implicitly assumed.

digital waveform input problem solution.png

then the express vi works. Thanks for the tip

0 Kudos
Message 3 of 3
(3,068 Views)