Jump to content

VS Access to the user created fields in the Lighting Device


Recommended Posts

User creation of new OIP parameters is a unique feature of the "Lighting Device" PIO.  However...


It looks like VS cannot assign values to user created fields in the Lighting Device.  I created to new field, “Sam Field 1”  and “Sam Field 2”.  I then ran the following script, and it failed to assign the specified value.

 

PROCEDURE TestUserFieldAssignment;

VAR
    AssignVal : REAL;
    AssignStr : STRING;
    Fixture : HANDLE;
    
BEGIN
    Fixture := FSActLayer;
    AssignVal := 4359;
    AssignStr := Num2StrF(AssignVal);
    SetRField(Fixture, 'Lighting Device', 'Sam Field 2',AssignStr);
END;
RUN(TestUserFieldAssignment);

Is there a way for VS to assign values to user created fields in the Lighting Device?

 

Attached is an example file.

User_Field_Test.vwx

Link to comment
  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...