I am trying to create a few inputs in LabVIEW 2016 which a user can modify (eg. total frames = 100). This number will then be sent to and RPi3 unit which is running a basic TCP/IP server script. The idea is that these numbers will set the variables in a simple instrument control code. I can connect to the RPi in LabVIEW and can send a string but things break down there:
-the string seems to be sent as Decimal ASCII
-when decoded in python, the string is converted so that every character is a separate element, with a separate index (eg. if I send 100 I get str[0]=1, str[1]=0, str[2]=0, len(str)=3)
-i need to send several variables and several commands in one string and then unpack it in python so that I can call each one separately and assign it to the appropriate function
Any advice would be appreciated.
We already have a working python GPIO code on the RPI which we use to control the lasers and cameras in our set up. We would like to be able to adjust the variables in this GPIO code in LabVIEW because we control the stage and objective of our microscope in LabVIEW.
We must be able to input a half dozen variables in LabVIEW and send these to RPI to use as parameters in the code. – Tim Henley Mar 19 '19 at 16:35