From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
|
Dim ProfileReport As CWIMAQProfileReport
ProfileReport
변수가 액세스될 때 에러가 발생합니다. CWIMAQProfileReport
에 대한 참조는 리턴되었으나 실제로 초기화된 리포트 객체를 만들지는 않았습니다.LineProfile
나 BasicParticle
같은 방법들은 하나의 파라미터로써 리포트 객체가 필요합니다. New
오퍼레이터를 사용하여 새로운 리포트 객체가 할당되고 새 객체에 대한 참조가 리턴됩니다. 아래의 예제 코드는 New
오퍼레이터를 사용하는 방법을 보여줍니다.Dim ProfileReport As New CWIMAQProfileReport
' This allocates a CWIMAQProfileReport object
Dim Particle As New CWIMAQBasicParticleReport
' This allocates a CWIMAQBasicParticleReport object
CWIMAQImage
, CWIMAQKernel
, CWIMAQStructuringElement
객체를 만드십시오. CreateCWIMAQImage
, CreateCWIMAQProfileReport
등과 같은 Create 함수를 사용하십시오.
더 많은 정보를 원하시면 관련 링크에 있는 National Instruments Image Acquisition과 Vision support homepage를 참조하십시오.
|