From 08:00 PM CDT Friday, August 12 - 01:00 PM CDT Saturday, August 13, ni.com will be undergoing 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: 

Diadem script to concatenate

Hi All,

 

I am new to Diadem and I am trying to do the following but am not finding a lot of resources online. In my data portal, I have imported different groups of data which have the same channels. I would like to create a script that combines them all in a specific way. Channels with the same name merge together. As you can see, I am trying to also create variables for the number of samples which is the number of indexes for a letter and the number of groups. For this example, the number of samples should be 3 because it goes from a to a1 to a2. The number of groups should also equal 3 because there's 3 groups in the portal. I'd like to automate this for much larger data sets in the portal.

 

 

af90_0-1628544199397.png

 

0 Kudos
Message 1 of 6
(645 Views)

Hello af90,

 

You can use the Concatenate Channels function for this. To get the script commands for this you can use the recording mode in SCRIPT or press the keys CTRL+SHIFT+C in the dialog of the function in ANALYSIS.

 

Walter_Rick_0-1628578277169.png

 

Walter_Rick_1-1628578301100.png

 

There is also an example:

Walter_Rick_2-1628578339840.png

 

Greetings

Walter

 

 

 

 

0 Kudos
Message 2 of 6
(614 Views)

Hi Walter,

 

That works very easily. Thank you very much. Now I know the basic functions because it created the code for me.

 

0 Kudos
Message 3 of 6
(609 Views)

This concatenate option appears to be hidden in our Diadem 2017 advanced version. Is there a way to expand the options in the analysis tabs? The tutorial works, we just don't see the analysis options as shown. Thanks

 

TMC12_0-1642601798893.pngTMC12_1-1642601834251.png

 

0 Kudos
Message 4 of 6
(379 Views)

Hello TMC12,

 

The first DIAdem version with the concatenate function is DIAdem 2019 SP1.

 

Greetings

Walter

0 Kudos
Message 5 of 6
(373 Views)

Thank you for your time.

0 Kudos
Message 6 of 6
(370 Views)