I am trying to use Joint Time Frequency Spectrum.VBS from version 11.1 and later with DIAdem 2015 64-bit. But keep getting errors stating variables are undefined. Can you advice on how best to proceed with this DIAdem version to plot time, frequency and amplitude for waveforms?
Can you post details about the errors you are getting?
Screenshots or even the code would be helpful to try to identify the error.
Thank you for your response. Please find attached a screen shot of the error message.
I believe you are trying to execute the Calculate Joint Time Frequency Spectrum.VBS script directly, but that is not the way the example works. Please refer to these:
Notice you need to execute the Time Frequency Order Analysis.VBS script, and that one will call the others depending on what you do. You should not receive the error if you call that one. Can you check and let us know?
Thank you for your response. I have attempted to execute the Time Frequency Order Analysis.VBS script, but get the error in the attached screenshot (variable is undefined). This same error was noted by someone leaving a review on http://www.ni.com/example/28940/en/ as shown in the second attached image.
Can you think of what could be causing this and what I should try next?
Now I was able to reproduce. Just to make sure I have the right information... are you using DIAdem 64-bit?
I was able to reproduce with that one but the tool seems to be fully compatible with the 32-bit version. Have you tried the 32-bit DIAdem yourself?
If you are not using the 64-bit, this error should not occur. In any case, let me know.
Right now I believe the tool may just be incompatible with the 64-bit software, but I have no means to assure that yet. I am doing some research about it and I will let you know anything I can find.
I have installed DIAdem 32-bit and the script is now working. It seems that the script is not compatable with the 64-bit software.
I have run into another problem. My .tdms files are of waveforms, and they include the amplitude and time step information in each individual file. This means that I cannot select separate 'time' and 'signal' files for use in the Joint Time Frequency and Order Analysis script. Surely there is a way to perform the JTFA when all the information is contained in a single file?
Many thanks for your help.
The tool seems to require separate time and data channels. You can use the Numeric Channels <-> Waveform Channels function to convert a waveform data channel into two separate ones.
You will lose the original channel, so if that is not desirable, you can duplicate it before converting it by entering something like
Ch("[<group number>]/<Name of duplicate channel>")=Ch("[<group number>]/<Name of channel to duplicate>") in the calculator.
I am in the process of improving this example in several ways, but I have not had much time to dedicate to it, and it has dragged on. Here are the planned improvements:
1) Runs in DIAdem 2015 64bit and later
2) Works with waveform channels without the need to create X channel for each
3) Supports drag&drop of Data Portal channels onto channel selection controls
4) Works without channel numbers, which will disappear from DIAdem soon
So far I have a beta version that has 1) working, but I'm working on the others all concurrently. If anyone needs a beta version that will work with DIAdem 2015 64bit, give me an email at firstname.lastname@example.org and I'll post it to the ftp.ni.com/outgoing site for you.
DIAdem Product Support Engineer
I just added
on the top of the script and now it´s working fine with DIAdem 2015 (64 Bit).