From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Access to a channel value from a MF4 file

Hello,

 

I'm working with DIAdem 2017.

I load a mf4 datafile in the portal with a drag and drop method. The data plugin I used is the one from the website 1.3.0.7307.

When the channel appears in the Data portal it has a yellow A? what does this letter mean?

When I try to read the first value of the channel A with the both following syntax:

- Msgbox Data.Root.ChannelGroups(1).Channels("ChannelA").Values(1)
- Msgbox Data.GetChannel("Group_1/ChannelA").Values(1),

the msgbox is empty in both cases.

 

I do not understand with this syntax is not working because I used to use it for mdf3 file without any issue.

 

Thanks for your help.

 

Regards,

 

Xavier

 

0 Kudos
Message 1 of 4
(2,171 Views)

I forgot to put a print screen of the data portal in my previous message. See attachment.

 

0 Kudos
Message 2 of 4
(2,169 Views)

I forgot to put a print screen of the data portal in my previous message. See attachment.

 

Download All
0 Kudos
Message 3 of 4
(2,169 Views)

Hey Xavrocg, 

 

I tried with Test1.MF4 (in the .zip attached) and used 

 

Dim oMyChn
Set oMyChn = Data.GetChannel("[1]/[2]")
Call MsgBoxDisp (oMyChn.Values(1))

 

For this I get the correct output in my message box.

 

Are you able to provide a file to test with? Or try with the Test1.Mf4 or the above code to see if you can get this working?


Let us know how you get on, 

Rebecca

0 Kudos
Message 4 of 4
(2,101 Views)