11-25-2013 04:42 AM
Hello, I'm beginner in LabView - I have just begun a LV course, but paralell I have to create a LV project on my studies. I got a pyrometer Optris CS LT with COM to USB converter -it works with dedicated software - works perfectly fine.
My job is to create VI, which does the same thing as Optris software - reads temperature and draws a plot of it.
Can any of you tell me how to begin ? My only success is connecting device to LV - after its update - Measurement & Automation Explorer reports that my pyrometer is ready as Infrared Sensor Adapter on COM5 port - but what next? Can you recommend me any literature or tutorials how to use this type of external data source in my project?
Best regards,
Strykul
11-25-2013 12:59 PM
11-25-2013 01:25 PM
You can start with the basic serial communication example. Since the device reads/writes hex data, I would suggest you set the string control and indicator on the example for hex display. This will allow you to easily use the commands that are in the manual. It looks like most of the responses are 2 bytes so you can convert the string returned by type casting to a U16.
12-21-2013 10:09 AM - edited 12-21-2013 10:10 AM
Hello again, I had no time to move on, but now I have to, so I need help. I began with such a simple task - to read a string:
Here is response of the LabView(error shows after signal come to Visa Read block)... Could you help me?
Pirometer supports two way of communication - directional by using commands below, or burstmode when it sends continous string of data(two bytes of data and two sync bytes in HEX).
At the beginning I wanted to switch Piro into burst mode, but after that, my project manager told me to make internal pirometer settings(e.g. Transmission) possible to change.
I checked examples about Continous Serial W&R, and there my Piro seems to work properly...
12-21-2013 10:39 AM
12-21-2013 10:47 AM
Ok, meanwhile I created a new one - based on State Machine, but what should I use to sent those bytes? Write VISA?
12-21-2013 11:51 AM
VISA is the only option you have.
12-21-2013 12:09 PM
I started device in burst mode - it works but i have another problem. Device sends data in HEX string - dwo bytes: AAAA and two bytes with value. I wanted to use Match Regular Expression block to separate those AAAA parts of string. But when I begin to move my pirometer the MRE block returns error:
[code]
Possible reason(s):
LabVIEW: One of the string parameters contains a null character. LabVIEW does not support null characters for regular expression matching.p
[/code]
12-21-2013 12:42 PM
What is more, when it comes to the MRE it cut off only first appearing of AAAA, leave the rest... how to cut all of AAAA off from that string?
01-11-2014 11:00 AM - edited 01-11-2014 11:02 AM
Ok than, after New Year Eve, I'm ready to finish my project. Here is my VI, when I turn it on, everything works perfectly, but when i begin to move my Pirometer, LabView returns such an information (second attachment). Could you help me to find simple solution of that issue?