05-13-2015 05:25 PM - edited 05-13-2015 05:26 PM
I'm a newbie - apologies. I'm trying to put a static 8 bit word out the digital I/O and continuously get the "Error -375904 occurred at VirtualBench.lvlib:DigWrite.vi:3220001" which states "NI-VirtualBench: Number of lines to write doesn't match the provided data."
I have downloaded and successfully run the example program at : http://www.ni.com/example/52071/en/
But when I close that and try to duplicate pretty much the same scenario within my actual program, I apparently am not able to satisfy the Number of lines criterion for the VB-DIO data terminal. Can anyone suggest the details of what I am most likely doing wrong?
Thanks!!
05-13-2015 06:02 PM
You have to pass an array to Dig Write that contains the same number of elements as there are lines for the "output lines" parameter.
For instance, if your output lines are "dig/0:7", then you need to have a boolean array of size eight (a value each for dig/0, dig/1, dig/2, dig/3, dig/4, dig/5, dig/6, and dig/7).
(I'll see if I can make the error a bit more informative in future versions.)