Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Grab and attribute setup Example VI

Solved!
Go to solution

Hello All,

 

I am trying to get the attributes from a GigE camera. I am using example VI in IMAQ  'grab and attributes setup.vi' . I have problem understanding it , can anyone please clear my doubts below ?

 

1)In the block diagram before and after 'update attributr tree' block  property node with Defer pannel updates is used. Before the 'update attribute tree' block it wa set to TRUE  and after the block it was set to FALSE. What is the need  of using it twice, especially after the 'update attribute tree block'. What is the need of setting it to FALSE ??

 

2)What is the logic behind using 'unconfigure acquisition ' block immediately after 'configure acquisition' ? Before grabbing the frames, if we use unconfigure acquisition block,  how the frames are acquired ???

 

 

Regards

Neo

0 Kudos
Message 1 of 8
(6,000 Views)

Actually this example is very bad programmed.

We have a project running right now to improve our example library, this VI is defenitely on our list for review.

 

To your questions:

1) Please read the help for the "Defere Panel Updats" property.

 

2) This actually does not make sense. So please ignore it.

 

 

Thanks,

Christian

0 Kudos
Message 2 of 8
(5,995 Views)

Hello Christian,

 

Thank you for the valuable information. Regarding my first question I have gone through the detailed help. I understood how it works. But my question is what is logic behind using this step here ?

 

Regards

Neo.

0 Kudos
Message 3 of 8
(5,981 Views)

Hello Christian,

 

I would also like to save all the attributes to a text file and also want to load all attributes from text file. I want to implement these two features. In which step should I implement this ??

 

I would be glad if you can modify the block diagram.

 

 

Regards

Neo.

0 Kudos
Message 4 of 8
(5,977 Views)

In between the defer panel updates the Tree Control gets updated with the attributes of the camera. Without setting this property to TRUE before, the updates would take a bit longer.

 

IMAQdx saves the attributes of the cameras are as .icd file under [Application Data Folder]\National Instruments\NI-IMAQdx\Data.

Whenever you change a property the value got saved there as well. So there is no need to manually create another configuration file.

 

If you still want to save some attributes to a ini file have a look at the examples for "Configuration File VIs" using the Example Finder.

 

 

Christian

 

 

 

0 Kudos
Message 5 of 8
(5,975 Views)

Hello Christian,

 

if setting the defer updates to true helps to get attributes in short time, then what is logic behind setting again it to false ?

 

I didnt find application data folder under the path you mentioned.I am using LabVIEW 2011 SP1. My idea is to save configration file with changed parameters everytime when I hit run button and reuse the attributes file it if my reuslts are satisfactory withose set of parameters

 

Regards

Neo

0 Kudos
Message 6 of 8
(5,973 Views)
Solution
Accepted by topic author Neo6

@Neo6 wrote:

 

if setting the defer updates to true helps to get attributes in short time, then what is logic behind setting again it to false ?

If you don't set it to false, you frontpanel won't update.

 

I didnt find application data folder under the path you mentioned.I am using LabVIEW 2011 SP1. My idea is to save configration file with changed parameters everytime when I hit run button and reuse the attributes file it if my reuslts are satisfactory withose set of parameters

The location of the folder is OS dependent. Under Win7 it is C:\user\All Users\Public Documents\National Instruments\NI-IMAQdx\Data

 

You can use IMAQdx Write Attributes.vi to save your attributs to a configuration file

 

 

Regards

Neo


 

Message 7 of 8
(5,969 Views)

Hello Chrisian,

 

Thank you very much for your patience and clarifying my questions. 

 

I have also found some interesting link (simple example) which gives a clear picture of what exactly happening with this property

 

https://decibel.ni.com/content/docs/DOC-4519

 

I hope it will help for people like me struggling with defer panel update.

 

Regards

Neo

 

Message 8 of 8
(5,958 Views)