How can I embed struct-query as argument for other command?
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Chewy
am 17 Sep. 2015
Bearbeitet: Walter Roberson
am 17 Sep. 2015
I tried several datatyp-conversions, but the following lines don´t work:
info = imaqhwinfo('gige')
dev_info = imaqhwinfo( char(info.AdaptorName) , cellstr(info.DeviceIDs(1, 1) ) )
The Error is as followed:
Error using imaqhwinfo (line 91)
Second input must be specified as a numeric vector, a string, or 1xN cell array of strings.
Error in A1_Bildaufnahme (line 17)
dev_info = imaqhwinfo( char(info.AdaptorName) , info.DeviceIDs(1,1) )
I can of course fill in the arguments manually in the code, but I like to automate this step.
The struct is as followed:
info =
AdaptorDllName: 'C:\MATLAB\SupportPackages\R2015a\gigevi...'
AdaptorDllVersion: '4.9 (R2015a)'
AdaptorName: 'gige'
DeviceIDs: {[1]}
DeviceInfo: [1x1 struct]
How does I get this step to work?
0 Kommentare
Akzeptierte Antwort
Walter Roberson
am 17 Sep. 2015
Bearbeitet: Walter Roberson
am 17 Sep. 2015
dev_info = imaqhwinfo( info.AdaptorName, info.DeviceIDs{1}(1) )
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu GigE Vision Hardware finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!