NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

CVI adapter adds extra character to recieved data from serial port

Hi All,

 

Hope everybody would be doing great.

 

I'm have written a test sequence that uses RS-232 communication.The code is pretty simple it transmits a set of character say "TestSerial" on a port and recieves on the same port.But i'm recieving very wierd data.

 

I have my API (that i call in steps of TS Sequence)written in CVI for serial communication and i'm using LabWindows/CVI.I recieve some extra charcter appended to actual transmitted data. I'll better explain in scenarios for better understanding.

 

Scenario 1

---------------
Transmitted data: TestSerial
Transmitted character Count: 10


Recieved Character count: 5
Recieved data:TestSB

 

Selection type in Adapter: Execute Steps-In-Process(CVI is NOT Required for This Mode)

 

In above test scenario i'm trasmitting "TestSerial" i.e 10 character on COM3 part of RS232 card, and recieving 5 character on COM3.The recived is data is appended with special extra character that goes beyond expected 5 character. 

 

 

Scenario 2

-----------
Transmitted data: TestSerial
Transmitted character Count: 10


Recieved Character count: 5
Recieve data:TestS

 

Selection type in Adapter: Execute Steps in an External Instance of CVI

 In this test scenario i'm transmitting and recieving in same way as Scenario 1 but i'm getting data as expected without any extra character appended to it. 

 

Selection type in Adapter is the difference creator.I don't know what can be the reason of extra character recieved on selection type being  Execute Steps-In-Process(CVI is NOT Required for This Mode) .

 

Is that i'm making any mistake in adapter use or its configuration?

 

Please help me with your valuable suggestions or work around.

 

Thanks in advance

 

VDC

 

Note: The C dll is wriiten in CVI and works absolutely fine when called in environment outside TestStand.

 

0 Kudos
Message 1 of 1
(3,484 Views)