Why Doesn't "find" work in VBS?

I'm trying to write a VBS module that will
detect when the data in a channel crosses
some threshold. As an example, I include
a line to check when channel 56 becomes
greater than 5.0
Here is the VBS line that checks for this:
FirstValue = find( Ch(56) > 5.0, 1 )
When ever I execute this script, DIAdem displays
an error dialog with this message:
Error in (Row:52, Column:9):
Error message from DIAdem OCMD-interface:
Invalid return value of the DIAdem kernel !
What does this mean? Why doesn't the "find" function
work? What other means can I use to do this operation?

Hi jbrandim,
The first parameter in the find() function is a string, so when you use this function with VBS syntax, you need to enclose it in double quotes:
FirstValue = find("Ch(56) > 5.0", 1)
Additionally, you can also call this function as a Formula Calculator function, since it is in fact a DIAdem function and not a VBS function:
Call FormulaCalc("L1:= find(Ch(56) > 5.0, 1)")
FirstValue = L1
The cryptic error message is an artifact of the translation process between VBScript and the DIAdem find function. DIAdem automatically maps the return value of the find function, which is an integer, to the variant variable "FirstValue", as well as the input parameters. The mapping process from Variant to string in the first find() parameter failed, and
that led to the error message you received.

Similar Messages

  • Lost my iPhone and why doesn't find my iPhone work

    Lost my iPhone and why doesn't find my iPhone work

    A friendly reminder: In order to use Find My IPhone Successfully, you need to 1. Turn on Location Services, 2. Lock Location Services (Using Restrictions in Settings, General, Restrictions) so that if some one else finds your IPhone, they can NOT turn off Find My IPhone And/Or Location Services itself! 3. Add your Mobile Me and/Or ICloud Account to your IPhone. 4. Lock Accounts (Again in Restrictions) from being changed or Deleted so that your Mobile Me And/OR ICloud Account can NOT be Deleted! 5. Look Up the Location of your IPhone Before Suspending Service to the IPhone, NOT after Suspending Service (simple common since applies here as well).

  • Iphone 3g - why doesn't it work?

    I purchased a new pair of Nike running shoes excited to link up the sensor and get started using with my iphone 3G. However, I find out the Nike Plus only works with an iphone 3GS. I'm now going to have to return the Nike Sensor for a refund instead of having to upgrade to another Iphone model. Is there anyway around this? Why doesn't it work with the Iphone 3G? What makes the operating system in the 3GS different so it works?

    As evidence too there is a hack which gets it working as well:
    http://mymojo.ca/index.php/2009/12/31/weekend-project-nike-and-iphone-3g-part-1/

  • I recently bought a lightning to 30 pin adapter for my new iPad so that I could continue to use my 30 pin to VGA cord, but when I plug the VGA cord into it it says it is not supported. They are all apple products, so why doesn't it work?

    I recently bought a lightning to 30 pin adapter for my new iPad so that I could continue to use my 30 pin to VGA cord, but when I plug the VGA cord into it it says it is not supported. They are all apple products, so why doesn't it work?

    If it is a lightning to 30 pin adaptor, and you have a 7th Generation Nano it has to fit the Nano.
    This is lightning to 30 pin adapter: http://www.bestbuy.com/site/Apple%26%23174%3B---Lightning-to-30-Pin-Adapter/6651 936.p?id=1218803450821&skuId=6651936#tab=overview
    Is this what you bought?
    You need to contact Sony and see if they model you have is compatible with the docking adapter. It may not be.

  • Why doesn't siri work away from home

    why doesn't siri work way from home

    It does for me. But it requires an Internet connection, so if you don't have mobile data turned on or your account isn't provisioned for it or you are out of range of a cell tower Siri can't talk to the servers.

  • Why doesn't LightScribe work with my Snow Leopard?

    Why doesn't LightScribe work with my Snow Leopard? It downloaded and is in my printer folder, but won't open.

    Are you really still running 10.6.3? If you are you should run the combo update as many issues were resolved within the updates themselves.
    Mac OS X 10.6.8 Update Combo v1.1

  • I have Elements 12 installed.  When I am in the catalog, click on a photo, then want to open the Editor, I get an error message.  If I click on Editor from the Welcome screen, I get the same error message.  Why doesn't Editor work?  Thanks.

    I have Elements 12 installed.  When I am in the catalog, click on a photo, then want to open the Editor, I get an error message.  If I click on Editor from the Welcome screen, I get the same error message.  Why doesn't Editor work?  Thanks.

    You'd better ask in the Elements forum.
    Photoshop Elements

  • Why doesn't flash work during panorama pictures

         why doesn't flash work during panorama pictures

    HI..
    Try troubleshooting the Flash plugin ..
    Quit Safari.
    Open System Preferences > Flash Player then select the Storage tab. Click: Delete All
    Now uninstall the Flash plugin then reinstall new >  Troubleshoot Flash Player | Mac OS
    Very important to uninstall the currently installed Flash plugin before reinstalling.
    Launch Safari From your Safari menu bar click Safari > Empty Cache
    Now try a video.
    BTW... if you have the ClickToFlash extension installed, that can prevent Flash based video from streaming. It can also be installed as a plugin in /Library/Internet-Plug-Ins.
    And check to see if Safari is running in 32 bit mode. Right or control click the Safari icon in your Applications folder then click Get Info. If the box next to:  Open in 32 bit mode  is selected, deselect, quit then relaunch Safari.

  • I've got a serial number for Contribute but it won't activate on one of our computers. Right now we have to use the 30 day trial. Why doesn't it work?

    I've got a serial number for Contribute but it won't activate on one of our computers. Right now we have to use the 30 day trial. Why doesn't it work? Marianne Stanton, The Inquirer and Mirror, Nantucket, MA: Sign in: [email protected]

    Here's the serial number I have and have used on other machines:
    < Removed by Moderator >
    "This serial number is not valid for this product."
    OS 10.7.5
    Contribute 6.5
    Greg Derr
    <Removed by Moderator>

  • Why doesn't Nike+ work with the 1st Gen Ipod touch with 2.1 software?

    Why doesn't Nike+ work with the 1st Gen Ipod Touch with 2.1 software?

    The second gen iPod Touch has firmware version 2.1.1(5F138) whereas the 1st Gen only allows 2.1 (5F137). Don't know if that has anything to do with it, but it's likely.
    Why doesn't Apple allow those with the Nike+iPod sports kit to use their external sensor on the 1st Gen iPod Touch?!?! I can't see why the sensor would be incompatible with the right firmware upgrade!!

  • Why doesn't JavaMail work, but PHP mailer does?

    I am trying to use JavaMail to send emails from my webserver. I've plugged in the host and the addresses are valid, but I am getting 550 errors. I've searched and found that I should change a setting on my mail server to allow relays from my webserver. However, we have a PHP mailer working on our webserver now, so presumably that relay is already in there. Why does the PHP work but the JavaMail doesn't?

    Can you turn on session debugging and post the protocol trace that shows the failure?
    The error codes alone are not enough, you usually need to look at the message included
    with the error code.
    Also, have you found the JavaMail FAQ?

  • Why doesn't tmobile work at ORD?

    Since upgrading to OS X 10.7.3, logging onto wifi networks has been much more difficult. At ORD, at least in the United Club, it is impossible using the T-Mobile network. Whenever I connect to the tmobile network, it opens the new (supposedly-quasi-automatic) wifi login screen. But it gets stuck there forever, with an indication that it is trying to connect to an apple URL. Why? Is there away around this? Here's the screen I get (forever):

    alright, you guys, forget about what i just said...   i know why it's not working, it is a file that is not as a quadratic picture but one that is just cut out of a quadratic picture. so it's probably that's why it is not working....
    so let's take this thing to a different level:
    how can i get things that i cut out from editors like gimp and made a jpeg file out of it get into imovie when they are not quadratic? 
    My idea is to make a video and add in the foreground some little pictures. something like a logo that i can't make with the writing software of imovie. So hoy can i add such a thing or is it even possible?

  • My 'paid-for' version of Roboform, ( v. 6.10.2) works with FF v. 3.6.17, so why doesn't it work in FF v. 4?

    I have a 'paid-for' copy of Roboform, (v. 6.10.2) which works just fine and free on Firefox v. 3.6.17. But it does not work on Firefox version 4. I do not want to buy another version of Roboform to use on FFv4. What happened? Why does it not work anymore?
    I cannot afford to buy another,newer computer, nor do I wish to.
    I downgraded to FF v. 3.6.17 and Roboform v. 6.10.2 works just fine.
    Please tell me what you changed between FF v. 3.6.17 to v. 4 to make Roboform v. 6.10.2 to stop working.

    Quite honestly, ''IMHO'', I think Siber Systems decided that they want a new source of revenue by forcing users to purchase a new version to be able to use Roboform in Firefox 4.0. Version 6 seemed to work in the Firefox 4 betas all the way up until the actual release of Firefox 4.0, then we started seeing a huge number of complaints posted here about users being forced to upgrade to version 7 and the annual fee that comes with that version.

  • Again...  photos into imovie...   why doesn't this work at all???!!!

    alright.
    made it a couple times. no problem. but for right now either i have a problem with my mac or here are some nervewrecking coincidences going on to make my life just that more complicated:
    as in every youtube-tutorial about how to get pictures into imovie and in lots of macusers logic to get a photo into imovie you do this with the function of the mediacenter at the center-right. so you go there click on the iphoto and to fast forward everything go for the searchbar and look for the photo you want, drag it to the upper left side or if you changed setting bottom left side and then, what comes next...    yep...   right...   you drop it....   well yeah, if there would be the possibility => i got no possibility to drop my pictures.
    however, this is no problem for me with my videos, with my audio but for some random reason photos are unpossible for me to drag there.
    somebody an advice? something with the setting? it's normal jpeg, it's imovie from the year 2009 which is version 8

    alright, you guys, forget about what i just said...   i know why it's not working, it is a file that is not as a quadratic picture but one that is just cut out of a quadratic picture. so it's probably that's why it is not working....
    so let's take this thing to a different level:
    how can i get things that i cut out from editors like gimp and made a jpeg file out of it get into imovie when they are not quadratic? 
    My idea is to make a video and add in the foreground some little pictures. something like a logo that i can't make with the writing software of imovie. So hoy can i add such a thing or is it even possible?

  • Why doesn't Find my iPhone work?

    I have set up the Find my iPhone app on my iPod, but it seems to be entirely useless. Perhaps you can help me understand what's going on here and why it's having problems.
    The app is set up on my computer and my iPod. I recently left my iPod in the car, and later found it there, but the app was no help. Here are the details.
    Before finding my iPod (manually), I tried to locate it via the app. I thought it could have still been in the house, where it would have been connected to the internet. (It wasn't.) Before searching the car, I opened Find my iPhone from the computer, where it told me the location of the computer, but not the iPod, which it said was offline. I turned on "lost mode", clicked "play a sound", and checked "notify me when found." Of course, since it was offline, not much could be done about it. I understand what's going on so far.
    Then, I went to the car to search for my iPod, and I found it there. I brought it inside, and it immediately connected to the internet. It downloaded my email, worked perfectly. Except, Find my iPhone still didn't find it. I even opened Find my iPhone from ON the device I wanted it to find, and it still listed the very same device as "offline" -- even when I checked it from that device, which was connected to the internet, logged in, had the app open, downloading other things fine...  I can even eliminate the possibility that it was searching for a different device, because it was labeled "This Device" when I select it on Find my iPhone from the iPod. It listed the pending actions, which "will take effect when this iPod connects to the Internet." It isn't even a case where this app wasn't connecting, while other apps were connecting -- the app was connecting well enough to tell me the location of my computer. But it still said the iPod was offline.
    What is going on here? In this case, I found my iPod on my own and don't need help with that, but the app seems so completely useless I don't know what circumstances would have to be where it WOULD find it. I understand the limitations -- that it can only find a device that is on and connected -- but it should at least be useful for playing a sound on a device that fell behind the dresser or some such, and it doesn't even seem to be doing that properly. What's wrong? Is there some way to fix this?
    Thank you!

    It sounds like the iPod's Find My [Device] feature became disconnected to the service.  This can sometimes happen after a password change or something weird like an update.
    Try this and see if it helps give you some consistency.
    On the iPod, go to Settings > iCloud and turn off Find my iPod (you may be prompted for your iCloud password if you are on iOS 7).  Next Tap Delete Account at the bottom and "Keep on my iPod" for any pop-ups that have this option.
    This action should kick you back to the main Settings screen.  Tap on iCloud again and it should prompt you for your password (don't log in, just make sure it shows that to ensure you are logged out).
    Restart your iPod by holding the Power (Sleep/Wake) Button and sliding to power off.  Wait about 2 - 3 minutes then power it back on.
    Go to Settings > General > Reset > Reset Network Settings.
    Go to Settings > Wifi and tap your home network and join it again.
    Go to Settings > iCloud.  Sign in again with your Apple ID and password.  Allow iCloud to use the location of your device (Find my iPod switch is on).
    Check iCloud.com or the Find my iPhone app to see if your ipod is now locatable.
    Also, Go to Settings > Privacy > Locaiton Services and make sure Find my [Device] is turned on.

Maybe you are looking for

  • AP and AR Cube Table in R/3

    Experts, This is kind of a mix of FI and BW - I can see 3 different cubes in our BW system - one for GL, 1 for AP and 1 for AR - But what are the tables from which it gets this info : I am under the impression that it is BSEG for GL, but then BSEG co

  • How Do I stop the phone from locking while the navigation program is running.

    I have a Blackberry 9630 V4.7.1.40. The phone is on an enterprise server network through work. The phone is set to password lock after a couple of min. of non-use. When I have the Sprint Navigation program running, the phone locks after a few min and

  • Browser can't load sites using 1.4 plugin when service is running

    Hi, I am having some strange problems and am hoping someone here might be able to offer some insight to help me solve it. Some customers have reported a problem with our software that runs as a service on Windows machines. When the service is started

  • Need to refresh Airport Settings in MacBook

    I have an Intel Macbook where one profile will not automatically make the airport connection automatically on login. If I go to network settings and select the wireless network, it logins perfectly (WPA2PSK, 802.11g). I tried wiping out the airport s

  • Need help on flash animation 3.0 Please do help. thanks

    i am currently doing a project on actionscript 3.0 and i am having so much trouble with it. the e-book my teacher send us doesnt help, too many words and i dont understand he also wont teach us. I am trying to make a sound wave like transverse and lo