Automotive and Embedded Networks

cancel
Showing results for 
Search instead for 
Did you mean: 

channel api help

I have a 2 port PCI-can card with a loopback cable attached.  I am trying to send a series of numbers and than read them.  both read and write are set to single channel multiple samples.  the problem is that is reading in only the first value from the array to be sent.  The documentation offers no help.  my VI is attached.
0 Kudos
Message 1 of 4
(6,339 Views)
You have no data dependency in your code !

Try attached version and let us know if it works.

0 Kudos
Message 2 of 4
(6,335 Views)
that works alot better, why dose connecting the error make a difference?
0 Kudos
Message 3 of 4
(6,334 Views)
 

Doing so, the execution order of the different sub-VIs is forced.

Please note that LabVIEW follows a dataflow model for running VIs.
A block diagram node executes when it receives all required inputs. When a node executes, it produces output data and passes the data to the next node in the dataflow path. The movement of data through the nodes determines the execution order of the VIs and functions on the block diagram.

LabVIEW execute the code neither from left to right nor from top to bottom ! In the modified version, the error wire is used to set the order of exection : init --> write and read --> clear.

 



Message Edité par JB le 06-11-2008 08:07 AM

0 Kudos
Message 4 of 4
(6,321 Views)