Go to Post [on practice robots:] Twice the work and twice the practice building seem to equal twice the experience so far. - MrBasse [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 12-03-2015, 00:29
cbf cbf is offline
Registered User
FRC #2877
 
Join Date: Feb 2012
Location: Newton, MA
Posts: 73
cbf is just really nicecbf is just really nicecbf is just really nicecbf is just really nicecbf is just really nice
Post IMAQdx -- how do I set the camera mode?

In C++. I've dumped the modes and I want #95 (this is part of the list):

Video mode[94] is 320 x 240 JPEG 20.00 fps = 94
Video mode[95] is 320 x 240 JPEG 15.00 fps = 95
Video mode[96] is 320 x 240 JPEG 10.00 fps = 96

can one of the NI guys tell me how to form the proper IMAQdxSetAttribute call to get that mode? I'm thinking I pass in IMAQdxAttributeVideoMode (uisitionAttributes::VideoMode"), but what's the IMAQdxValueType? IMAQdxValueTypeU32? and I just pass a 95?

I'm still experimenting, but if one of you is online..

When I enumerate the attributes, I get:

attr[38] is AcquisitionAttributes::VideoMode, type 4, writeable 0, value=0

Should I be worried about the Writable being zero? Does that mean I can't change video modes by writing to this attribute (.h file says its "get/set").

But does type 4 mean I set it as a character string and not an integer?
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 05:13.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi