02-07-2017 04:06 PM
I am transmitting a sine wave through a 9862 CAN module inserted in a cDAQ-9132 chassis and receiving that same signal with a second cDAQ-9132 chassis and 9862 CAN module with a bus bandwidth of 1 Meg. I am experiencing dropouts in the received signal. I am transmitting utilizing the CAN FRAME Stream mode. What would I need to do to eliminate the dropouts? Files depicting the transmitted and received signal attached. I am transmitting a total of 5 frames. The sinewaves depicted in the attached files are utilizing 2 of 6 bytes of CAN Frame 1. The remaining 4 frames are transmitting 8 bytes each. Thank You!
02-08-2017 07:26 AM
You say you are transmitting in stream mode. How are you receiving? How are you getting your X-Axis (time)?
02-08-2017 09:15 AM - edited 02-08-2017 09:21 AM
@GPIB_Guru wrote:
You say you are transmitting in stream mode. How are you receiving? How are you getting your X-Axis (time)?
I'm utilizing the CAN Frame Input Stream.vi example.
The X-axis time is regulated by a "Wait Until Next ms Multiple" LabVIEW function.
02-08-2017 09:38 AM
My app is also transmitting several other static frames with at least one other loop running. I will write an app that addresses only the sine wave output and no other functionality to experiment.
02-08-2017 09:43 AM
I don't have any software installed, so I cannot look up that example, but does it have any error handling? Any timeouts on the read? Is it possible that you are reading with a 0 timeout and it is returning no frames? Then, you are interpreting this as data incorrectly?
02-08-2017 11:43 AM
Thanks! I'll have to check. Right now I've been able to eliminate the dropouts by eliminating all other code except for the analog in to CAN out and adjusting the signal frequency. I still need to experiment more to determine limits.
@GPIB_Guru wrote:
I don't have any software installed, so I cannot look up that example, but does it have any error handling? Any timeouts on the read? Is it possible that you are reading with a 0 timeout and it is returning no frames? Then, you are interpreting this as data incorrectly?