DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

How to overwrite channels in diadem 9.0

Wie kann man in Diadem 9.0 Kanäle manuell oder per VBS-skript überschreiben?
0 Kudos
Message 1 of 5
(4,082 Views)
Hi WBH,

I fear that I do not fully understand your question. If you drag the channels you're interested in from the Data Portal into a table in the new VIEW panel, you will see the data much like it was displayed in the old DATA "Channel Contents" tab. At this point you can double-click on one of the table cells and type in a different value, thus interactively overwriting values of an existing channel.

You can do the same thing programmatically without having to create a VIEW table. In fact, nothing has changed programmatically-- the ChD() and ChDX() functions still work just like they used to. In addition to the DIAdem 8.x style channel number/name addressing

[ ChDX(50, 12) ] or [ ChD(50, "Revs") ]

you now also have the option of addressing cha
nnels by their group name and channel name

[ ChD(50, "Engine Measurements/Revs") ]

Note that the ChDX() command can ONLY take channel numbers, while the ChD() command can take either channel numbers, channel names, or the new Group/Channel names referencing. Also note that the ChDX() function is MUCH faster.

Let me know if that did not answer your question,
Brad Turpin
DIAdem Product Support Engineer
National Instruments
0 Kudos
Message 2 of 5
(4,082 Views)
Hi,

Sorry, my question was not precise. In my script in Diadem 8.1 I delete with DataAreaDel a selected area and then I overwrite this area with DataLoadSel. It is the same when you select rows in "Channel Contents", delete them and overwrite with "Insert from file" in old DATA. I would like that the inserted channels have the same channel number like deleted one.


Thanks
0 Kudos
Message 3 of 5
(4,082 Views)
Hi WBH,

I now understand what you're asking, but I'm perplexed that the DataLoadSel() function appended data from a data file into a specific row of an existing channel. Every time I have ever used the DataLoadSel() function, in DIAdem 8 or 9, I get new data channels. In order to get the behavior you describe, I have always loaded the channels first with DataLoadSel(), then appended the channels onto the bottom of an existing channel with ChnConcat() or DataAreaAppend(). There are caveots with this approach regarding the maximum and current row size of the receiving channel, but no showstoppers.

I would be very interested to see the code you have that does this with the DataLoadSel() command. I can also send you code that concatenate
s channels from multiple files underneath each other, if you wish, as an example of what I'm talking about.

Regards,
Brad Turpin
DIAdem Product Support Engineer
National Instruments
0 Kudos
Message 4 of 5
(4,082 Views)
Hi,

Sorry, I had a mistake. Of course, I mean "columns" not rows. The script that I send you overwrites chnannels two and three from file1 with same channels from file2. It works in Diadem 8.1 but not in 9.0.

Thanks
0 Kudos
Message 5 of 5
(4,082 Views)