LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

VISA Write

Solved!
Go to solution

Hi friends, i just want to send a numeric value say 40 through serial port to another device at 460800 baud rate, could you please help me what conversions should i made ?

 

Thanks   

0 Kudos
Message 1 of 8
(1,389 Views)

Hi Akbar,

 

use VISA functions to access the serial port.

How do you want to transfer this "value of 40"? Human-readable text, binary data, any message formatting?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 8
(1,386 Views)

i just want to simulate battery voltage say 40V on serial channel 

0 Kudos
Message 3 of 8
(1,349 Views)

@Akbar7110 wrote:

i just want to simulate battery voltage say 40V on serial channel 


That didn't answer the question.

 

Let's ask the question a different way.  What is the device on the other side you are sending the data to?  What does it expect the data to look like?

 

ASCII characters of "4" and "0"?  Should it have a termination character like a line feed or carriage return?

Is it a single byte of value 40?  (That would be an ASCII character of an open parenthesis "("  ).  Multiple bytes?

0 Kudos
Message 4 of 8
(1,342 Views)

Shameless plug to give you ideas:  VIWeek 2020/Proper way to communicate over serial


GCentral
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
0 Kudos
Message 5 of 8
(1,338 Views)

the device on the other side is also receiving serial data which i am sending what type of scaling do i use ?

 

0 Kudos
Message 6 of 8
(1,333 Views)
Solution
Accepted by topic author Akbar7110

Hi Akbar,

 


@Akbar7110 wrote:

the device on the other side is also receiving serial data which i am sending what type of scaling do i use ?


Read the manual of the "device on the other side" to learn about the communication scheme supported...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 7 of 8
(1,327 Views)

Thanks

0 Kudos
Message 8 of 8
(1,262 Views)