NI Linux Real-Time Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

cRIO 9038 datasocket read http

Solved!
Go to solution

I have a cRIO-9038 running LabVIEW 2016. I am trying to acquire images from a HikVISION IR Cube Model DS-2CD2412F. It is an IP camera, If I use datasocket read in a windows program and enter the URL http://User:Password@IPAddress/Streaming/channels/1/picture[text] I can get the jpg (in text) returned. However in Real Time I get an error 1181 which I read here that says I can't use data sockets to read that http. However it seems I should be able to do this on a linux machine. 

Does any one know how to do this correctly?

0 Kudos
Message 1 of 3
(2,986 Views)
Solution
Accepted by topic author LJHerskowitz

Hi LJHerskowitz,

 

I'm not quite sure why datasockets have that limitation on RT, but you can work around that using curl or wget. Keep in mind any calls to the SystemExec VI will induce jitter on all other LVRT threads, if this is acceptable, great. Otherwise, you may need to use libcurl through CLFNs (which may still induce jitter, depending on whether you call the libraries from RT priority G or not, and what the libraries are doing under the hood).

0 Kudos
Message 2 of 3
(2,959 Views)

Thanks.

I'm using wget. And it works in putty. 

It is working in real time. Thanks again

0 Kudos
Message 3 of 3
(2,941 Views)