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

reading from IR camera

$
0
0

Hey guys,

I just got into working with LabVIEW and I have to read the data from an infrared camera that works with UDP network connection. I want my VI to receive the pixel - intensity data and print it out for further procession.

I am quite the beginner and don't really know what to do next. I am also new to reading data sheets from such devices, so it's hard to figure out how to get what I want.

 

I attached the VI and the data sheet.

After initialization ("Bind HTPA devices" means that only my computer in the network can command the camera) I am using two parallel while loops, one for reading in the camera data and one from sending commands to the camera. I am using the same port no. for writing and reading (the camera port was given in the sheet). In the reading loop I ask wether the incoming data is larger than 548 bytes. If that is the case, it is probably a stream of binary data (data sheet), so as a test I give out the length of the incoming binary datas.

 

I found out that using the command "t" yields a stream of binary data, it should be the pixel data I wanted. Due to the while loop, the camera sends again and again. Also, it seems like the camera keeps sending even if I stop the programm, because as soon as I start again I receive the same output even without using "t", but that is probably normal since the camera does not care about wether LabVIEW is active or not.

 

Now my questions: How can I extract the pixel data I need? Is everything alright with my VI?

I would appreciate the help, maybe someone here is used to working with UDP devices like that.

Oh and please try to answer on a beginner level ^^"

 

Best wishes

 

 


Viewing all articles
Browse latest Browse all 5565

Trending Articles



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