DIAdem Idea Exchange

Community Browser
cancel
Showing results for 
Search instead for 
Did you mean: 
Post an idea

I want to be able to programmatically (vbScript) resize / hide Navigator panel windows for properties and channel preview.  See attachment.  This is an important DIAdem customization feature.  

 

 

Need a script command to disable the display of the local file system in the Navigator Browser window.  This can be done through the user interface as shown in the attached image, but an equivalent script command is not published.  Reasons:

 

1) Keep the user focused on using Navigator search within indexed search areas.

2) For custom applications powered by DIAdem

 

 

Ref: https://forums.ni.com/t5/DIAdem/Programmatically-hide-the-display-of-local-file-system/m-p/4184846?profile.language=en#M28896

 

 

Many functions in DIAdem seem to be biased towards waveform channels, ignoring the classical ways of working with standalone numeric channels.

 

The ChnResampleFreqBased function returns waveforms when I think it should have the option to return standard numeric channels. My workaround is not to use it at all and to use the channel generation and linear mapping functions instead.

 

This obviates the need to reformat channels (wherein you also get a new X channel that you might not have wanted) and is less code. But why have to use two functions to get the same output that could have come from the one resampling function were it to have the option to provide numeric channels?

 

Regards.

Today I was trying to find the SCRIPT command for "Converting Numeric Channels into XY-Channels" and could not easily find it or record a script to find it. So two requests here: (1) when recording a script, output the script or have a message that says 'sorry!' and (2) update the help with the correct script functions, similar to the other channel conversion functions.

 

I tried to record a script, executing the ANALYSIS function "Channel Functions -> Channels <-> XY Channels", but nothing showed up in the recorded script.  

 

Looking up the help reference for "Channels <-> XY-Channels" only shows how to display the dialog, Call SUDDlgShow("Main", ResourceDrv & "AnaChnToXYChn")


All of the other "channel conversion" help documents show how to do this in SCRIPT, for example, "Numeric Channels <-> Complex Channels" shows "

ChnConvertNumericToComplex", similar for the Numeric to Time, Waveform, etc. My proposal is below:

 

Script Call:

Call SUDDlgShow("Main", ResourceDrv & "AnaChnToXYChn")

 

Set Group = Data.Root.ChannelGroups(1)

Set XChannel = Group.Channels(1)

Set YChannel = Group.Channels(2)

Set YChannel.XRelation = XChannel


 

When I am loading multiple same-named channels into the Data Portal from a DataFinder Search Results list (after 'searching for channels'), if I load these channels into the data portal, by default they all load into the 'default' group, and because they have the same name, they are re-named inside the Data Portal with suffix numbers.

 

I think it would be better to create a new group in the Data Portal with the name of the group the channels belong to in their respective files, or at least provide this option.

In the legend of a 2D axis on the View tab, there is a property titled "Assignments".  Currently, the value it shows is only the default value of an assignment channel.  It would be really handy if the value displayed for this legend property would be the assignment value that corresponds the current Y-value of the cursor.  


When exporting plots of measurement analysis, unfortunately the reader can only see what was plotted and is not able to zoom / scroll through 2D plots or rotate 3D plots. Matlab .fig figures go into that direction but can only be used with Matlab. 

I know there is a way to import 3D objects into a PDF,  but I haven't used this so far. I've heard of the possibility to integrate Matlab plots into interactive PDFs - maybe s.th. like this can be made possible with DIAdem?   

 

I think a document with interactively viewable plots would be a great advantage in discussing test results, and it would be a big advantage for NI DIAdem if the tool would be able to export plots / documents in such a way. Maybe PDF is an option - maybe there are other/better formats for this. 

I have not found a straight forward way to label axes ticks with text instead of numbers, so I would suggest this as a feature in a new release. At the moment we are working with text fields which is a very cumbersome way and not very user-friendly when editing the report.

 

It would be very nice, if there would be a way to implement text labeling for x, y and z axis.

 

Example: I have a state channel that contains values between 2 and 8. This channel is an assignment channel, therefore I could create a corresponding text channel containing the status description for each value. This way, it would be possible to display a table but as the channel has 3600 values, this wouldn't be very readable and a 2D plot of the state events would be more helpful (e.g. state changing from off to passive etc.) 

 

One could for example expand the axis scaling settings where a tick channel can already be assigned by a text + index or an assignment channel assignment.

 

Today I found a way of combining a bar plot and a line plot to achieve this goal, which still isn't a nice way: 

- Bar plot:  X channel is a numerical channel only containing NoValues [Nv,Nv,Nv,Nv,Nv,Nv,Nv,Nv] (we don't want to see bars), Y channel is a string channel which contains the Y-Axis labeling we want [ -,off,-,on,-,passive,-,idle] (we want our labels on Y-Index 2,4,6,8 - that's why the string channel has "empty values") 

- Line plot: X channel is the time channel, Y channel is the state channel, containing values of the set (2,4,6,8)

 

DIAdem_YAxis-Textlabeling.png

There is only one way to edit the name of the DAT files in DIAdem DAC given in this menu below:

Gutih5941_0-1613383565303.png


The customer would like to have an option that allows him to specify the name of the saved file after the VISUAL measurement is running. This is at the moment not possible with the options and the blocks set in DIAdem DAC

Errors occuring in Diadem user commands result in all running scripts aborting without any clear sign of the reason. The only means to find out is the log file in Diadem Script.

Support says this in a feature, as user commands are supposed to handle events and there should be no (frequent) error messages.

On the other side, user commands are the ideal place to have a user functions library as it is accessible from everywhere including dialogs. With ScriptInclude command such a library has to be included at every script start and possibly several times as dialogs have a separate script environment.

 

Therefore I would welcome an option to turn on error messages / beep when there is an error in user commands.

The current behaviour of silent abortion of any script is quite confusing, especially for people that are only applying scripts for evaluation.

Please bring back the "Help to Script File"-Button in DAC-Script Dialog:

grafik.png

 

We are using different scipts with multiple channels  and it was a great help to refer to the script documentation by a simle mouse click.

 

This was a great help to document our script functionalities and help to the users how to select a specific channel.