Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Pyromether Optris CS

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

0 Kudos
Message 1 of 10
(7,327 Views)

Find the programming manual of the pyrometer and red it carefully.

Then send strings with commands via visa and read back the data.

 

Interpret the data and see what happens.

 

greetings from the Netherlands
0 Kudos
Message 2 of 10
(7,314 Views)

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. 

0 Kudos
Message 3 of 10
(7,311 Views)

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:

Pyro.png

 

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).

Pyro1.png

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...

 

0 Kudos
Message 4 of 10
(7,225 Views)
The simple VI you show would have to first write to the instrument to put it into burst mode. That is probably why you are getting a timeout.
0 Kudos
Message 5 of 10
(7,219 Views)

Ok, meanwhile I created a new one - based on State Machine, but what should I use to sent those bytes? Write VISA? 

0 Kudos
Message 6 of 10
(7,215 Views)

VISA is the only option you have.

0 Kudos
Message 7 of 10
(7,211 Views)

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]

0 Kudos
Message 8 of 10
(7,207 Views)

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?

0 Kudos
Message 9 of 10
(7,203 Views)

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? 

 

 

Download All
0 Kudos
Message 10 of 10
(6,885 Views)