LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

sending ascii and hex data using visa serial port

Hi All,

I am a noob to the whole labview development enviroment and have searched all over the forum to try and find some answer but have had no luck so far.

Currently I am trying to implement serial communications using the serial port library vi (used in the basic serial read and write example) with a board that requires both ascii and binary data to be sent to it. 

For example  this is how it is sent out in Visual Basic

MSComm1.Output = "!B" + Chr$(IOVal)

where Chr$(IOVal) is equivalent to $00 to $FF

I have looked and started modifying the Basic Serial read and Write vi and am not having much luck as I believe the Serial VISA only sends out ASCII values.

I can send out the ASCII to the serial port quite easily but I am having difficulties sending the binary data.

Is there any solutions where you can send both ASCII and binary data in a single string?

Thanks for your answers

Stolzie
0 Kudos
Message 1 of 5
(6,369 Views)
Check out this link from an earlier thread.

P.M.

Putnam
Certified LabVIEW Developer

Senior Test Engineer North Shore Technology, Inc.
Currently using LV 2012-LabVIEW 2018, RT8.5


LabVIEW Champion



0 Kudos
Message 2 of 5
(6,364 Views)

LV Pro

Which link ? Instead of criticizing other's posts ;), you should take care of yours ! :D:D:D

Chilly Charly    (aka CC)
Message 3 of 5
(6,361 Views)
Oops, got me CC! I am tired, up too early, up too late.

http://forums.ni.com/ni/board/message?board.id=170&message.id=41213&requireLogin=False


P.M.

Putnam
Certified LabVIEW Developer

Senior Test Engineer North Shore Technology, Inc.
Currently using LV 2012-LabVIEW 2018, RT8.5


LabVIEW Champion



Message 4 of 5
(6,354 Views)
Thanks LV_Pro this is exactly what I am after
0 Kudos
Message 5 of 5
(6,349 Views)