Quantcast
Channel: Machine Vision topics
Viewing all articles
Browse latest Browse all 1272

IMAQdx and the use of Python wrapper pynivison

$
0
0

Hello -  I have a NI PCIe 1427 frame grabber with IMAQdx installed.  NI MAX sees the frame grabber and I can snap or grab images fine from the camera I'm using, a Xenics Bobcat 320.  I need to use python 3.5 to grab images from the frame grabber and I found a python wrapper, pynivision:  https://github.com/robotpy/pynivision

When I try to opening the camera using:  IMAQdxOpenCamera I keep getting a error:  ctypes.ArgumentError: argument 1: <class 'TypeError'>: wrong type

 

I'm not a newbi to Labview and Machine Vision but am a newbie to python.  Has anyone successfully used pynivision?  

 

This is the simple example I'm running:

 

import core as nivision
import sys
name = "img0"

id = nivision.IMAQdxOpenCamera(name, nivision.IMAQdxCameraControlModeController)
pic = nivision.IMAQdxGrab(id)
closeCam = nivision.IMAQdxCloseCamera(name)

 import core is part of the pyniwrapper that defines all the IMAQ functions.

 

Thank you for any help.


Viewing all articles
Browse latest Browse all 1272

Trending Articles