Quantcast
Channel: LabVIEW topics
Viewing all articles
Browse latest Browse all 67219

Visa write in reverse order

$
0
0

I have an application that communicates with a custom made device through serial. I have implemented VIs for writing and reading messages to/from the device. They work well on my own computer, but when trying with another computer, the VISA write seems to write everything in reverse order. The communication is done with a custom protocol, so I am sending messages as HEX characters. When I want to send e.g. 0x01 0x02 0x03, I actually seem to be sending 0x03 0x02 0x01. Does this have something to do with the endianness of different computers or is there some sort of configuration that I need to do in order to get this working? I can get everything working on the second computer if I add a reverse string function to my message before wiring it to VISA write. Does anyone have knowledge or an explanation to why this is behaving the way it does?

 

Attached is a picture of my send&read function that send a message and then reads the response.


Viewing all articles
Browse latest Browse all 67219

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>