Case Structures in LabVIEW 8.5

  • Permalink
  • submit to reddit
  • Email
  • Follow


Is there any way to have a case structure based on different file paths?  In the VI I'm creating, there are limited number of files that a user can read in and I want to have different cases depending on which file path they chose.
 
Hopefully this question is worded well enough for you to understand what I am asking for.  
 
Thanks! :)
0
Reply x9561 (148612) 6/11/2008 6:40:07 PM

See related articles to this posting


Don't know what your paths look like, but you could do something simple, like this:<img src="http://forums.ni.com/attachments/ni/170/330829/1/Example_VI_BD7.png"> Message Edited by smercurio_fc on 06-11-2008  01:21 PM


Example_VI_BD7.png:
http://forums.ni.com/attachments/ni/170/330829/1/Example_VI_BD7.png
0
Reply x9561 (148612) 6/11/2008 6:40:08 PM

That's exactly what I needed.&nbsp; Thanks!
0
Reply x9561 (148612) 6/11/2008 6:40:11 PM

I am assuming that with "different file paths", you mean different files in the same location. Is this correct?
&nbsp;
Let's assume that all the files are in the same location.
In this case you could also just strip the path and wire the filename to the case structure.
&nbsp;
It is somewhat better self-documenting. :)
&nbsp;
<img src="http://forums.ni.com/attachments/ni/170/331304/1/fileCase.PNG"> Message Edited by altenbach on 06-12-2008  12:56 PM


fileCase.PNG:
http://forums.ni.com/attachments/ni/170/331304/1/fileCase.PNG
0
Reply x9561 (148612) 6/12/2008 8:10:07 PM

Thanks but the files aren't in the same location.&nbsp; It's a good idea though.
0
Reply x9561 (148612) 6/12/2008 10:40:06 PM
comp.lang.labview 35387 articles. 13 followers. Post

4 Replies
47 Views

Similar Articles

[PageSpeed] 47


  • Permalink
  • submit to reddit
  • Email
  • Follow


Reply:

Similar Artilces:

LabVIEW 8.5 Case Structure
LabVIEW 8.5 crashes when I make Duplicate Case structure while Terminal is inside of case. &nbsp; I have attached an example pdf file LabVIEW 8.5 case test.pdf: http://forums.ni.com/attachments/ni/170/275833/1/LabVIEW 8.5 case test.pdf ...

LabVIEW 8.0 changed a constant that was wired to a Case structure to a hidden control to maintain compatibility with LabVIEW 7.1 and earlier.
Y am i getting this msg? Hi, muks, This happened because "...LabVIEW does not compile code on the block diagram that does not execute. For example, LabVIEW does not compile any code that exists within the inactive subdiagrams of the Conditional Disable structure. In addition, LabVIEW does not compile code within a Case structure that has a constant wired to it that would not execute the case with the code..."In the other words, if you have case structure, which is wired to T/F constant, then prior to version 8.x both cases will be compiled. From version 8.x the only "executed&q...

Can LabView 8.5 read LabView 8.5.1 VIs
Since LabVIEW 8.5.1 is only a bug fix, can LabVIEW 8.5 read any VIs generated in LabVIEW 8.5.1? Simple answer YES. But it&nbsp;will the VIs compile so it is a good idea to make a mass compile in the folder where the VIs are. ...

opening a labview 8.5 file with labview 8.21
Hello,I was working on a project at home with labview 8.21, I nearly finished this project but I addes some stuff at school where they have labview 8.5.Today I wanted to open the labview file on my computer, but It gave an error: labview load error 9: Vi version 8.5 is newer then&nbsp;labVIEW version 8.2.1.Is there any way I can open the file on my computer?Or can I save the file at school als a 8.2.1 file? thnx in advance,Seppe You'll have to reopen the file on a computer with LV 8.5.&nbsp; From there you can do a Save as Previous Version to save back to LV 8.2.1 Hi Seppe, just ...

labview 8.2 llb run with labview 8.5
On the PC I have delete labview 8.2, but I dont find the CD for reinstall. I have a .llb file made with labview 8.2, Can i run it with labview 8.5 or download labview 8.2, I muss install ii rapidelly. &nbsp; tks Costello, you can update the VIs within the LLB to LV 8.5 if they do not have their blockdiagram removed.....hope this helps,Norbert How can I update ? When I start the .vi in the lbb he dont found somme .vi located in DAQmx (wrtie.lbb, start task.lbb,...) How can i install this lbb? thks Costello, if you get loading errors when opening one VI from the LLB like you the ones you ...

How to open Labview 8.5 VI in Labview 8.2
Hi I am using LabVIEW 8.2.I found one ook modulation example project(http://decibel.ni.com/content/docs/DOC-1394),it was developed in Labview 8.5.I have to oepn this one in My system mean in Labview 8.2.Please tell procedure.Is it possible or not.?Thnaking you sir. Could you attach that particular vi in your post so that somebody can save it for 8.2 Thanks, Mathan It is not possible directly. Somebody with access to version 8.5 needs to save it for version 8.2. Or you can install Labview 8.5 demo. Works for 30 days.... Hi Mathan,Thanks for your reply.i need OOK Modulation (FPGA).VI and O...

labview 8.2 to 8.5?
I have an older version of labview (8.2) and wanted to know if i could update it to the current version without having to buy a whole new system. Are you asking if there are additional costs to upgrading from LV8.2 to LV8.5? If that is asking, the answer is yes.&nbsp; You can purchase a Standard Service Program (which is typically included for the first year), which means you automatically get upgrades. The other option is to go to this link: <a href="http://www.ni.com/labview/" target="_blank">http://www.ni.com/labview/</a>&nbsp;and select upgrade.&...

labview 8.5 to labview 7.0
i am on my labview working with 8.5but at work, we only have labview 7.0.what would be my best way to get my vi to be 7.0?thank you so muchMessage Edited by krispiekream on 06-19-2008 03:59 PM In order to go from LV 8.5 to LV 7, you will need to have LV 8.5 (save it back to 8.0), LV 8.0 (save it back to 7.1) and LV 7.1 (to save back to 7.0). If it's only a few small VI's, you can post them on the forum and ask someone to do the saves for you.&nbsp; (Best if you do the save back to 8.0 and&nbsp;post that in order&nbsp;to eliminate 1 of the 3 steps for whoever will do the r...

Convert from Labview 5.1 to 8.5
Can someone please convert these files from Labview 5.1 to 8.5? &nbsp; Thanks, Chris lv3193e.zip: http://forums.ni.com/attachments/ni/170/303434/1/lv3193e.zip Here it is. Mike lv3193e_85.zip: http://forums.ni.com/attachments/ni/170/303436/1/lv3193e_85.zip Thanks! Chris Can someone please convert these files from 5.0.1 to 8.0 or higher? Thanks, Chris DATAQ Labview.zip: http://forums.ni.com/attachments/ni/170/324658/1/DATAQ Labview.zip Here they are as 7.1. DATAQ Labview_71.zip: http://forums.ni.com/attachments/ni/170/324674/1/DATAQ Labview_71.zip Thanks. Here they are as 8.5 ...

Scilab Gateway under Labview 8.2 and 8.5
Hi Newsgroup, i am a Labview Starter and working for a longer time with Scilab. Herefore, the gateway function is a nice tool for me. When i create a VI with the Scilab Gateway, it works really perfect under Labview 8.2.1 (Jubilee Edition), but under Labview 8.5 the VI seems to be not correct. The "Run"-Arrow is displayed broken, nothing works. Funny Effect in Labview 8.5 beside: In a few cases i've seen the effect, that my VI works just one time, then never again ? Have i done mistakes while installing anything. Or are there hidden registry entries ? Best Regards Andreas ...

Reference Objects in LabVIEW
Several attendees requested LabVIEW 8.5 data for the benchmarks I showed at my NI Week presentation - TS1284 - Reference Objects in LabVIEW.&nbsp; In addition, the severe performance degradation seen in Datasockets going from LabVIEW 7.1 to 8.2 was an artifact of my testing environment.&nbsp; I have fixed it and now actually see a performance improvement.&nbsp; I have updated the presentation and zipped it and the test code in the attachment below.&nbsp; I also tested in LabVIEW 8.5 with the following results, which can be compared to the presentation (same experimental setup)....

SPC Toolkit for LabVIEW
I started using SPC toolkit for a project in Labview 8.2.1, had no problem until I upgraded my system to labview 8.5.&nbsp; It said something like: &nbsp; &nbsp;&nbsp;&nbsp; Some subvis are too old to be converted to 8.5.I went to the Labview Developer suite CD album (labview 8.5), and couldn't find the SPC for LabVIEW, only for LabWindows / CVI.&nbsp; Then I went to NI's website and tried to find more about the toolkit, it seems this one had disappeared into thin air, along with the Enterprise connectivity toolkit (or Enterprice toolkit).Does anybody know if NI...

How to upgrade LabView 5.1.1 project to 8.5?
I need to upgrade a LabView 5.1.1 project to LabView 8.5. Is this difficult? Can I upgrade directly from 5.1.1 to 8.5? &nbsp; Thanks, Isaac iahastin wrote: Can I upgrade directly from 5.1.1 to 8.5? No. &nbsp; See page 43 of the 8.5 upgrade notes: <a href="http://www.ni.com/pdf/manuals/371780c.pdf" target="_blank">http://www.ni.com/pdf/manuals/371780c.pdf</a> &nbsp; &nbsp; I had suspected that LV 5.1 fell by the way-side. You'll have to upgrade to an earlier version and then go to LV 8.5. There may be complications since many things have c...

Labview 5.1 to 8.5 conversion error message
Hello We have some old&nbsp; VIs made with Labview 5.1 on Windows NT 2000.&nbsp; We are trying to back up our system and want to transfer those VIs to a new laptop which has Labview 8.5 and works on Vista. As per your suggestion to someone on a similar problem, i saved the VI in Labview 6 version and then opened it using 8.5 version.&nbsp; A warning appears as follows- Please explain is this a serious warning or should i just ignore it? If it is serious, how to open my VI in 8.5 without getting this warning? &nbsp; "globals305.vi&nbsp; Front Panel&nbsp;&nbsp;&a...

Moving from Labview 8.0 -&gt;8.5
Hi there, I was developing in Labview 8.0 and things were going fine. However when I upgraded to Labview 8.5 my solution just began to behave wierdly. &nbsp; My event parameter from a&nbsp;&nbsp;C# DLL&nbsp;which is an array&nbsp;that were being passed suddenly arrive empty arrays. When I use the Labview 8.0 to recheck, the event parameter was being passed correctly with data. Thus I copied out the C# dlls and created a small portion of the solution with the event handling in a new project in Labview8.5 and behold that the event now works. &nbsp; I would like to know ...

VISA issues when switching from Labview 5.0 to 8.5
Hello all &nbsp; I am using a pressure transducer that I read using RS-232. In Labview 5.0 I used the Read Serial VI and it worked with no issues (I also tested it with the VISA from 5.0 with no problems either). Now I have upgraded to 8.5 and I seem unable to communicate with it anymore. The usual error I get when i try to read is a timeout error. I ran the Troubleshooting Serial Line Monitor VI&nbsp;and it seems to work (RI blinks when the output lines are off, DCD RI and CTS blink when DTR is on, and RI DSR and CTS blink when RTS is pushed) The Basic Read and Write VI does not work...

Can Simulation module 8.2 be hooked to labview 8.5 How?
Hello It might seem odd and very stupid if you have done it before.I previously used a Labview 8.2 system.Now I have upgraded to Labview 8.5 system and Simulation Module 8.2 .I did install Simulation Module and it dint show up in my Labview 8.5 environment.Is there any manual&nbsp; method so that i can add this module on to 8.5&nbsp; . Im sure labview is backward compatibility.Is there a way to add this module to 8.5 so that i can work with this module ?Message Edited by Bharath kumar on 04-07-2008 09:53 AM Hi Bharath, What probably happened is that you installed the module under Lab...

ADI Blackfin 2.5, LabView 8.5 on VISTA problems
I have lot of problems running LabView 8.5 on ADI ADSP-BF537 EZLITE embedded module on VISTA SP1. &nbsp; Below are some examples as *.jpg. &nbsp; Continuing about 3 to 5 times until I can finaly "Build" the application. The same with Linker and Loader. &nbsp; I tried lot af adjustement, running LabView as Administrator and so far. &nbsp; I have spent about 3 days on this project. &nbsp; Does anybody have the same experience or some hints to improve the problem? &nbsp; Peter Horn <a href="http://www.phorn.info/" target="_blank">www.pho...

Problem upgrading a Labview Project from 8.0 to 8.5.1
Hi, &nbsp; I have two laptops - Laptop 1 has Labview 8.0 on it, and Laptop 2 has Labview 7.1.1 installed.&nbsp; I've just upgraded Laptop 2 to Labview 8.5.1 and copied all of my Labview 8.0 files over from Laptop 1.&nbsp; I did a mass compile on Laptop 2 and all the vi's work great.&nbsp; I've opened up a Project that I copied over from LV 8.0 and it looks like the Installers are ok.&nbsp; However, when I open the Properties on any of my Applications (EXEs) all of the Information is blank.&nbsp; When I type in the "Build specification name" and use...

Activate labview 8.5 with version 8.2.1 installed
I have a system with labview version 8.2.1 installed. Now we have got a new version, 8.5 witch I have also installed, with the same serial code. When I want to work with version 8.5 it asks to activate, but version 8.2.1 works the way it used to be. Did I instal it wrong? Upgrade insted of a new installation? Or should I unistal version 8.2.1 before installing version 8.5? As Matthew mentioned, all versions need to be activated. &nbsp; There is no reason to uninstall a previous version, you should actually keep it around in case you run into some upgrade issues. &nbsp; Your start menu...

Convert a vi written in LabVIEW 5.1for use with 8.5?
Is there any way to successfully open and convert a vi written in LabVIEW 5.1for use with 8.5? It needs to be opened and saved with an intermediate version, like 7.1/8.0. If it's just one VI or a small set you can post it here and someone will likely do it for you. Message Edited by smercurio_fc on 05-30-2008 02:07 PM That was a quick answer.&nbsp; Thank you. I don't have access to an older version of LabVIEW.&nbsp; It is only 1 small vi.&nbsp; How can I paste it here? Thanks again. When composing your message at the bottom there's an attachment section. Click the B...

Opening VI written in labview 5.0 with version 8.5
Hi, I am new to Labview. I have&nbsp;VIs to capture the Tektronics real time scope waveforms written in Labview 5.0.&nbsp;I am&nbsp;currently using is&nbsp;evaluation version 8.5. I am getting an error that the new version does not support these old files. I just want to open these files and look at the code for reference. Can anyone suggest a way to open these files. &nbsp; &nbsp; Thanks, Chakradhar One way would be for someone to open it in a version that still supported it and is supported by LV8.5. &nbsp; For instance, if you post the VI(s) (and hopefully not...

New Thread for Conversion of LabVIEW 5.1 code to 8.5
Eventually.....I got a way of starting a new thread to ask for codes conversion. Whoo hoo....:smileyvery-happy:There are some codes developed in LV5.1. In order to open them in LV8.5, I got to have them converted. Attached is a zip file including 6 files.Again, I really appreciate anybody could help me out!Thanks,Jiwei MPX.zip: http://forums.ni.com/attachments/ni/170/339255/1/MPX.zip Hi Jiwei, now they are saved for LabVIEW 7.1Mike MPX_LV71.zip: http://forums.ni.com/attachments/ni/170/339260/1/MPX_LV71.zip Thanks a bunch!! Jiwei Hi Mike, Can you convert these two files for me?Thanks ag...

how cani conver the labview 8.5 vi into 8.0.1
hi plese help me &nbsp; You have to save from 8.5 to 8.2 and then from 8.2 to 8.0 with "Save for previous" option. &nbsp; ChristianMessage Edited by Christian_M on 01-05-2008 06:37 AM ...