Solved: Thorlabs camera acquisition - NI Community

文章推薦指數: 80 %
投票人數:10人

Solved: I got a very complex Labview software that I have to customize, and I'm finding it very hard - I'm not a LV expert at all. ReturntoHomePage Togglenavigation Solutions Howwethinkaboutsolutions Wecreatesolutionswithyoutailoredtoyourindustryneeds. Semiconductor Transportation Aerospace,Defense,&Government  Electronics Energy Academic&Research Learnaboutsolutions Products Software Viewall LabVIEW TestStand FlexLogger SystemLink DIAdem VeriStand Optimal+isnowNI SoftwareSuites AutomatedTestSoftwareSuite EmbeddedControlandMonitoringSoftwareSuite HILandReal-TimeSoftwareSuite SERVICES Viewall RepairServices Calibration NIServicesProgram PurchaseTraining HARDWARE Viewall DataAcquisitionandControl LearnAboutDAQ MultifunctionI/O Voltage Current DigitalI/O PackagedControllers CompactDAQChassis Temperature SoundandVibration Strain,Pressure,andForce ElectronicTestandInstrumentation Oscilloscopes Switches SourceMeasurementUnits GPIB,Serial,andEthernet DigitalMultimeters PXIControllers PXIChassis WirelessDesignandTest SoftwareDefinedRadios RFSignalGenerators VectorSignalTransceivers Accessories PowerAccessories Connectors Cables Sensors RESOURCES ShoppingResources Advisors Distributors PC-BasedSystems BenchtopMeasurementandTest CompactRIO DistributedMeasurementandControl PXI High-PerformanceTest Software SystemsEngineeringSoftware Seeallproducts Perspectives Support Resources SoftwareDownloads RegisterandActivate ProductDocumentation OnlineTraining KnowledgeBase CodeExamples PopularSoftwareDownloads LabVIEWNXG LabVIEW SystemLink RequestSupport Youcanrequestrepair,schedulecalibration,orgettechnicalsupport.Avalidserviceagreementmayberequired.  Openaservicerequest PopularDriverDownloads NI-DAQmx ProvidessupportforNIdataacquisitionandsignalconditioningdevices.  NI-VISA ProvidessupportforEthernet,GPIB,serial,USB,andothertypesofinstruments.  NI-488.2 ProvidessupportforNIGPIBcontrollersandNIembeddedcontrollerswithGPIBports.  Allsupportresources Community About ContactUs MyAccount Account Search Cart Solutions Semiconductor Transportation Aerospace,Defense,&Government  Electronics Energy Academic&Research Learnaboutsolutions Products Software Viewall LabVIEW TestStand FlexLogger SystemLink DIAdem VeriStand Optimal+isnowNI SoftwareSuites AutomatedTestSoftwareSuite EmbeddedControlandMonitoringSoftwareSuite HILandReal-TimeSoftwareSuite SERVICES Viewall RepairServices Calibration NIServicesProgram PurchaseTraining HARDWARE Viewall DataAcquisitionandControl LearnAboutDAQ MultifunctionI/O Voltage Current DigitalI/O PackagedControllers CompactDAQChassis Temperature SoundandVibration Strain,Pressure,andForce ElectronicTestandInstrumentation Oscilloscopes Switches SourceMeasurementUnits GPIB,Serial,andEthernet DigitalMultimeters PXIControllers PXIChassis WirelessDesignandTest SoftwareDefinedRadios RFSignalGenerators VectorSignalTransceivers Accessories PowerAccessories Connectors Cables Sensors RESOURCES ShoppingResources Advisors Distributors Seeallproducts Perspectives Support Resources SoftwareDownloads RegisterandActivate ProductDocumentation OnlineTraining KnowledgeBase CodeExamples PopularSoftwareDownloads LabVIEWNXG LabVIEW SystemLink PopularDriverDownloads NI-DAQmx NI-VISA NI-488.2 RequestSupport Youcanrequestrepair,schedulecalibration,orgettechnicalsupport.Avalidserviceagreementmayberequired.  Openaservicerequest Allsupportresources Community About ContactUs Account Home Community DiscussionForums MostActiveSoftwareBoards LabVIEW Topic LabVIEW Register · Login · Help CommunityCategoryBoardDocumentsUsers cancel Turnonsuggestions Auto-suggesthelpsyouquicklynarrowdownyoursearchresultsbysuggestingpossiblematchesasyoutype. Showingresultsfor  Searchinsteadfor  Didyoumean:  TopicOptions SubscribetoRSSFeed MarkTopicasNew MarkTopicasRead FloatthisTopicforCurrentUser Bookmark Subscribe Mute PrinterFriendlyPage AllForumTopics PreviousTopic NextTopic Thorlabscameraacquisition Solved! Gotosolution Thorlabscameraacquisition alzyx Member ‎08-14-2018 07:01AM Options MarkasNew Bookmark Subscribe Mute SubscribetoRSSFeed Permalink Print EmailtoaFriend ReporttoaModerator Labels: LabVIEW IgotaverycomplexLabviewsoftwarethatIhavetocustomize,andI'mfindingitveryhard-I'mnotaLVexpertatall...Idon'tknowifitispolitetoaskforhelpinsuchacomplicatedcase,becauseIdontknowhowtoreducetheproblemtoasimplequestion,buthereitgoes... ThesoftwareiffreetodownloadfromThorLabs(link)andisusedtodrivetheirScientificCamera. WhenyouinstallitandinstalltheSDK.zipandLabView.zipexamples,youhaveamainprogramTLCameraMain.vi drivingthecamera. FromwhatIunderstand,afterinitializationandstartofacquisition,thecameraimagesare continuouslyshowninapicturecontrol,whileanEventstructurekeepswatchofuseractions(stopbutton,changeofexposureparameters...).   Ineedtoperformanaction(calculationofaveragebrightness)oneachimage,butforthelifeofmeIcouldnotfindaneventloopwheretheimagesaresequentiallyobtained...itmustbeinsomesubVI. SoIthoughttoaddanEventCase,activatingonthe"FrameNumber"valuechange. MyproblemisthattheCaseneveractivates,evenifthe"FrameNumber"valuekeepsonincreasing,asshownintheprogram.   AsIsaid,sorryifIcannotbeclearer-Ihopesomebodycanmakesenseofit   Solved! GotoSolution. TLCameraMain.vi‏188KB 0 Kudos Message1of10 (3,920Views) Reply Re:Thorlabscameraacquisition Bob_Schor KnightofNI ‎08-14-2018 07:43AM Options MarkasNew Bookmark Subscribe Mute SubscribetoRSSFeed Permalink Print EmailtoaFriend ReporttoaModerator ThorlabsmakescamerasthatarecompatiblewithLabVIEWandtheirVisionDevelopmentModule(which,Ibelieve,requiresanadditionalNILicense). ThesoftwaretheyprovidedisdesignedfortheLabVIEWdevelopertomake fulluseofalltheBellsandWhistlesThorlabprovidestotweakallofthesettingsandparametersoftheircameras. Toputitanotherway,itistohelpthosewhoalreadyknowLabVIEWandLabVIEWVisiongetstartedwiththeirhardware.   Inyourcase,however,you(probably)wanttodosomethingsimpler--usetheCameratogatherImagesanddocalculationsonthoseimages. YoumayormaynotcarewhetheryoudothisusingLabVIEWorsomeotherplatform(Matlab? C++?)thatcan"hook"intotheThorlabs SDKandallowyoutoacquireanddocertainanalysesontheImages.   IfyouhaveLabVIEWinhouse,andalsohavethelicense(s)fortheVisionDevelopmentModuleand(optionally)theVisionAcquisitionSoftware(NI'sDeviceDriver),IwouldtalktoyourLabVIEWDevelopersanddiscussdevelopingIMAQ/IMAQdxcodetoacquireandprocesstheImagesyouneed. Myguessisifyougothisway,you willbeusingthe"comprehensive"(andlargelyredundant)routineyouposted(thanks,bytheway,fordoingthat!!)asareferencetopulloutjusttheminimumyouneedforyourapplication.   Irecommendthatyoutrytodevelopadocumentdetailingwhatyouwanttodo. DescribetheCamera,theparametersyouneedfordataacquisition(FrameRateifVideo,Acquisitionrateif"Time-Lapse"individualimages),how(oreven if)youplantosave/storetheImages,theformatoftheImages(Greyscale,RBG,etc.),thepixelsizeoftheImage(checkyourCameraspecs). DescribetheprocessingyouwanttodoontheImages(youmentionedaveragebrightness--haveyouthoughtabouthowyouaregoingtocalibratethis? howthelightsourceplaysarole? howyoutakethatintoaccount?). Onceyouhavethis,gofindaLabVIEWGuruinyourcompany/institutionanddiscussyouroptions--LabVIEWdevelopersareoften"up"forinterestingchallenges(andthisone,whileastretchforanovice,shouldn'tfazesomeonewithafewyearsofLabVIEWexperience).   DoyouknowifMAX(NI's Measurementand AutomationExplorer)can"see"theCamerawhenitispluggedintothePC? Ifso,youcanseeifMAXcanacquireanImageforyou(thistellsyousomethingaboutwhetherornotyouhavesomeoftheNIlicensesyoumightneed).   BobSchor 1 Kudo Message2of10 (3,909Views) Reply Re:Thorlabscameraacquisition Gregory TrustedEnthusiast ‎08-14-2018 11:29AM Options MarkasNew Bookmark Subscribe Mute SubscribetoRSSFeed Permalink Print EmailtoaFriend ReporttoaModerator Hialzyx,   IhaveusedsomeThorlabsCamerasinthepast.I'mnotahugefanofthem(they'reexpensiveanditmakesthesoftwaremoredifficult).However,Idohaveafunctionthatconvertsapicture(whichisactuallyastringunderneath!)intoa2Dnumericarray,whichshouldallowyoutorunanalysisonit.Pleasefinditattached. CLA//LabVIEW2016//BALUG//GCentral.org//UnofficialForumRulesandGuidelines//AskSmartQuestions Pictureto2DArray.vi‏24KB 0 Kudos Message3of10 (3,888Views) Reply Re:Thorlabscameraacquisition Gregory TrustedEnthusiast ‎08-14-2018 11:34AM Options MarkasNew Bookmark Subscribe Mute SubscribetoRSSFeed Permalink Print EmailtoaFriend ReporttoaModerator HiBob,   IhaveneverusedThorlabscameraswithNI'sVisionAcquisitionstuffbefore,areyousuretheyarecompatible?ThecamerasshipwithaDLLtoaccessthecameras. CLA//LabVIEW2016//BALUG//GCentral.org//UnofficialForumRulesandGuidelines//AskSmartQuestions 0 Kudos Message4of10 (3,884Views) Reply Re:Thorlabscameraacquisition Bob_Schor KnightofNI ‎08-14-2018 01:02PM Options MarkasNew Bookmark Subscribe Mute SubscribetoRSSFeed Permalink Print EmailtoaFriend ReporttoaModerator Ialsohaven'tusedThorLab,butI'vegotacolleaguewhodoesallkindsofVideoImaging(ofteninthenearIR)usingallkindsofstrangecameras,andI thinkI'veheardofThorLabsfromhim. Irecentlymovedafewhundredmilesawayfromhim,soIcan'tjustwanderdowntohislabandaskaseasilyasbefore... WhichmeansI'malsonotsureifIMAQorIMAQdxwillworkwiththem(whichiswhyIaskedifMAXcould"see"them--anOunceofExperimentationisWorthaPoundofManuals.   BobSchor 0 Kudos Message5of10 (3,878Views) Reply Re:Thorlabscameraacquisition alzyx Member Author ‎08-16-2018 07:02AM Options MarkasNew Bookmark Subscribe Mute SubscribetoRSSFeed Permalink Print EmailtoaFriend ReporttoaModerator higuys,thankyouforyourhelp...   @Bob_Schor hascritto: Inyourcase,however,you(probably)wanttodosomethingsimpler--usetheCameratogatherImagesanddocalculationsonthoseimages.  quitethereverse:thethorlabssoftwareprovidespartofwhatIneed,andIwillhavetoaddwhatI'missing...     @Bob_Schor hascritto: IfyouhaveLabVIEWinhouse,andalsohavethelicense(s)fortheVisionDevelopmentModuleand(optionally)theVisionAcquisitionSoftware(NI'sDeviceDriver),  yes,thelicensesareavailable,fortunately     @Bob_Schor hascritto: DoyouknowifMAX(NI's Measurementand AutomationExplorer)can"see"theCamerawhenitispluggedintothePC? Ifso,youcanseeifMAXcanacquireanImageforyou(thistellsyousomethingaboutwhetherornotyouhavesomeoftheNIlicensesyoumightneed). ApartfromthefactthattheoriginalcodefromThorlabsworksflawlessly-NIMaxseesthecameraunder"devicesandinterfaces",butclickingonitgivesmean0x80040275error(butit'snotonlyme, link)   @gregoryj hascritto: However,Idohaveafunctionthatconvertsapicture(whichisactuallyastringunderneath!)intoa2Dnumericarray,whichshouldallowyoutorunanalysisonit.Pleasefinditattached. Thankyou!Iwillcertainlytrytouseit-butmymainproblemisthatatthemomentI'munabletocatchthe programatthemomentapictureisavailable,andmakeit dosomethingadditional(like,say,processtheimage). IaddedtotheEventstructureinthemainfileameventforthechangeoftheframenumbervariable-whichisupdatedbytheOnImageFrameAvailableeventcallback-butitneverfires.               0 Kudos Message6of10 (3,856Views) Reply Solution Acceptedbytopicauthoralzyx Re:Thorlabscameraacquisition Gregory TrustedEnthusiast ‎08-16-2018 01:45PM Options MarkasNew Bookmark Subscribe Mute SubscribetoRSSFeed Permalink Print EmailtoaFriend ReporttoaModerator Iwouldn'tcreateaseparateeventstructurejustforthat.Youcanputitwhereveryouupdatethepicturecontrolwhichisyourimage.LabVIEWisadataflowlanguage,soifyourfunction(subVI)iswaitingfortheimagedata,itwillrunwhenthedataisavailable. CLA//LabVIEW2016//BALUG//GCentral.org//UnofficialForumRulesandGuidelines//AskSmartQuestions 1 Kudo Message7of10 (3,849Views) Reply Re:Thorlabscameraacquisition alzyx Member Author ‎08-17-2018 03:06AM Options MarkasNew Bookmark Subscribe Mute SubscribetoRSSFeed Permalink Print EmailtoaFriend ReporttoaModerator Ifinallysolvedit,andasyoucorrectlysayacasestructurewasntnecessary. Theproblemisthatthemainprogram'scasestructuredealswitheverythingfromexposureparameterchanges,toinitialization,start/stopacquisition...butthemainacquisitionloopishiddenina registereventcallback -somethingIneverheardaboutbefore-thatexecutesasubVI(OnImageFrameAvailable.vi)ateachframeavailable.    ByaddingreferencestoadditionalobjectsIneeded(awaveformchart,anindicator...)tothissubVI'sinputparameters,andworkingontheirpropertynodes,Iwasabletomakeitwork...   0 Kudos Message8of10 (3,841Views) Reply Re:Thorlabscameraacquisition Bob_Schor KnightofNI ‎08-17-2018 07:35AM Options MarkasNew Bookmark Subscribe Mute SubscribetoRSSFeed Permalink Print EmailtoaFriend ReporttoaModerator ItwouldbearealhelptoothermembersoftheLabVIEWCommunitywhomightalsobeusingaThorLabscameraifyoupostedtheVI(orVIs)thatyouusedtogetthecameratoworkforyou. Knowingthatthere isasolutionisGoodNews,butactuallyprovidingthesolution(whichtookafairamountofeffortandquiteafewpoststoachieve)willbeevenmoreuseful.   BobSchor 0 Kudos Message9of10 (3,831Views) Reply Re:Thorlabscameraacquisition alzyx Member Author ‎08-17-2018 07:43AM Options MarkasNew Bookmark Subscribe Mute SubscribetoRSSFeed Permalink Print EmailtoaFriend ReporttoaModerator @Bob_Schor hascritto: ItwouldbearealhelptoothermembersoftheLabVIEWCommunitywhomightalsobeusingaThorLabscameraifyoupostedtheVI(orVIs)thatyouusedtogetthecameratoworkforyou. Knowingthatthere isasolutionisGoodNews,butactuallyprovidingthesolution(whichtookafairamountofeffortandquiteafewpoststoachieve)willbeevenmoreuseful.   you'reright,sorry... TLSCisthemain,andOnImageFrameAvailableisthesubVIwhereIwasabletoinsertafewoftheadditionalthingsIneedtoperformontheimage   TLSCalexxxv0.6.vi‏203KB OnImageFrameAvailableEventCallback-TLCameraMainColorv0.7.vi‏50KB DownloadAll Virusscaninprogress.Pleasewaittodownloadattachments. 0 Kudos Message10of10 (3,827Views) Reply AllForumTopics PreviousTopic NextTopic Thissiteusescookiestoofferyouabetterbrowsingexperience.Learnmoreaboutourprivacystatementandcookiepolicy. Yes,Iaccept Whatdoyouneedourteamofexpertstoassistyouwith? Requestaquote Findtherightproduct Placeanorder Getsupportonaproduct Howcanwehelp? Pleaseenteryourinformationbelowandwe'llbeintouchsoon. Thisfieldisrequired Thisfieldisrequired Thisfieldisrequired Thisfieldisrequired Country Preferredcommunicationmethod Email Phonecall Send Thanks! We'llbeintouchsoon! Whatdoyouneedourteamofexpertstoassistyouwith? Requestaquote Findtherightproduct Placeanorder Getsupportonaproduct Howcanwehelp? Next Pleaseenteryourinformationbelowandwe'llbeintouchsoon. Thisfieldisrequired Thisfieldisrequired Thisfieldisrequired Thisfieldisrequired Country Preferredcommunicationmethod Email Phonecall Send Thanks! We'llbeintouchsoon!



請為這篇文章評分?