annuler
Affichage des résultats de 
Rechercher plutôt 
Vouliez-vous dire : 

VISA Write

Résolu !
Accéder à la 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 Compliments
Message 1 sur 8
2 295 Visites

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 Compliments
Message 2 sur 8
2 292 Visites

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

0 Compliments
Message 3 sur 8
2 255 Visites

@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 Compliments
Message 4 sur 8
2 248 Visites

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



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 Compliments
Message 5 sur 8
2 244 Visites

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

 

0 Compliments
Message 6 sur 8
2 239 Visites
Solution
Accepté par 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 Compliments
Message 7 sur 8
2 233 Visites

Thanks

0 Compliments
Message 8 sur 8
2 168 Visites