Seems to be identical..thanks (o;
Just wonder why all scopes I know don't have a GPIB command to put it back into local mode (o;
A quick test gets me a TIFF capture:
<?php
$string = "";
$u = ibfind("1540");
ibwrt($u, "IMAG:FORMAT TIFF");
ibwrt($u, "IMAG:SEND?");
$r = ibrd($u, $string, 100000);
$string = substr($string, 8, -1);
file_put_contents("/var/www/html/image.tif", $string);;
?>
And with this little addition:
<?php
$image = "";
$u = ibfind("1540");
ibwrt($u, "IMAG:FORMAT TIFF");
ibwrt($u, "IMAG:SEND?");
$r = ibrd($u, $image, 100000);
$image = substr($image, 8, -1);
$imagick = new Imagick();
$imagick->readImageBlob($image);
$imagick->setImageDepth(24);
$imagick->setImageFormat("png");
$clut = new Imagick();
$clut->newPseudoImage(2, 1, "gradient:orange-black");
$imagick->clutImage($clut);
header("Content-Type: image/png");
echo $imagick;
?>
It is shown in a browser like: