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,858 Views)