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

DIATxObj.dll error when loading .TDR

$
0
0

For some reason loading this .TDR template sometimes, but not always, throws the bottom error on the command:

 

Call Report.LoadLayout("N:\TeamShares\Data\Software\DIAdem\DIAdem Scripts\NVH\Report Layouts\Twist_v180720_A.TDR")

 

TDRLoadErrors.png

 

 

Then throws the top error on the WndShow() command.

 

The report layout loads fine outside of the script.  It also occasionally loads fine from within the script.  I couldn't find much documentation in the way of what causes that particular error.


New DIAdem 2017 SP1 installation throws "bsrepVariableIsUndefined" error when TDR opened

$
0
0

I keep seeing this error on a new installation of DIAdem 2017 SP1 64 bit on a Windows 7 computer when loading any TDR layout.  I couldn't find any background info on where the "bsrepVariableIsUndefined" gets defined.  The TDR layouts don't cause this error on other DIAdem installations.  Does anyone know what causes this?

 

 

 

.bsrepVariableIsUndefined error 180722.png

Dialog Box Edit Box

$
0
0

I have created a SUD where the user can define the a group index to perform an action on. What I would like to do is change what the default text is in that box, e.g.: "Enter Group Index".

 

Also, I was able to get the text entry in the box centered from left to right, but how can I center top to bottom of the entry box?

Z-axis Unit in Joint Time-Frequency Analysis

$
0
0

Dear All,

could you tell me which unit should be on z-axis in calculated JTFA spectrograms?

My data is time (s) vs. velocity (mm/s).

Thank you in advance.

BR,

Krzysztof 

wshshell issues on windows 10

$
0
0

Hi 

I am developing a script on Diadem 2017 on windows 10 (google cloud vm)

 

This works perfectly if I run it on my laptop (windows 7) within diadem

dim commandfile:commandfile="C:\Diadem\" & filenamesrc & ".bat"
dim command:command="gsutil -m -q   cp """ & gspath & """ C:\FilesToProcess"
WshShell.run(commandfile)

 

However on Windows 10 

I get a message saying it cant find the file (gsutil) (for both exec and run)
If I run it direct from command shell it works

 

Any ideas

Dataplugin Mapping seconds to 1904 to time channel

$
0
0

Hi Group,

 

Working on a Dataplugin, (little rusty at this!)

Try to take a binary file, that has Seconds since 1904 in 64 bit real, and create a Time channel that shows the time in the data portal.

 

Input:

3522074457.314985

Output

8/15/2015 18:00:57.3150 when viewed in portal for time channel format.

 

Function that works just fine, but alas is not available as Dataplugin command!

dim oChn: set oChn = data.root.channelgroups(1).Channels("Time")

ChnNumericToTime(oChn,TTR("1904-01-01 00:00:00 ,0","yyyy-mm-dd hh:mm:ss,ffff",true)

 

What is not clear to me is how to do this conversion from input to output from a dataplugin environment.

 

Any help would be appreciated.

 

Thanks again,

 

Paul

Run my script for all cases

$
0
0

 

Hi,

 

I am new to this program, my very first project. I am doing a script to analyse the data I recorded in a mechanism. I took data for 5 cases: 100 Kg, 200 Kg....

As far as I know I select Recording Mode, and it carries out a script of my actions through one of the cases (100Kg).

 

Now, in order to repeat the same steps recorded in the script I made for 100 Kg, I have to divide the data in 5 different DIAdem files, so that the index of values is the same and the script works for each case.

 

Is there a way to run the script having all 5 data cases in the same file; without having to divide them?

 

Thank you very much,

Esberginia.

Multi order equations apply to channel

$
0
0

Hi Group,

 

I have  a issue that would be create a rather long calculate command, and I was hoping there was a better way!

 

I have multiple channels that I am reading into Portal with a Dataplugin.  So what ever handles the multi order equation, must work inside of a dataplugin.

 

The equations are 14 orders long, and will be applied to all values in a channel.   

The order values are in a double array.

What would be the script that would do this inside of a Dataplugin?

 

Thanks for your help in advance.

 

Paul

Paul


UTF-8 support in DIAdem 15 / DIAdem 15 GIT support

$
0
0

I am working on a DIAdem project and I use the GIT to version my files. It seems DIAdem uses defaultly UTF-16LE encoding, which makes GIT treat the files as binary. So when making commits I don't get any change logs, only that the files differ.

 

So I manually changed all the files to UTF-8. But now the DIAdem behaves strangely:

  • Some letters are not shown correctly now => e.g. '?' gets shown instead of Δ, sometimes weirder letters.
  • When I fix replace this letters in DIAdem the script runs fine and in the reports I get the correct letters.
  • When I close the file and open it afterwards, some letters get destroyed again. (‰ and ° seem to work after the first fix, Δ not)

What do I do wrong? Does DIAdem not fully support UTF-8? If not, how should I version the files using GIT and still have the file comparisons? I tried some suggestions found online, but they did not work for me.

Date Picker

$
0
0

I am updating a SUD from Diadem 2014 to 2017.  I was using the MSComCtl2.DTPicker.2 ActiveX control to provide a calendar selection tool.  It worked well in 2014, but it doesn't work in 2017.  When I try to add an ActiveX control in 2017, I don't see the MSComCtl2.DTPicker.2, nor any other calendar selection tool.  

My computer still has MSComCtl2.DTPicker.2 on it, so I don't understand why I can't add it in Diadem 2017.  

Any suggestions? 

Merge alarms and other Info to scheduled automatic email (including alarm and status Logfile)

$
0
0

Hi,

I am evaluating DIAdem these days.

My task is to keep track of a running test, checking the data for prespecified tolerances and safe a logfile consisting of the test progress and alarms.

I build a small Program using DAC, there is also no problem in sending alarmtexts via email.

 

Here my question:

How can I merge alarms and other textinformation to one single email  - let's call it status report - which will be sent scheduled once a day?

Using DAC is prefered.

Thank's a lot!

Michael

Accessing Max/Min Property Errors

$
0
0

Hello

 

I have run into a really wired situation but I am trying to access the max & min channel properties in a script and I get a null value as a result

 

So I am using the following function to gain access to the channel group in a for loop and it returns a null value after the first iteration of the loop.  However when I use the debugger, the function below return the correct values.

Data.Root.ActiveChannelGroup.Channels(i).Properties.Item("Maximum").Value

or

Data.Root.ActiveChannelGroup.Channels(i).Maximum

 

I am using 2017 SP1

 

Anyone else come across this?

Can run a script from a DAC?

$
0
0

Hello!

I want to run a script when I push a button when "Start Display" it's running. I don't want to run script after or before measurement. 

Can anybody help me?

Change a global variable when DAC running!

$
0
0

Hello!

I want to change a global variable when I push a button when "Start Display" it's running. I don't want to run script after or before measurement.

Can anybody help me?

ChnSmooth doesent create channel

$
0
0

Hello everyone,

 

I hope you can help me with my little Problem, the humongous ammount of helpfull topics I've found so far let me hope.

 

I try to filter some channels by mean and afterwards median. I tried to be efficent/lazy and save a few lines of code.

 

At 1st I filter my origin channel, afterwards remove the original channel and at last I filter the already filtered channel and want to have a new channel with the name of the original channel.

Sub FilterMedianMean(ByVal FilterKanal,ByVal SampleLaenge)
...
KanalName = FilterKanal.Name
...
Call ChnSmooth(FilterKanal,KanalName+"-Filter-Mean",SampleLaenge,"maxNumber","byMeanValue")
Call oKanaele.Remove(KanalName) Call ChnSmooth(KanalName+"-Filter-Mean",KanalName,SampleLaenge,"maxNumber","byMedian")

 But the 2nd channel never gets created.

 

I have no Idea why I can't do it this way. Of course I could change the code and delete the original channel afterwards and just rename the result channel but right now i'm just currious.


Obsolete Command: ChnPropValGet

$
0
0

Hello everybody,

 

I'm looking for values I was able to extract from ChnPropValGet. For being more precise, it's "sourcedatafilepath" and "sourcedatafilename".

 

All I get from Data.Root.Properties is sourceoriginalname resp. name, which corresponds to Data.Root.Name.

 

I have no use for that one - I need my path.

 

Any ideas how to get my path on DIAdem 2017/2018 out of my data in portal?

 

Regards,

Yeti

Unzip for DataPlugin

$
0
0

Hello,

 

I try to manage zip files with the DataFinder. I tried to use the code below, but it didn't work. I always get the message: Type mismatch: 'Unzip'

 

There is only one csv file in the zip file. I am using DIAdem 2017 SP1 and it didn't work with DIAdem 2017 neither.

 

Has someone already had an experience with that?

 

Thank you in advance

Tansu Özel

 

Code:

Sub ReadStore(FileName)Dim TempFolder
  TempFolder = AutoRemove.CreateFolder()Dim FileList
  FileList = Unzip(FileName, TempFolder)Call Root.ImportStore(TempFolder & FileList(0), "my_csv")EndSub

 

Need help with GPI command & function

$
0
0

Hi,everyone.I am learning about how to build a GPI dll. And I am Not familiar with how to create commands.

I have finished some work on commands/step_1 of demos , which has shown as below

// register the name of the command
strcpy_s(commandInfo->szName, "IF2");

// register the name of the function to call
strcpy_s(commandProperties->szProcFctName, "TC2");
commandProperties->cAutoseq = eGPIREGISTER;
commandProperties->nParam = 1;
commandProperties->aParam[0].cParamType = eGPIVARTYPEDOUBLE;
strcpy_s(commandProperties->aParam[0].szParamName, "myResult");

And

GPIEXTERNC void DLLEXPORT  TC2(TGPIDouble out1)
{

out1=10.0;
}

After registration of the dll,When I am trying to call TC2 in Scripts like below ,I get nothing on X.

DIM X
IF2(X)

 

Many thx for any help or hints!!
Best regards ,Q

Diadem 2017 forced save as?

$
0
0

 Whenever I press the new button in any panel and I have unsaved data (Navigator, View, Report) I am presented with the "Save As" dialog and I MUST save the work before I can continue.  I am not given a choice to not save anything.  Is there a setting for this?  I would like to be able to clear the portal, or clear the view panel without saving my present work. 

Measure frequency from an Analog Input

$
0
0

Hi,

I have Diadem 2017 an im absolute new in this Topic. 

My hardware is a NI cDAQ-9178 and an analog Input Card NI 9201.

Now the question: How kann i measure a frequency of the analog input Signal?

The Signal ist a pwm signal from a sensor to measure the rotation Speed. The range is from approx 10 Hz to 10kHz.

Is this even possible with this Card and Diadem 2017? 

Viewing all 3196 articles
Browse latest View live


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