08-13-2015 01:32 PM
Hi all
Still peeling the onion here. I have an evaluation camera board from a vendor that came with a Labview app to run it. There's no driver, so all commands from the app go straight to the CL serial comm port.
I'm modifying the camera and Labview design (they provided the source to get me started). I'd like to use camera Link Logger and Analyzer to show whether the Valid bits are detected and if so, how many. Trouble is, if I use NI-MAX to request a snap, nothing happens. I expect NI-MAX is trying to use some standard DLL call, which won't here because there is no DLL.
I can't figure out how to tell NI-MAX, or maybe the Camera File Generator, what it should do when I click "snap". Anybody know what I should do, or maybe have a link to an app note?
Cheers!
MADman
08-14-2015 04:28 PM
What camera and frame grabber are you using?
08-14-2015 04:49 PM
Hi AA
Thanks for offering your help.
The camera is an eval board from a camera chip vendor. It doesn't even have a driver, just a Labview app that sends register value changes over the CL serial link. FG is an NI PCIe-1433.
I'm modifying the FPGA that lives on the evaluation board, and at the moment my code doesn't work. The LV app doesn't get a frame before timeout, which is 3 seconds, so the question is whether the FG got no data, or not enough data, or what? NI has a new downloadable utility that might help by logging received Valid bits: http://www.ni.com/product-documentation/14301/en/. It's looks pretty cool, but it needs something to start a capture, and my LV app can't access the session at the same time as the Logger.
MacGyver time: One of ouur techs just rigged me a trigger switch so I can set the camera into an 'external trigger' mode, exit the app, and start the Logger, using the trigger to force a Snap. But if there were an all-SW solution, it would be handy to know.
Cheers!
MADman
08-14-2015 07:23 PM
08-17-2015 06:15 PM
Hi BlueCheese
I have been trying to do just that. Attached is a screen shot of MAX. I created an attribute called SNAP with values GO and NO-GO. GO has a series of serial commands that should trigger a snap. However, selecting GO from the pull-down doesn't do anything. Is there some other control in MAX that does the actual sending?
I know the commands aren't being sent because I loaded ChipScope into the camera's FPGA and watched the serTC FIFO outputs. The scope triggers when I send commands via the LV app, but not when I'm in NI-MAX.
What am I missing?
As always, thanks for the help. Hope I can return the favor sometime.
MADman
08-18-2015 09:22 AM
Can you start a Grab and then change the attribute? I think the IMAQ driver typically defers serial commands until it thinks they are needed to run. if you aren't actually acquiring, I'm not sure it will have any effect.