LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Labview AF Structure

Hi Sir, 

 

Could you share a AF structure template ?

Is it the same to producer-consumer structure ? 

Thanks.

Learning from other people
0 Kudos
Message 1 of 7
(1,317 Views)

@Brzhou wrote:

Hi Sir, 

 

Could you share a AF structure template ?

Is it the same to producer-consumer structure ? 

Thanks.


To understand more about Actor Framework, Please check Actor Framework Documents - NI Community

 

Also you can Look Into Tom's LabVIEW Adventure  (263) LabVIEW Actor Framework - Tutorial Series - YouTube

 

You will get better understanding on AF once you go through the above Documents/Videos.

----------------------------------------------------------------------------------------------------------------
Palanivel Thiruvenkadam | பழனிவேல் திருவெங்கடம்
LabVIEW™ Champion |Certified LabVIEW™ Architect |Certified TestStand Developer

Kidlin's Law -If you can write the problem down clearly then the matter is half solved.
-----------------------------------------------------------------------------------------------------------------
0 Kudos
Message 2 of 7
(1,254 Views)

Thanks Sir.

I will check the document and the video, then let you know if further query.

Learning from other people
0 Kudos
Message 3 of 7
(1,237 Views)

Hi Sir, 

 

The error is due to this User interface.ctl has issue, right ?

Thanks.

 

 

Brzhou_0-1682931215140.png

 

Learning from other people
0 Kudos
Message 4 of 7
(1,164 Views)

Thank you for this..

0 Kudos
Message 5 of 7
(1,151 Views)

Not sure how to replace the user.vi to Actor Core.vi.

In the project file, no remove or rename option.

Thanks.

 

 

Brzhou_0-1682995919259.png

 

Learning from other people
0 Kudos
Message 6 of 7
(1,115 Views)

@Brzhou wrote:

Not sure how to replace the user.vi to Actor Core.vi.

In the project file, no remove or rename option.

Thanks.

 

 

Brzhou_0-1682995919259.png

 


 

You need to override the Actor Core VI. On the Actor lvclass right click then select new -> vi for override. Then select Actor Core. 

Jay14159265_0-1682997932225.png

 

In this picture the 'VI for override' selection is grey because of reasons that we don't need to get into, but that is the one you want to select. Then you will see all the actor VIs that you can override, including the Actor Core. 

 

After Overriding the Actor Core you can drop the user.vi or whatever VI you want into the Actor Core and it will run when the Actor is launched. 

 

In general this is the way to do it, I have never tried to re-name a VI to a base class method for an override but I don't think it will work to do it that way. There is some behind the scene work that labview does when you override a VI that you would need to do by hand if you don't use the override option in the project manager. 

______________________________________________________________
Have a pleasant day and be sure to learn Python for success and prosperity.
0 Kudos
Message 7 of 7
(1,111 Views)