Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Mikron Infrared camera trough labview

Hi,
I am a new Labview user. Probably this is a silly question, but i would like to know how to proceed to read data from a Mikron MI-GA 140 Infrared trough  Labview.
This camera uses the Universal Pyrometer Protocol.
My question is: What are the steps to  actually do this? Data goes trough the RS232 serial port into the comoputer. I guess i will have to extract the data from the port and then implement a program to interpret the bits. Please help me!

0 Kudos
Message 1 of 5
(5,387 Views)
I never heard of UPP, but a quick look at the manual for that camera indicates it's just a syntax format. You just need to send a string of characters that is the command, and you get a string of characters that's the response (if any). You can use the "Basic Serial Write and Read" example that ships with LabVIEW to try talking to it. The commands to send are listed starting on page 22 of the manual. Based on this, for example, to read the temperature you would send "AAms" (where AA is the address, which is probably 00), followed by a carriage return. In other words, enter the text "AAms\r" in the "string to write" control on the "Basic Serial Write and Read" example. The \r is a carriage return code. A read should then return the temperature.
0 Kudos
Message 2 of 5
(5,378 Views)
I have tried comunnicating with the camera via the "write and read.vi" example but an error is prompted on the screen. 

error -1073807202 ocurred at Property Node in VISA Configure Serial Port(instr).vi->Basic Serial Write and Read.vi
This error is undefined [...]

I don´t know  if it can have something to do  with  the port. If you take a look at the manual the data formtat is the following: 8 data bits, 1 stop bit, even parity (8,1,e) while the parity of the serial port is none. Does it have something to do with this?
On the other hand, The manual especifies a format like this:

Example: Entry: “00em“ + <CR>
The emissivity setting (ε) of the device with the address 00 is returned
Answer: “0970“ + <CR> means Emissivity = 0,97 or 97.0%
Should i write :
00em\CR
or what?
Thanks for your quick answer!

0 Kudos
Message 3 of 5
(5,359 Views)
 

You did not install NI-VISA and that is the cause of the error. VISA is on the device drivers CD that comes with LabVIEW. You can also download the latest version from https://www.ni.com/en/support/downloads/drivers/download.ni-visa.html.

The settings of the serial port are whatever you want them to be. The example has front panel controls to set the serial port of the pc to match the settings of the instrument.

The CR is a carriage return and in the basic example, the 'string to write' has '\' Code Display enabled. The \r\n is the '\' Code Display way to write a CR and LF. If you need just a carriage return, only append the \r to your command.

Message 4 of 5
(5,353 Views)
Thanks!!! you helped a lot!
Now i can read the camera data!
0 Kudos
Message 5 of 5
(5,341 Views)