Discussion:
channel api help
(too old to reply)
cld8812
2008-06-10 14:40:10 UTC
Permalink
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.


Test_CAN2.vi:
http://forums.ni.com/attachments/ni/30/3516/1/Test_CAN2.vi
cld8812
2008-06-10 15:10:07 UTC
Permalink
that works alot better, why dose connecting the error make a difference?
JB
2008-06-11 06:10:07 UTC
Permalink
Doing so, the execution order of the different sub-VIs is forced.Please note that LabVIEW follows a <a href="http://zone.ni.com/reference/en-XX/help/371361D-01/lvconcepts/block_diagram_data_flow/" target="_blank">dataflow</a> 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 !<a href="http://zone.ni.com/reference/en-XX/help/371361D-01/lvconcepts/block_diagram_data_flow/" target="_blank"></a> In the modified version, the error wire is used to set the order of exection : init --&gt; write and read --&gt; clear.Message Edité par JB le 06-11-2008 08:07 AM
JB
2008-06-10 15:10:07 UTC
Permalink
You have no data dependency in your code !Try attached version and let us know if it works.


Test_CAN2 modified.vi:
http://forums.ni.com/attachments/ni/30/3519/1/Test_CAN2 modified.vi
Loading...