# GEVServer - change access mode depending on grab status

**URL:** https://forum.commonvisionblox.com/t/gevserver-change-access-mode-depending-on-grab-status/1849
**Category:** Tools
**Tags:** gevserver
**Created:** [December 8, 2022, 10:11am UTC](https://forum.commonvisionblox.com/t/gevserver-change-access-mode-depending-on-grab-status/1849 "2022-12-08T10:11:03Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![ABaier](https://avatars.discourse-cdn.com/v4/letter/a/0ea827/32.png) [@ABaier](https://forum.commonvisionblox.com/u/ABaier)
#### Post date: [December 8, 2022, 10:11am UTC](https://forum.commonvisionblox.com/t/gevserver-change-access-mode-depending-on-grab-status/1849/1 "2022-12-08T10:11:03Z")

</div>

What is the correct method of changing the access mode (read only vs read write) depending upon say whether the GEV Server is in grab mode or not.

The obvious way is to change the node’s access mode from AM\_RW to AM\_RO, but that does not appear to work. I am sure there is a better way!

---

<div class="post-metadata">

### Author: ![Chris](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.commonvisionblox.com/chris/32/1154_2.png) [@Chris](https://forum.commonvisionblox.com/u/Chris)
#### Post date: [December 8, 2022, 2:36pm UTC](https://forum.commonvisionblox.com/t/gevserver-change-access-mode-depending-on-grab-status/1849/2 "2022-12-08T14:36:30Z")

</div>

Hi @ABaier ,

could it be, that this question is related to this one:  
[https://forum.commonvisionblox.com/t/gevserver-changing-image-length/1850/4](https://forum.commonvisionblox.com/t/gevserver-changing-image-length/1850/4)

What I understand is: You want to change the ImagerLength node (or some similar Node) but you cant, as the Node ist currently ReadOnly.  
The reason it is ReadOnly is very likely because you have an active Grab going on.  
So the only way to change the desired Node actually is to stop the Grab bevore trying to change it.

---

<div class="post-metadata">

### Author: ![ABaier](https://avatars.discourse-cdn.com/v4/letter/a/0ea827/32.png) [@ABaier](https://forum.commonvisionblox.com/u/ABaier)
#### Post date: [December 8, 2022, 2:44pm UTC](https://forum.commonvisionblox.com/t/gevserver-change-access-mode-depending-on-grab-status/1849/3 "2022-12-08T14:44:19Z")

</div>

Hi @Chris

This is the same project, but not the same question.

How can you change a parameter node’s access mode dependent on certain conditions?

For example, manually set a node’s access to ReadOnly while Grab is active, then set it to Read/Write when Grab is not active.

---

<div class="post-metadata">

### Author: ![Chris](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.commonvisionblox.com/chris/32/1154_2.png) [@Chris](https://forum.commonvisionblox.com/u/Chris)
#### Post date: [December 8, 2022, 3:11pm UTC](https://forum.commonvisionblox.com/t/gevserver-change-access-mode-depending-on-grab-status/1849/4 "2022-12-08T15:11:15Z")

</div>

Hi @ABaier ,

you can set the Accessmode like this:

[https://help.commonvisionblox.com/NextGen/14.0/cvbpp/dd/de2/class\_cvb\_1\_1\_gev\_server\_1\_1\_float\_reg\_node.html#af23e819be062006684ba406c9b3c20b7](https://help.commonvisionblox.com/NextGen/14.0/cvbpp/dd/de2/class_cvb_1_1_gev_server_1_1_float_reg_node.html#af23e819be062006684ba406c9b3c20b7)

example: SetImposedAccessMode(Cvb::GenApi::AccessMode::ReadWrite);
