Quantcast
Channel: Instrument Control (GPIB, Serial, VISA, IVI) topics
Viewing all articles
Browse latest Browse all 5694

Communication rs-232 using LabPython

$
0
0

Hello,

 

I want to control and make a UI for a mass flow meter-controller using LabView but it appeared that I have to use some ASCII characters that are not supported in LabView or in browsers.

A colleague wrote me a script in python that send the command in the shape of  "chr(int)" instead of using ASCII.

 

For example: "Sinv2.000 + CRC + cr" is converted to "chr(83) + chr(105) + chr(110) + chr(118) + chr(50) + chr(46) + chr(48) + chr(48) + chr(48) + chr(143) + chr(85) + chr(13)" in python

 

Now I have to execute the script inside of a LabView VI, I use for this LabPython.

 

I tried to follow advices from different forums but it seems that my VI doesn't want to do the link between the controller and my script.

 

I have never used Python before thus the problem might come from the script.

 

 

-Leo

 

 

PS: I need to execute my VI on a computer that doesn't have LabiView nor Python. What should I install to make the executable works?

 

 

 


Viewing all articles
Browse latest Browse all 5694

Trending Articles



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