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 Idea Exchange

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

When working in DIAdem SCRIPT, it is often necessary to work on more than one file at once. The way this is implemented at the moment is with tabs:

 

script before.png

 

However, it can be quite tedious to switch back and forth between 2 scripts for things like copy/pasting, comparing code or simply editing code on 2 files concurrently.

My suggestion would be for a SCRIPT editor with split screen functionality, roughly like this:

 

script after.png

 

With many users working with widescreens today, this would better make use of screen real-estate.

 

 

Currently you can only search for one channel at the same time with the advanced search as shown in the first graphic. if you select two channels at once, no search results will be found.
Diadem Bsp1.PNG
 

It would be very helpful if you could search for several channels with different characteristics at once.

for example, one could look for measurements that contain a first channel with a particular property and at the same time contain a second channel with a different property. It would also be helpful if the different properties of the search were linked by setting the brackets.

here's an example

Diadem Bsp2.PNG

such a function would greatly facilitate the evaluation of large data volumes.
 
 
best regards
Simon

We are very happy about the support of Python as additional language in DIAdem script.

It would be a really nice feature if the DIAdem Python module would also be available in Python scripts that are running not within DIAdem script but on a machine with valid DIAdem license.
This would allow to create Python applications that use DIAdem commands but do not require the user to explicitly open DIAdem and load a Python script and thus improve usability.
Another use case would be an improved communication between Matlab and DIAdem by calling Python code including DIAdem commands from Matlab as executing Python code from Matlab is possible.

Changing the order of opened scripts (tabs) manually would be awesome feature. Now its a bit frustrating when u got scripts in different folders and you would like to change the order when you work on more than one script.

Python Virtual environments allow better control of the dependency versions by project, that I find required. Mostly this is so that the dependencies/package versions are the same between the code as developed, and the code as used by users.

 

Would like NI to consider adjustments to the current python system so that it can use a virtual Environment. Some to consider, Venv. pyenv, VirtualEnv, PipEnv.

Hello everybody,
My suggestion concern the SCRIPT tab. I think that it is necessary to implement a real automatic indentation function as you can find in most of Integrated Development Environment.
Indeed, when you write a VBS code, you have to structure your code manually while DIAdem could structure it automatically.
For instance, after an "if" and until "end if" DIAdem could insert a tabulation.


 

Thomas77, 

It should be possible to use the code completion functionality for classes one has written, even when the class is in another VBS file and included by “ScriptInclude”. Now that competion feature works only if the class is defined within the same VBS file as one writes the code which uses this class. That would make the developers live much easier, I am sure I am not the only one who writes code which is distributed over several files Smiley Wink

I'd like an option for the tabs on the SUD dialog control, TabPageCtrl, to allow vertical placement, so the tabs would be on the left (or right) side of the tab control.  

I was fiddling with some DIADem Scripts and manage to crash DIADem twice, unfortunatly my VIEW, REPORTS and SCRIPTS weren't auto-saved.

 

That is kinda bad, so please add an autosave option.

 

Ton

My idea is to add the capability of word highlighting in scripts, much like most other programmers editors, this facilitates easy searching throughout a script and is an alternate way of finding a search match other than repeated F3 presses.

 

Word Highlight

I'd like to have the "color palette" object in a DIAdem SUD dialog?

 

It's a great way to choose colors!

Rather than asking for a change to the "Repeat Marker" to plot all the points (we'd prefer "Repeat Marker" in DIAdem VIEW to be "Every N Points" where N = 1 rather than "Up to N Points" where N = 100), I think it would be great if we could have a configurable DIAdem default set of VIEW items that could be saved via usercommand, script, or a file configuration so we could conveniently spread it to our users.

This could include colors, points and/or lines, "Repeat Markers" configuration, line width/size/fill.

 

The "Repeat Markers" option is the most important to us because we have had users in the past who didn't realize that they were only seeing 100 points of their data, which can be a very bad thing (for example if you've turned off curve color and are looking for outliers in 150 points of data).  On the other hand, I can understand not wanting to plot 2 billion points on a graph, hence the ability for an administrative body (or individual users) to configure the graph defaults.

 

-Josh

I was using an “assignment” channel as the “ChnEventTrueChn” for “ChnEventCreateFilteredTrueChn” and was really hoping the result channel would also be an assignment channel, but no, it’s not.  

 

My original assignment channel is matched up nicely with some text values, so it would be really helpful to have those values “carry” if I execute a function or calculation on the numeric channel.

 

FYI, Brad Turpin provided a workaround until this is implemented that works just fine for me:

Clone your assignment channel and use the clone for the ResultChannel channel in the “ChnEventCreateFilteredTrueChn”  function.

 

Set OldGroup = Data.Root.ChannelGroups(1)

Set NewGroup = Data.Root.ChannelGroups(2)

Set OldAssignChannel = OldGroup.Channels(1)

Set NewAssignChannel = NewGroup.Channels.AddChannel(OldAssignChannel)

Call ChnEventCreateFilteredTrueChn(NewAssignChannel, ChnEventList, OldAssignChannel, ChnEventFalseValue)

 

 

I'd like more events in DIAdem VIEW, similar to REPORT.  The one I'd like most is: OnLayoutLoaded

When entering a bult-in DIAdem command you get a tooltip hint about which command input parameter you are at. It would be great to implement code completion especially for the several enumeration variables where you need to get the script term right.

E.g. ChnOffset - When entering the value for ChnOffsetMode you should be offered "free offset", "first value offset", etc. in a pick list.

Simplify how to create a DataPlugin. I should be able to define a binary layout like a telemetry stream and directly assign channels.

 

For example, A new GUI would be created. I define the telemetry stream which has three floating point numbers then an integer, repeat. Assign channel names Volts, Amps, Power Out, and Setting. Perhaps set the built-in properties. Press a button the plug in is automatically created.

Most dialog editors I've used have a "timer" function of sorts, and I would like the DIAdem SUD dialog editor to have a "timer" function.  This would allow an event to happen at a specified interval (example 1 second) 

 

The simplest case would be to simply display the current date/time on a user dialog, and this is not possible right now without using worker objects, and I feel silly using a worker object just as a time-keeper! I would use this function often.

 

 

In tabbed environments (web browsers, dev environments, etc.) reordering my tabs helps me keep things organized and improves my workflow.  I'd like to have the ability to reorder the tabs in the script editor.

I would like a tool that would help identify noise spikes in my data, so that they may be set to NO VALUE or carefully interpolated.  In the attached example, I have two torque spikes in my data that are significantly higher than the mean.  If I were only looking at one file, I would simply "Set Flags" in VIEW, then "Flags: Remove Data Points". However, I am reviewing dozens of files with several channels of interest.  

 

Peak data points are the most damaging to the components under test, so it is important that we keep the real events and reject the noise.  

 

Concerns with other peak / spike removal options:

  • Manual Set Flags -> Flags:  Remove Data Points; time required
  • ANALYSIS -> Event Search -> Event = Window -> Upper Limit:  In other data files, I have real events with values higher than the noise in this data file.  
  • ANALYSIS -> Digital Filters or Smoothing:  This will change all of the data - it will likely narrow the peak-to-peak of my other data and interpolate my noise spikes, adding damage that is not actually real.  I only want to remove a few data points in the channel data. 

nCode Glyphworks has a nice Spike Detection Tool that uses 6 available algorithms to detect spikes.  Once it identifies them, it allows the user to see them, prior to performing any actions - this is important, because it allows the user to identify if they are real or noise, prior to taking action.  

Download All

I’d like to be able to write a script that would tell me which columns a user has selected in a VIEW channel table (for example, the blue columns shown in the attached image).