Why do in-line conditiona​l expression​s work in Formula Node but not in 'Eval Formula Node.vi'?

'Eval Formula Node.vi' and a standard Formula node seem identical in most respects in terms of their functionality, however I'm stumped by the case of inline conditional expressions. 
I'd like to read in a string in the syntax "(expr)?(expr)expr)" from a text file and recieve the output as a double.
The subVI seemed like the perfect tool since I was already using it to interpret a number of other calculations within the text file, however in this case the behavior is not as expected.
Has anyone else ever tried this? is there a different syntax needed between the two tools?
Are there other features of the Formula Note not replicated by this VI?  (so I can avoid them in future)?
For simplicity I've attached a little demo of the behavior.
I am currently working in 2010, which I know is getting on in years.
If the behavior is improved in later versions, that may be a good excuse to upgrade :-) 
Thanks,
Elaine R.
Attachments:
Conditional Formula Node demo.vi ‏13 KB

.aCe. wrote:
Eval formula Node does not do any conditional expressions as far as I am aware.
That is right. It's a rather dirty hacked VI library to do some formula evalution and has many limitations in comparison to the Formula Node including no support for conditional operator as well as some others. In addition it can also error on some more complex bracketed expressions.
It is an old example VI that was never revisited and probably never will be as writing a new one from scratch would be easier. But considering that the Formula Node and Mathscript and other possibilities exist, this is not likely going to happen soon.
Rolf Kalbermatter
CIT Engineering Netherlands
a division of Test & Measurement Solutions

Similar Messages

  • Airport Express Printer Works with Macbook Pro, but not on Macbook

    We have two Macs -- a Macbook Pro, and a Macbook. Both are connected to an Airport Express, and can access the internet and control Airtunes without any issue. However, only the Macbook Pro can print to the Aiport Express connected printer -- a Canon ip3500.
    When I go to system preferences to add the printer on the Macbook, the printer is available, and it allows me to add it. However, the location of the printer and the driver( or at least the driver number) are different, even though it is pre-populated by the computer itself.
    Once the printer shows as being installed, I can print to that printer, but the job is automatically "Stopped" in the status. I cannot restart the job, it just stalls out.
    When the printer is connected via USB, the Macbook can print to it without issue. It can also print to it via bonjour if I share the printer from the Macbook Pro.
    Anyone else having similar issues? Any suggestions on how to fix it would be greatly appreciated.

    Try creating a new location in the network settings. Then select Network port configurations and drag Airport to the top of the list. Uncheck any unused connection types such as built-in modem and Bluetooth.

  • HT4528 Why won't my apple id and password work on my iPhone?  It is working on my Macbook but not the iPhone?

    Why won't my apple id and password work on my iPhone?  It is working on my Macbook but not the iPhone?

    there might be something different on the mac you can try appleid.apple.com and reset your password i would also check the mac to see which appleid is signed you may have multiple apple ids and not know

  • Why is my Apple id working on my MacBook but not my iPad?

    Why is my Apple id working on my MacBook but not my iPad? I can log in o.k. on my MacBook, but using the same user name and password on my iPad, I just get the Incorrect Apple ID or Password message.
    on my iPad, I have used the Forgotten Apple ID or Password link and reset the password. Even after I get the successfully reset password message it still gives me the Incorrect Apple ID or Password message!
    In desperation I have restored the iPad to Factory settings. It appears to be running OS 7. something.
    My Macbook is running 10.8.5.
    But the same problme persists.
    Please help

    I am having the same problem. Works fine on the website but telling me it's incorrect on my iPhone

  • Does anybody know why Illustrator will open Solidworks DWG files saved in R2007-2009 version but not version R2010?

    Does anybody know why Illustrator will open Solidworks DWG files saved in R2007-2009 version but not version R2010?

    Evidently Solidworks changed the output of their files to a format that AI cannot interpret. Just backsave in Solidworks to the required version.

  • Why is apple id being disabled .? and i rs this  . but not replay my email ?

    why is apple id being disabled .? and i rs this  . but not replay my email ?

    Don't post your IDs or other personal information here. These are user-to-user support forums, not a method for communicating with Apple. I've asked the Communities Hosts to remove your personal information.
    As to your problem, if you have forgotten the password to your Apple ID, try this web page:
    https://iforgot.apple.com
    If that does not help, you will need to call Apple Support, ask to speak with Account Security, and work with them to reset your password.
    Regards.

  • Why can I charge me iphone with my car's usb port but not my ipad?

    Why can I charge my Iphone in my car using USB connection but not my Ipad?

    Because the iPad requires a lot more power to charge than your iPhone, and typically car and computer USB ports simply don't proivide that much.
    Its the same reason your iPhone comes with a 5Watt charger (and even then the iPhone only uses part of that) while the iPads come with the 10 or 12 watt charger.
    They just need more power.

  • Why do headings turn Chinese when I access my email via Firefox but not via Internet Explorer?

    Why do headings turn Chinese when I access my email via Firefox but not via Internet Explorer?

    hello, this is a displaying flaw caused the mcafee site advisor extension - please try to disable or remove that in case you have it present until there is an update by mcafee that can fix the problem.
    http://service.mcafee.com/faqdocument.aspx?id=TS100162
    https://community.mcafee.com/thread/76071

  • HT4587 My airport express works on my mac but not I pad or I phone which has been updated to ios7.  Ideas?

    express works on my mac but not I pad or I phone which has been updated to ios7.  Ideas?

    You do know that the controls for AirPlay have been moved in iOS7, correct? 
    Is that what you are asking about here? If yes, you might want to read up a bit on the changes in iOS7.
    Apple - iOS 7 - What's New
    If you are asking about something else, we need more details about the issues.

  • My apple ID will work for uk itunes but not work for canadian itunes. Why?

    My apple ID will work for uk itunes but not work for canadian itunes. Why?

    http://www.apple.com/legal/internet-services/itunes/ww/

  • Express works for 2 laptops but not imac

    Hi - I have Airport Express connected to Motorola cable modem. I have two macbooks both connecting to internet via Airport Express fine. But my iMac doesn't. iMac reports that AirPort is connected to xxx Network and has IP address 10.0.1.3 - the two macbooks show similar though last digit on IP is .2 and .4
    I have tried 'assist me' etc to no avail. Have rebooted iMac, turned AirPort on and off etc but no joy. Any suggestions what to try next

    Pete Davis wrote:
    I have Airport Express connected to Motorola cable modem. I have two macbooks both connecting to internet via Airport Express fine. But my iMac doesn't. iMac reports that AirPort is connected to xxx Network and has IP address 10.0.1.3 - the two macbooks show similar though last digit on IP is .2 and .4
    In the Network panel of System Preferences on the iMac and one of the MacBooks, select the AirPort connection item, click the "Advanced" button, then select the "TCP/IP" tab. Compare the values you see for "Subnet Mask" and "Router". In the "DNS" tab compare the values for "DNS Servers". Any differences could explain why the connection is failing, but not necessarily explain why the values are different.
    You might try resetting your connection settings on the iMac using the steps listed in this message:
    http://discussions.apple.com/thread.jspa?messageID=10695921&start=1
    They're not guaranteed to solve the problem, but they'll only take you a minute or so to try.

  • Why does GarageBand audio work for guest user but not my account?

    Hello, I have a 15-inch MacBook Pro (2.2 GHz Intel Core i7, 4GB 1333 MHz DDR3) from late 2011 that I bought brand new in 2012. I'm running OS X Mavericks 10.9.4 and my MacBook has 500 GB of storage.
    About a month or two ago I tried to download the new GarageBand (10.0.2) but I had trouble completing the loops download. The download would stop halfway through because of a network error. So last week I decided to try to download it again, and I was able to do so after reading some discussions about the issue. I successfully completed the download in safety mode and then I restarted my MacBook. At this point I was able to open GarageBand 10.0.2 and create a new project. Unfortunately, there was no audio coming through the output and sound bar for the various audio components in GarageBand. I had no audio when previewing the loops or playing it back in an audio track. I didn't really test anything else out because I figured I needed to fix this problem first. I have read many discussion boards about audio problems with GarageBand. I have already made sure everything is set properly in the GarageBand preferences and the audio preferences in system preferences. I've tried restarting GarageBand and restarting the computer.
    This evening I found a discussion from the username icewhatice and they seemed to have had my exact problem. I'm not sure that I found the answer on this discussion though. For reference, this is what icewhatice posted: "I have no audio coming from Garageband 10.0.2. Downloaded it on Saturday and have spent the last two days trying to figure out why it won't work. I'm using a macbook pro with an Alesis QX49. GB registers keyboard when I plug it in but no sound whatsoever, not even from the onscreen keyboard. It seems to read the keyboard as if I play a C chord, it appears in the display. I've done all the obvious stuff like check preferences, restart, I've deleted and downloaded new GB several times and always with same result. Actually, it took me about four attempts to download it in the first place as I was getting an internet connection error message right at the end of the download, and I see others have had that problem. Managed to solve that by downloading in safe mode but now the no sound thing is driving me absolutely crazy because I can't play my keyboard!!!!! Also, worth noting that there is no audio level being read anywhere, I believe in the new version this appears in the volume control at the top. I've also looked into it potentially being a problem with my keyboard and it possibly needing an update but can't find any difinitive answer for that anywhere. I've stopped looking into that because the on screen keyboard doesn't even work - if that worked then I would know at least GB works and it's something to do with the keyboard. So, I am at a complete loss. If anyone has any ideas about why this is happening or what I could do to solve then I would be very grateful."
    After reading this, I realized that I am unable to create new tracks, and I realized that I have the same problems with old projects saved from the last version of GarageBand I had. I have not tried to download GarageBand again since it did not work for icewhatice. léonie ended this post by saying: "Something is certainly wrong - either the current project, some settings in your user account, or the downloaded GarageBand version. Or incompatible software may be interfering. If a new project does not work, try to test by logging into a different user account, for example the "Guest User" account. Create a new project using this account. Does GarageBand work better from this account?  Then we will need to troubleshoot your preferences."
    I have tried this and started a new GarageBand project in the "Guest User" account. GarageBand was working fine in the "Guest User" account and all of the audio was working properly. Does anyone know how I should troubleshoot my preferences?

    If an application is working in a different account, but not in your regular account,try t find out, what you configured differently in your own account, for example start-up items or preference panes you are using, applications and other helper tools, that are only installed for your regular account. As a first guess, remove GarageBands preference files from the user library in your Home folder.
    But you will have to reset all settings you did in the GarageBand preferences dialog. And GarageBand will not remember the last project. You'll have to find the file manually.
    Remove these files from your User Library to a folder on your Desktop:
    ~/Library/Containers/com.apple.garageband10/
    ~/Library/Preferences/com.apple.garageband.plist
    ~/Library/Caches/garageband
    Quit GarageBand, then remove the files to a folder on the Desktop and restart the computer, before trying again to open GarageBand.
    You user library may still be hidden, as is the default in Mavericks: To open your hidden user library:
    Select the "Home" folder icon (the little house)  in the Finder's sidebar and press the key combination ⌘J to open the "view options".
    Enable "Show Library Folder".
    Then open the Home folder and open the Library folder inside and navigate to the Preferences, Caches, or Containers folder. Remove these folders completely - don't leave anything inside:  ~/Library/Containers/com.apple.garageband10/,
    ~/Library/Caches/garageband  .

  • In Address Book, why does Apple let you create custom fields in the Template cards but not have them available for importing?

    I open Address Book, go into Preferences, select Template and under the Names field (friend, assistant, father, etc) I add a custom field called "Principal".
    I also add two more custom fields in the Email area.
    Quit Address Book then relaunch. Add a new contact and the new custom fields, Principal, etc. are there. All good so far.
    I have a Now Contact file with about 200 contacts in it. I export all fields as a Text file, Tab delimited. No problems there. With Address Book launched, select Import, pick the text file, leave Text Encoding on Automatic and click Open.
    The window that shows the fields for Address Book and fields for the text file side by side opens. This is where you match up the correct fields for importing. If I go to one of the fields from the text file that I created a custom field for, click under the Address Book heading on the Do not import, scroll thru the Apple choices of fields, none of the custom fields show up. Only the original Apple ones are there. Why does Apple let you create them in the Template area but not have them available for importing? Does anyone have suggestions on getting around this?

    While most likely not of interest to you, Spotlight can also tell you where the files it finds are located
    Hover the mouse pointer over the name, and press Command-Option and the path to the file will be displayed.
    As for opening a terminal session in the directory where a file is located, there is Applescripts that do just that as well as specific features in Lion/Mountain Lion terminal:
    <http://stackoverflow.com/questions/420456/open-terminal-here-in-mac-os-finder>
    <http://hints.macworld.com/article.php?story=20110729034827358>
    <http://www.macworld.com/article/1047793/folderinterm.html>
    <http://www.macworld.com/article/1161876/open_finder_folder_in_terminal.html>
    <http://www.macobserver.com/tmo/article/os_x_lion_open_a_folders_location_in_term inal>

  • Why will my brand new iPod touch allow me to purchase songs but not download them?

    Can someone tell me why my new iPod touch is allowing me to buy songs but not downloading the songs currently being purchased?  The new songs actually show up on my iPad but not my iPod which is the device they were purchased on.

    Try configuring your iCloud sync settings for music across devices, also go to the iTunes app hit more, then purchased and then hit the download button

  • Airport express works with windows xp but not OS Tiger

    Hi all
    I’m a troubled man.
    I have recently bought a new Mac pro along with an airport express. I am a first time user of Mac’s.
    Here is my problem.
    I use a DSL modem and my airport express is connected with the LED indicator in solid green. When I try to connect using my user name and password the “searching for POPPE sever appears at the top of my screen.” And after a few seconds “could not find POPPE server. This happens all the time. I tried to get air tunes working but itunes could not detect my airport express.
    Now since I’m an engineer I needed to run auto cad on my Mac so I downloaded Bootcamp, partitioned my Macpro hard drive and installed windows XP on my Mac book pro and to my surprise windows xp found my airport and connected to the server straight away. So I experimented and download the xp version of itunes and what do you know the xp version of itunes detected my airport express and everthing worked fine for Windows! This suggests to me that the problem lies with the mac software as the airport express is working fine. Whats going on! I do not understand.
    When I go back to tiger it sees my airport but cannot connect. I run the airport assistant but it cannot detect my airport. I run the utility airport program but it cannot see my airport express. I go back to windows XP everything works fine???????
    If you can come up with a solution to this strange problem I would be very grateful.
    Thanks

    The user name and password may be just fine but the dialer software for OS X may be quirky to the point where it doesn't work with your modem through an Airport connection. My recommendation is to try uninstalling the DSL dialing software from the computer and setting up the Express to do the dialing for you. Your computer connection then becomes straight Ethernet.
    If that doesn't work, have you checked to see if there's a newer version of the OS X dialing software available?

Maybe you are looking for