LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with the number of lines in channel

Solved!
Go to solution

Dear LabView community,

 

I'm relatively new to labview and I ran into a problem which (i guess) can easily be solved with your help.

 

I need to create a digital signal to trigger a camera, but I am having trouble with configuring my output channels or lines.I would like to use only one output line to trigger the camera. (I'm using a NI PCIe 6353 card). Labview is telling me that the number of lines in the channel doesnt match the number of lines in data:

 

Possible reason(s):

Specified read or write operation failed, because the number of lines in the data for a channel does not match the number of lines in the channel.

If you are using the Digital Waveform datatype, make sure the number of lines in the digital waveform matches the number of lines in the channel. If you are using boolean data, make sure the array dimension for lines in the data matches the number of lines in the channel.

Number of Lines in Channel: 1
Number of Lines in Data: 2

Task Name: _unnamedTask<11>

 

 

How and why is the number of lines in data connected to the resolution of my analog to digital converter?

 

I would really appreciate your help! The labview code and a screenshot are attached.

 

Thanks,

 

Beff

Download All
0 Kudos
Message 1 of 5
(3,685 Views)

Set your resolution of the DWDT Analog to Digal VI to 1.  The resolution is how many bits are used to represent the signal.  Since you only care about high or low, you can represent that in 1 bit.


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
0 Kudos
Message 2 of 5
(3,671 Views)

As soon as I set my resolution to 1, the output signal is only 1. There is no squarewave pattern left, only a constant value...this is really confusing for a beginner

0 Kudos
Message 3 of 5
(3,668 Views)
Solution
Accepted by Beff

 

I got it to work by changing the "data format" to "unsigned binary" OR by not wiring the "offset" for the Square Wave VI.  I think the default data format of "offset binary" only works properly if there is a negative value.


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
0 Kudos
Message 4 of 5
(3,660 Views)

great! its working 🙂 thank you so much!

0 Kudos
Message 5 of 5
(3,643 Views)