12-07-2012 07:50 AM
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
Solved! Go to Solution.
12-07-2012 09:18 AM
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
12-10-2012 02:47 AM
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.
12-10-2012 03:07 AM
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.
12-10-2012 03:26 AM
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
12-10-2012 04:34 AM
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
12-10-2012 06:23 AM
@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
12-11-2012 07:40 AM
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