04-15-2021 03:29 AM
Hope this is in the right place. I am trying to use a raspberry pi NoIR camera (with a RPi zero running in peripheral mode) as a USB webcam (as described here). The webcam runs fine and at 30fps if i just run it through windows, or if I use Python to acquire frames.
Running it in Labview (2020), it runs at only about 2fps. If i look into MAX I can see that there is only one option under "video mode" and that is for the camera running at 2fps (1920x1080 MJPG 2.00fps). Other USB webcams I have all have multiple options and can run at higher framerates.
Why would the camera run fine in windows camera view but not in Labview? I imagine it is some driver issue, but I don't know how to see what drivers the camera is using in labview. Any advice appreciated!
04-18-2021 11:19 PM
Those instructions for configuring the emulated camera set the 2hz rate:
cat <<EOF > /sys/kernel/config/usb_gadget/pi4/functions/uvc.usb0/streaming/mjpeg/m/1080p/dwFrameInterval 5000000 EOF