From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

python code for NI vision

Hi All,

I am trying to run this below code:

import nivision

img = nivision.imaqCreateImage(nivision.IMAQ_IMAGE_RGB)
nivision.Priv_ReadJPEGString(img, open('E:/Documents/LabviewImage.JPEG', 'rb').read())
print(nivision.imaqGetImageSize(img))

but getting this below error:

nivision.core.ImaqError: IMAQ Private: -1074395989: Unable to read data.

 

please let me know how I can call NI vision software"s function via python code? 

 is there any API?

0 Kudos
Message 1 of 1
(1,528 Views)