LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

VISA Write /Read

Hi Fredo,

 


@Fredo123Danzel wrote:

Unfortunately, I don’t have LabVIEW 2019.

I only use LabVIEW 2022


File -> Save for previous…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 11 of 17
(91 Views)

@Fredo123Danzel wrote:

I tested my system using PuTTY and found it to be very fast. That’s why I would like to develop a LabVIEW VI that can perform similarly to PuTTY.
What do you think of my VI, please?


Again, we need to know a lot more information on the messaging protocol your device is using. We can accomplish what you are asking, but you have to use the protocol to get anything useful out of it.



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 12 of 17
(59 Views)

use an RS232 communication (FTDI). The supported baud rate by the board is 115200 bps.

 

I send hexadecimal frames using VISA Write, and I would also like to read hexadecimal data.

0 Kudos
Message 13 of 17
(42 Views)

@Fredo123Danzel wrote:

use an RS232 communication (FTDI). The supported baud rate by the board is 115200 bps.

 

I send hexadecimal frames using VISA Write, and I would also like to read hexadecimal data.


You misunderstood crossrulz' request. The things you mention here were already quite clear. But there are about zillion ways to transfer binary data (you don't transfer hexadecimal data, that is just the format your logger chooses to present the binary data to you).

 

The data is binary obviously but in order to transfer binary data there needs to be some sort of format: start character, end character, possible CRC data, length of message or how that length is encoded, etc. etc. Are multibyte values little endian or big endian?

 

Without this information it is simply impossible to come up with a good programmatic algorithm to receive and decode the data, or generate according data to send to the device. So far you just showed pictures of the protocol logging with some random numbers shown in hexadecimal notations. No real explanation about what each of those messages should mean, which part is protocol signaling and which part is data. You need to provide this protocol documentation, we can't invent it ourselves. You have the device with which you can do experiments. I and everybody else here can investigate unclear and missing protocol documentation only if we can get our hands on the hardware itself and do trial and error, which is not an option here.

Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
0 Kudos
Message 14 of 17
(29 Views)

@Fredo123Danzel wrote:

I send hexadecimal frames using VISA Write, and I would also like to read hexadecimal data.


And how are those frames defined? Is there any documentation from your device?



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 15 of 17
(14 Views)

Hi,

I use VISA Write to send commands to my board. For example, to start test mode: 1C20 AB13 0000 051A, where 1A is my CRC. My board accepts this frame and sends back a response frame (1B20 AB13 0001 0103 01C1) to indicate that test mode has started. VISA Read processes my response in ASCII format. I use an indicator to view my frame in hexadecimal.

0 Kudos
Message 16 of 17
(8 Views)

Your still are very vague.

 

First, are those hex values simply the hexadecimal values of the bytes you sent over the line or are you converting your binary data to hexadecimal text to send as ASCII text?

 

What is the meaning of the individual values? Why does the command start with 1C or maybe 1C20, or is it rather 1C20AB? What are the remaining data before the CRC? Do you know the algorithm to calculate the CRC? What is it?

 

Similar questions about the response.

 

Is every command always 8 bytes long? And every response 10? If not how does the receiver know how many bytes to read?

Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
0 Kudos
Message 17 of 17