07-15-2020 04:00 PM
I've created an application using a non-real-time system and so I need to use the CAN's timing to send data at a constant 64 Hz. Thus, I am using the Frame Output Queued mode and sending arrays of packets through that Transmit Session. But I would also like to log the individual packets I am sending with the exact timestamps at which the data is sent.
Is there a way to read the data being sent on that transmit session? I'm acquiring data sent back from my device with a Receive session using the Frame Input Stream mode, but I seem to only get data sent back from the device and not the data sent on the transmit session.
I've attached a sample VI of what I'm doing. Note that I simplified some things so I wouldn't have to include some of my subVI's for reading command files or cycling through to only put up to 64 frames on the output queue at a time. In practice though, I am writing frames with the 202 identifier and the device is writing back with the 305 identifier. I never see what I wrote to the 202 identifier in the "Read Frames" output array.
Solved! Go to Solution.
07-22-2020 12:04 PM
If anyone ever needs a similar answer to this question, I figured it out!
There's an Echo Transmit property [XNET > Interface > Echo Transmit?]. Just set that to true (on the receive line) and it will echo your transmitted data back to the receive line.