DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Programatically select Multiple Channel

I am using LabVIEW 7.1, Diadem 9.1.

1)
I have created one Report layout. In which I will have one sheet with 2 2D - Graphs on that. I want to pragamatically set multiple channels for both the graphs. Using the script I could able to set only one channel to the graph.

Please guide me how could I set multiple channels? (Attached Report Layout and Script File, Both uses Example.tdm)


2)
I want to call this script file from the LabVIEW and want to pass channel names as parameters. How could I do it?

Thnaks.
0 Kudos
Message 1 of 4
(3,734 Views)
Hi LabVIEW_Vish,

It sounds like what you really want is the new DIAdem Report Express VI. Give this a try, and if you still have questions about configuring a DIAdem report from LabVIEW, let us know.

Brad Turpin
DIAdem Product Support Engineer
Naional Instruments
0 Kudos
Message 2 of 4
(3,723 Views)
Hi Brad,
Thanks for the reply and support files.

I saw example programs you sent, but in all this VIs, user passes signal data directly to the express VIs. In my case, I have one file containing all the datas of different channels. This file will be loaded in Diadem. The file will contain about 30 channels. Out of these 30 channels I need to dispaly only user selected (max 10) channels in the graph. I will have channel names. Can you let me know how I could do this.

2) How could I set X and Y scaling of graph?

Regards,
Vishal.
0 Kudos
Message 3 of 4
(3,718 Views)
Hi Vishal.,

You have a couple of options if what you want to do is transfer a list of desired channel names from LabVIEW to DIAdem. The first option is to write that list into a file and tell DIAdem to read it. There are plenty of different ways of doing this too. The second option is to dynamically send the array of strings to a new DIAdem text channel. The third option is to dynamically send the array of strings to a DIAdem string array.

Any of these options will work fine, and it's really personal preference which you choose. As of DIAdem 9.1, its OLE Automation Server has no dedicated method to pass either a text channel or a string array with one pointer. So you either provide the values one-by-one to a new channel or new DIAdem string array, or you use file I/O. Below you will find an example of sending values one-by-one to a DIAdem channel. This is not a good method for very long channels (>> 1000 rows), but it should be adequate for your described needs.

Regards,
Brad Turpin
DIAdem Product Engineer
National Instruments
0 Kudos
Message 4 of 4
(3,692 Views)