LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I append a new custom property to an existing Channel within a TDM File?

I am trying to append a custom property to an existing Channel within a Channel Group using the Storage VIs. I keep getting an error that says "-2550 This property does not exist." I am able to change existing properties with this method, but not add new properties. Thank you in advance.
0 Kudos
Message 1 of 5
(2,431 Views)
I would like to direct you to this document on our web site:


There you can find the following note:
"In LabVIEW the storage VIs are found on the file I/O palette; however, if you intend to use the custom properties VI shown above in Figure 4, you find this VI in Storage.llb found at C:\Program Files\National Instruments\LabVIEW 7.1\vi.lib\platform\storage, the VIs name is _saveProperty.vi."

Scott Y
NI
0 Kudos
Message 2 of 5
(2,412 Views)
I am using that VI. It is working great when I am adding the Channel for the first time. The problem is if I have created a Channel at a previous time, then later I run some queries to find this Channel's refnum, then I try to add another custom property, I get an error that says the property does not exist. this is where the problem lies. How do I add a custom property to and previously defined Channel?

Thank you,
Chris
0 Kudos
Message 3 of 5
(2,408 Views)
Hi Chris,

Would it be possible for your to post a small example that demonstrates this error?

Thank you,

Scott Y
NI
0 Kudos
Message 4 of 5
(2,395 Views)
Does anyone have any example code that can show this working? Whatever I seem to try, I cannot get LabVIEW to add cutom properties to either file (what I want to do), channel groups or channels.
0 Kudos
Message 5 of 5
(2,293 Views)