Hi Canewbe,
you can read and write on the same port. However, as you can't create two CAN Objects with the same ID on the same port, you can't read and write a particular ID just using CAN Objects on the same port. The following combinations will work:
- Read using the Network Interface Object, write through CAN Objects
- Read using the Network Interface Object, transmit through Network Interfac Objects
- Read using the CAN Object, write through Network Interfac Objects
However, reading through CAN Objects seems to be slower than through the Network Interface Object, so you should avoid option #3.
There is actually a (old?) LabVIEW example shipping with NI-CAN, but it doesn't show up in the example finder: Interact.vi
You c
an find it in the 'Frame - Basic.llb' file in the ...\National Instruments\LabVIEW\examples\nican\ folder.
I haven't seen an example like this for text-programming languages though.
-B2k