Quantcast
Channel: DIAdem topics
Viewing all 3197 articles
Browse latest View live

Delete data from a channel after a value is encountered

$
0
0

Hello,

 

I'm trying to delete data in a channel after a tigger value is encountered. I know the ChnAreaDel or DataBlDel function can do this, but it seems they delete all data prior to the trigger value.

 

So, is there another function with this capability?

 

Thanks,


Create a hierarchy in ASAM ODS Server

$
0
0

Hello,

 

I followed the instructions in the white paper "Reorganize Your Data and Hierarchy with NI DIAdem" using a script provided by you. However, when I export a client configuration, I cannot use this hierarchy script in the client I import the configuration. It seems to not recognize the NI ASAM Server.

 

Can you please help me with this?

Is there a way I can resort the dataportal alphabetically?

$
0
0
So I do a huge list of calculations and creating new channels. I want to be able to resort the list of channels in the group 1 only, alphabetically, at the end of my file. Any ideas on how I could do that?

Error -6219 DDC_MaximumNumberOfDataValuesExceeded

$
0
0

Hi,

I run a program that uses libdbc lib.

On some machines I get an error DDC_MaximumNumberOfDataValuesExceeded from DDC_AppendDataValues call, after few hours of run, appending 25,000 doubles every second.

On other machines I can run 8 hours and more, appending 50,000 doubles every second, with no problem.

What is the limit of the number of data values per channel? does it depened on the machine memory?

 

Thanks,

Hadas

Call ChnPeakDetect, finds "wrong" local peaks

$
0
0

Hi,

 

I am using the following function on a measured "step"-function (values rise to a peak, then fall exponentially down to a certain level, then again rise to a peak and to a higher level and so on...):

Call ChnPeakDetect(Data.Root.ChannelGroups(1).Channels("Noname"),Data.Root.ChannelGroups(1).Channels("Noname_1"),"ChnY/Pos","ChnX/Ampl", "Peaks", 0, 3500)

I got 60000 values in the channel, with the peaks after each 5000 to 10000 values. 

 

But even with a threshold, Diadem gives me the wrong peaks, the number is correct, but the peaks are to low. Does the function give me some average-values? When I decrease the number of values (from 3500 to 3000) I get a little bit higher values.

 

What do I have to change or what did I wrong? Is it possible to get the max. local peaks in this way? I also tried "ChnPeakFind" but it didn't work out for me so far.

 

Thank you for you help!

C++ API for DIAdem DAT Format

$
0
0

Hi,

I'm having a couple of DIAdem DAT Files, which I need to parse with C++.

I came across the TDM C DLL which is usable in C++. According to the documentation it is only possible to open tdm and tdms files with the library.

 

Is there an API for the DAT Format (predecessor of TDM) as well?

 

Best regards

Frank

Create ASAM ODS Hierarchy

$
0
0

I'm trying to configure an ASAM ODS server. I already create the server, export the configuration and installed into the client computer. Then I'm able to connect from a client computer to the server but when i try to execute the script for hierarchy This does not work. My understanding from another forums is that the script "main.vbs" for create the custom hierarchy has to be run in DIAdem 2012 (I'm running with 2012 SP1 and is still not working). 

 

The first thing that I notice is that after the conection the icons are not the same in the ASAM interface (NAVIGATOR) and then when I execute the "main.vbs" and "CreateASAMModelHierarchy.SUC" getting the attached error.

 

 

 

Can you please help me with this issue?

 

IsoSurface

$
0
0

Hello,

As far as I know its not possible to plot an IsoSurface in DIAdem, is anybody able to advise me otherwise please? I would be delighted to hear it is possible.  

Thanks,

Martin


How to convert MATLAB program to Diadem script

$
0
0

I'm fairly new to Diadem and am trying to convert this MATLAB program to a Diadem script.  Can Diadem handle array manipulations like this?  If so, how would I go about making the conversion of this program to be able to run in Diadem?

 

thanks for any insight!

Open *.MAT file

$
0
0

Hello,

 

For some reason I cannot open a matlab file.  The file has been ftp'd and is called "Failed MAT file.zip"

 

I can open other .mat files just not this particular one.  I am using DIadem 2012 SP1. 

 

When I load the data into the data portal it says loading the file "file name" has failed for all the loading methods (DataPlugin) linked to this file type. No DataPlugin assigned for this type.

 

When I assign the plugin to open MatLab file I get another error stating it cannot open the file with the loader "MatLab"

 

Any ideas?

 

 

 

Thanks

Time correction

$
0
0

I am looking for some help on a Time channel issue.  My problem is that when we record data through the afternoon 12:00a to 1:00 pm Diadem does not display it correctly.  I am wondering if we could take the current URI and add to it the ablity to correct the time channel to 24 hr format.  I have multiple users that run this URI and It would be helpful if I could simply make the correction in the code and not have to change multiple users formats in Diadem to read the 24 hr format.  Is that possible to do?  So instead of it going from 12:59:59.9999 to 1:00:00.0000 it would go to 13:00:00.0000.  If I can not add the code to the URI to correct it on the loading of the file if that is an issue then how would I do that in general with code?

 

Unfortunetly I do not currently have a log to send you for testing.  I will 

Debugger doesn't work with Diadem 2012SP1b version 64bit Win7

$
0
0

I downloaded the latest version of the MS Script Debugger. (http://www.microsoft.com/en-us/download/details.aspx?id=22185)

 

When I try to start it in Diadem a message appears: "The software is not able to work with the recent version of the Microsoft-Debugger 1,0,0,7234. Script will be started in normal mode."

 

Diadem Version: 12.0.1f5436 SP 1b

 

Is there any solution for this problem?

 

cursor x1 not returning timestamp

$
0
0

I need to write a script that allows the user to perform an operation on a certain portion of a waveform that has time plotted on the X axis. I am using the frame cursor to allow the user to select a portion of the waveform.  I then retreive the Y1, Y2, X1, and X2 values of the cursor in order to calculate the points in the waveform I am interested in.  The Y1 and Y2 data return what I would expect, but the X1 and X2 does not.

 

When I look at the cursor X1 and DX values on the view screen it shows the time stamps I would expect. When I try to retrieve the X1 and X2 values from the cursor in the script it gives me numbers that aren't timestamps. I tried to convert them into timestamps, but they generate an overflow error when I try. Also IsDate() tells me they are not convertable.  I don't have any idea what these number are supposed to represent.

 

What are the X1 and X2 values that are being returned if they are not X-axis (time stamp) values?

 

Is there some other way to get the user specified portion of my data table that I am not aware of?

remove cursor with VBScript

$
0
0

I need to be able to add and remove a cursor from a 2D graph using a button on a dialog box. I figured out how to display a cursor, but I can't find a way to remove it.

 

Is there is way to use VBScript to remove a cursor from a graph?

nested functions

$
0
0

Hello I am trying to make a report with different signals on the y axis and I created a curve coordinate to show selected points.

 

 

I am not sure how to make it show the current point value of all Y signals plotted while the curve coordinate is moved by the user. I know I can do it pragmatically once the report is loaded but I don't think report has event signaling when the coordinate is moved.

 

I tried to use the following formula in the text editor and it works separately but when I try to nest them both to extract the index of the x value and match it with the y value, it throws an error. Which brings me to my question...

 

Is it possibly to nest these two functions ChD and PNo?

Is it possible to call an outside function to be executed from the text editor?

Is there a work around?

 

I will appreciate your help..

 

Here is the nested function

 

This works...

@@PNO("[12]/[1]",CurrXValue)@@
@@ChD(1,"[12]/[2]")@@

 

This does not...

 

@@ChD((PNO("[12]/[1]",CurrXValue)),"[12]/[2]")@@


change report legend label waveform name

$
0
0

I am automatically generating a report using VBScript. Everything works OK, except the legend label for one of my waveforms. For one waveform I want to use the channel group name instead of the channel name. For the other one, I want the channel name, which is what it seems to use by default.

 

How do I change the waveform name displayed in the legend using VBScript?

Value from a function into a sub class

$
0
0

Hello,

 

I Have a value from a function which I want into a Sub class.

 

Note: Text BlaBla are instead for program text)

 

Function yellow

Text blabla

Text Blabla

 strSessionCar=4  

End Function

 

 

Sub apple

Text Blabla

 strSessionCar=4  (here i want to have the value from the "Function yellow")

End Sub

 

/

Thanks

 

 

 

 

Display progress bar while using Calculate function

$
0
0

Hello,

 

For my project, I have to convert the raw values of a signal to physical values.

To do this, I'm using the "Calculate" function.

Because I have a lot of data, it takes time and the user doesn't know if it works or not.

 

The first thing I did, is to add Dialog.BeginWaitCursor and Dialog.EndWaitCursor that works well but is not sufficient.

To display activity, I would like to display a progress bar created before calling "Calculate" and stopped after that.

The progress bar doesn't need to display the real progress but only display a progress moving even if it starts again from zeor until the end of the calculation.

 

I read some information about progress on this forum but it was done on selfmade function and not calling DIAdem functions.

That's why it is not usefull for me.

 

I don't know how to do that using vbs.

Is it possible to create something like that ?

 

The best solution would be to get the progress of the "Calculate" function to know where it is but the function is not created to do this.

 

Thanks for any ideas,

Best Regards,

 

CFOE

Is DIAdem script with Extended Classification functionality of DIAdem Professional executable by DIAdem Base?

$
0
0

The Professional license adds 3D model data mapping and Extended Classification functionality to DIAdem. If I make a script that uses the 3D model data mapping functionality in DIAdem Professional it is possible to use this same script on a PC with only DIAdem Base (according to http://sine.ni.com/ds/app/doc/p/lang/nl/id/ds-263)

 

Is this also true for the Extended Classification functionality? Is it possible to make a script with DIAdem Professional and execute this same script on a PC with only DIAdem Base to generate a report?

 

Thanks,

Roger

ChnLinGenImp not converting units value

$
0
0

Hello,

I am using the command ChnLinGenImp in a channel creation such as below.

--> Call ChnLinGenImp(SpecChannelName,length,SpecNumber*1,0,Unit) 

 

The issue that I am running into is, I run a convert unit's script that converts the units if they are incorrect.  However the convert portion does not convert the IMP channel becuase it is an IMP channel.  Is there anyway around that besides going to ChnLinGen command?

 

 

Viewing all 3197 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>