Case Structures in LabVIEW 8.5

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
x9561 (148622)
6/11/2008 6:40:07 PM
comp.lang.labview 35389 articles. 14 followers. vasusachin24 (1) is leader. Post Follow

4 Replies
85 Views

Similar Articles

[PageSpeed] 59
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
x9561 (148622)
6/11/2008 6:40:08 PM
That's exactly what I needed.&nbsp; Thanks!
0
x9561 (148622)
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
x9561 (148622)
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
x9561 (148622)
6/12/2008 10:40:06 PM
Reply:
Similar Artilces:

call/cc use cases?
can someone please provide a good explanation of call/cc, preferrably with good use cases. In particular, I want to see a use case where the escape procedure is called multiple times. Is it correct that call/cc is an analog of the C++ try{}catch(){} ? On Sep 7, 2:39 pm, m_l...@yahoo.com wrote: > can someone please provide a good explanation of call/cc, preferrably > with good use cases. > In particular, I want to see a use case where the escape procedure is > called multiple times. > > Is it correct that call/cc is an analog of the C++ try{}catch(){} ? call/cc is actually...

[ace-users] Compilation of ACE 5.5.3 fails on Mac OS X 10.4.8
Compilation of ACE version 5.5..3 (using GNU tools: mkdir build cd build ../configure --enable-static make fails on Mac OS X 10.4.8 (Intel-based). Compilation of ACE.cpp throws many errors that are copied below the problem report form. I can send the complete output when needed. ACE 5.5. compiles and builds without problems on the same machine. PROBLEM REPORT FORM ACE VERSION: 5.5.3 HOST MACHINE and OPERATING SYSTEM: Mac Pro (Intel) OS X 10.4.8 TARGET MACHINE and OPERATING SYSTEM, if different from HOST: COMPILER NAME AND VERSI...

Access Structure Member
Hello, I've got a structure x1 who is made of many other structures. I'd like to modify x1 with the datas of a sub-structure of him ... Working at this time: x1 = struct(x1.Name); And I'd like to obtain something like that to make the name of the sub-structure a parameter: param='Name'; x1 = struct(x1."param"); But i don't know how to code this last line ! Antoine <antoine.lamotte@gmail.com> writes: > Hello, > I've got a structure x1 who is made of many other structures. I'd > like to modify x1 with the datas of a sub-structure of h...

[ANN] webgen 0.5.0 released
Hey everybody! -------------- I just released a new webgen version and the 'new' is not overstated since it is really a complete rewrite of the 0.4.x series. The new 0.5.x series is not as feature rich as the 0.4.x series yet (most tags, source handlers and content processors are still missing), but provides some features not found before. One of these new features is partial site generation so that only changed files need to be regenerated! The following releases will make the 0.5.x series as feature rich as the 0.4.x series again. webgen now uses git as its VCS and has its main r...

US-TX-Austin: Configuration Eng., C/C++,windows,unix,clear case,GUI, command lin (45350858276)
US-TX-Austin: Configuration Eng., C/C++,windows,unix,clear case,GUI, command lin (45350858276) ============================================================================================== Position: Configuration Eng. Reference: ZYD00010 Location: Austin TX Duration: Skills: Design and develop advanced SCM system using Rational ClearCase UCM/Windows. Migrate the current (UCM) project repository to a new repository.Work with IT, the ClearCase server ´┐Żowners´┐Ż, to ensure our SCM needs are met. Customize Clea...

Case-Control Matching
Hi All, I am new to this group, and will appreciate any help with respect to my ques. I am doing a case-control study to compare the costs of women with breast cancer to those of women without breast cancer. I want to do an exact match of each breast cancer case in my study with 2 controls based on age, race, and county (all numeric). I have been trying different codes, but to no avail. I will appreciate if someone could help me write a SAS code which could do the matching. I have one large file which lists both the case and the control population. My variables are =96 age, race,...

\begin{cases}...\end{cases}
Is there an \IF or similar construct one can use in this environment as eg \[ f(x) = \begin{cases} 1 \IF x \equiv 2 \bmod 4\\ .... \end{cases} \] If not, wouldn't it save a lot of time if there were? -- Timothy Murphy e-mail: gayleard /at/ eircom.net tel: +353-86-2336090, +353-1-2842366 s-mail: School of Mathematics, Trinity College, Dublin 2, Ireland Timothy Murphy <gayleard@eircom.net> wrote: > Is there an \IF or similar construct one can use in this environment > as eg > \[ > f(x) = > \begin{cases} > 1 \IF x \equiv 2 \bmod 4\\ > ... > \end{cases} >...

US-OH-Canton: Developer, 3-5 YEARS exp, VB, Web, SAS, SQL, Access; 6M (45342914402)
US-OH-Canton: Developer, 3-5 YEARS exp, VB, Web, SAS, SQL, Access; 6M (45342914402) =================================================================================== Position: Developer Reference: SMC01982 Location: Canton OH Duration: 6M Skills: 3-5 YEARS VB Web SAS SQL Access Scope: Project Title * E*Commerce Resource Project Description * Resource will be used for new application development and backfilling a client resource. Please se...

CASES
Does anyone know of a really good case that will fit a PSION 3a (that is of course still sold!). Thanks, Dan ...

Software Testing Conference 2011(July 2nd, Bangalore) #8
Hi , I got to know of an exciting event happening in Bangalore on July 2nd. I guess it will add a great value to all the Testing professionals in the Testing domain. I believe it is worth attending as there are interesting topics. (See the Sessions below). The Conference starts at 8.30 AM. The Venue is Nimhans Convention Center, Near Dairy Circle, Bangalore. The Conference organizers will call you back to confirm. When I called, they had 300 more seats left. Please find below is the url to go through the website: http://tinyurl.com/Softtec Test Professional TRACK: =93The ugly duckling...

SCXI 1531 IEPE in LabVIEW
I have a question regarding turning on the SCXI-1532&nbsp;internal IEPE source programmatically in LabVIEW 8.0.&nbsp; Background:&nbsp; I am using a SCXI-1000 chassis with a SCXI-1600 DAQ, SCXI-1531 and a SCXI-1120 card to collect signals.&nbsp; When testing out accelerometer signals&nbsp;under NI-DAQmx Devices in&nbsp;Max 4.0,&nbsp;I can hear the relays closing on the 1531 module to provide the constant current source.&nbsp;&nbsp;&nbsp; &nbsp; Problem:&nbsp; When trying to switch the internal IEPE source on programmatically in LabVIEW, I do not...

FAQ 1.5 What was Ponie? #4
This is an excerpt from the latest version perlfaq1.pod, which comes with the standard Perl distribution. These postings aim to reduce the number of repeated questions as well as allow the community to review and update the answers. The latest version of the complete perlfaq is at http://faq.perl.org . -------------------------------------------------------------------- 1.5: What was Ponie? (contributed by brian d foy) Ponie stands for "Perl On the New Internal Engine", started by Arthur Bergman from Fotango in 2003, and subsequently run as a project of The Perl ...

Need4 Video Converter 8.1
Need4 Video Converter software is the most complete MPEG, DVD, FLV, MP4 and AVI video converter software moving videos between all popular formats - AVI, DVD, DivX, Xvid, VOB, MPEG, MP4, M4V, 3GP, H.264, FLV, MOV, RM, WMV, MTS, M2T, MKV, VRO. Split and merge video files. Convert video and unprotected DVDs using ready-made presets for various devices: iPod, iPad, PSP, iPhone, BlackBerry, Zune, Archos, PDA, cell phones - Nokia, Samsung, LG, Sony Ericsson, HTC, PlayStation 3, Xbox and many other devices. Extract audio to MP3. Enjoy the highest conversion speed on the market! Need4 Vi...

Re: Re: Best construct for control structure
Maybe you are looking for this (from Maeders' Programming in Mathematica) Attributes[Until] = {HoldAll} Until[body_, test_] := Module[ {t}, For[ t=False, !t, t=test, body ] ] E. martin-Serrano -----Original Message----- From: Carl K. Woll [mailto:carlw@u.washington.edu] Subject: Re: Best construct for control structure "Usenet poster" wrote: > Dear Mathematica gurus, > > I'm trying to learn the right way to code a homebrew control structure. As > a > example, I've tried coding the following (of course, a For could also do > i...

Practically free 4-day Java EE 6 and 7 Codecamp (May 6,7,8,9) from JPassion.com
The Practically free 4-day "Java EE 6 & 7" Live, Instructor-Led Online Codecamp is scheduled as following: -May 6th, 2014 (Tueday)-9th(Friday) 9:30AM-4:30PM EDT (New York time) -Registration: https://www3.gotomeeting.com/register/921716510 -Pre-requisites: Some Java web programming experience Topics we are going to cover include the following -Java EE 6 and 7 overview -Servlet 3.0 Basics -Servlet 3.0 Advanced -CDI Basics -CDI Advanced -JSF 2.0 Basics -JSF 2.0 Templates and Composite components -JSF 2.0 Ajax -JSX 2.2 (from Java EE 7) ...

Re: R #8
I have long thought SAS was giving up major ground to other languages because of the inability to easily integrate matrix manipulations with other pieces of their analytic modules. The procedure/data step boundary makes SAS a relatively simple language to learn, but reduces the extensibility of SAS. I have lamented that state for some time, and have posted on that more than once. Apparently, SAS has been listening to that argument (or, likely, they have had the same observation themselves.) SAS has released a couple of improvements that provide some integration of matrix processing with pro...

x(t)=e^-2|t| and y(t)=e^-2|t-5| and after fft
x(t)=e^-2|t| and y(t)=e^-2|t-5| and after fft i simulate angle of Y(jw) , i expected saw tooth wave form. but it didn't. i don't know why matlab show strange wave form instead saw tooth wave form. X(jw)=1/(4+w^2)<0' , Y(jw)=e^-j5wX(jw)=1/(4+w^2)<-5w below is my matlab code clear all; tau=0.01; T=10; t=[0:tau:T-tau]; N=T/tau; y(1:500)=exp(2*t(501:1000)-10); y(501:1000)=exp(10-2*t(1:500)) figure(1) plot(t,y) set(gca,'FontName','times','FontAngle','normal','FontSize',14,'FontWeight','bold'); title('y(t)=x(t-5)=...

Why not a parallel control structure?
I often come across the need to run several identical and independent operations at the same time. I almost always end up doing them sequentially instead because I can use a for loop for this. It would be a great asset to parallel programming if there was a "for loop" like structure that ran all iterations at the same time (multithreaded, reentrant support, of course). One could then send a command and wait for a response on several instruments at once (in parallel) without having to spend as much time waiting sequentially for each to complete. The input tunnels could be arrays in wh...

Create duplicate cases
Hello all, We want do restructure a data file with inpatient episodes, please see datasets FROM (what we have) and TO (what we wish) below. How can we do this in SPSS? I'm very grateful for any suggestions. Dag Tidemalm, Stockholm, Sweden FROM: YR SEX AGE CODE1 DIAGN NUMB EPISODES 1997 M 15-19 X6190 F100 1 1997 F 15-19 X6199 F100 2 1997 M 15-19 X6199 F100 1 1997 M 15-19 X6409 F430 2 1998 F 15-19 X8490 F199 1 1998 M 15-19 X8499 F130 3 TO: YR SEX AGE CODE1 DIAGN NUMB EPISODES 1997 M 15-19 X6190 F100 1 1997 F 15-19 X6199 F100 1 1997 F 15-19 X6199 F100 1 1997 M 15-19 X619...

Re: Best Practices
I wrote: > >That is a beginner's or apprentice's approach > >* to be avoided: > > * macros without parameters > > * everything in one file A Concerned Reader writes: > -----Original Message----- > I disagree. sometimes everything in one file is the best way > to maintian code, especially to give it to somebody who does > not work on your project. none of this, 'oh yeah, you need > this also...' as you work through somebody's code. not to > mention 'yeah, I had that macro somewhere, but I don't > remember what it did o...

knoppix 5.3 screen resolution issue
this is a hard disk install and i need to change the screen resolution using the display setting section in control center it is set on 1152 x 864 which doesnt quite fill the screen - it looks pretty good in 1024 x 768 mode - so i change the settngs and check apply KDE settings at startup - on reboot it reverts to 1152 x 864 obviuosly this needs to be set somewhere else - hopefully someone can provide some guidance thanks in advance scul ...

PSP 8 and Wacom
Hi, Can we use Paint Shop Pro 8 with a Wacom tablet? Thanks, Richard Sure. Richard wrote: > > Hi, > > Can we use Paint Shop Pro 8 with a Wacom tablet? > > Thanks, > > Richard >Subject: PSP 8 and Wacom >From: "Richard" >Hi, > > Can we use Paint Shop Pro 8 with a Wacom tablet? > > Thanks, > > Richard Definately. And check out the Brush variance palatte for more options for your Wacom :-) Michelle ;-) ...

const c structure question
Hi all, I have this struct typedef: typedef struct { int * test; }testst; and have this declaration: const testst abc; What is constant? The pointer (like in: int * const test) or the integer (like in const int * test) or both? Thanx, Milux "nospam" <""miluxkloosterman\"@(nospam)home.nl"> wrote in message news:f446g0$qm5$1@netlx020.civ.utwente.nl... > Hi all, > > I have this struct typedef: > > typedef struct > { > int * test; > }testst; > > and have this declaration: > > const testst abc; > > What is con...

Is it bad to use references in these cases?
Hi everyone, A while ago I asked for help about using smart pointers (ie. shared_ptr) in cyclic situations. Weak ptrs popped out and I gave it a try, but to be honest, I don't feel very comfortable with them. Would using references be a bad choice? The more I think about it the more I realize it shouldn't be any problem with them, so could it be a good use case? As a refresher, this would be one situation where I'm planning to use it: class provider { public: provider(observer& obs) : obs_(obs) {} private: observer& obs_; }; class creator : public observer { pub...

Re: LabView and Spider8 from HBM
Alexandre: If the Spider 8 conforms to the USB Test and Measurement Class (USBTMC) protocol, then no configuration will be necessary to communicate. Once connected to your computer, the device should appear in the Measurement and Automation eXplorer (MAX) under USB devices. If it not, TMC compliant, you will have to use the <a href="http://zone.ni.com/devzone/cda/tut/p/id/4478" target="_blank">Visa Driver Development Wizard </a>to configure it. I hope this helps. Rudi N. ...