05-23-2012 01:36 PM
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
Solved! Go to Solution.
05-23-2012 02:29 PM
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.
05-23-2012 02:35 PM
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
05-23-2012 03:05 PM - edited 05-23-2012 03:08 PM
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.
05-23-2012 04:39 PM
great! its working 🙂 thank you so much!