Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

help? Instrument I/O!

hello!

I'm come from Vietnam, I want to send 2 numbers via RS232 (roll and pitch angles to simulate the quadrotor), what I want is when labview receive the first packet number( temporary call them are x1,y1) and simulate 3D model, then it receive and simulate next packet (x2,y2;then x3,y3,...). Now, it does not separate 2 packet. what function that I need to use?

I use Labview 2011, Pic C compiler, and proteus.

please answer me in here or gmail: sung.tq@gmail.com

thanks!

Download All
0 Kudos
Message 1 of 2
(3,685 Views)

The easiest way would to put a Line Feed (0xA) character at the end of your packet on the microcontroller side.  Then make sure the termination character is turned on in the LabVIEW code.  By doing this, the VISA read will read a single packet at a time.



There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 2 of 2
(3,676 Views)