f



Using "To-upper-case" on cluster with Enum (LabVIEW 8.2)

Hi folks,
     The following example won't compile on my installation of 8.2 !
 
 
<img src="http://forums.ni.com/attachments/ni/170/225670/1/ClusterErr.jpg"> 
&nbsp;
Cheers.Message Edited by tbd on 01-23-2007  09:21 PM


ClusterErr.jpg:
http://forums.ni.com/attachments/ni/170/225670/1/ClusterErr.jpg


ClusterErr.vi:
http://forums.ni.com/attachments/ni/170/225670/2/ClusterErr.vi
0
x9561 (148438)
1/24/2007 3:40:07 AM
comp.lang.labview 35210 articles. 1 followers. vasusachin24 (1) is leader. Post Follow

7 Replies
935 Views

Similar Articles

[PageSpeed] 39

It fails the same way under LabVIEW 8.0. Clearly something is not handled properly.
(Of course I don't quite see the general&nbsp;usefulness to use "to uppercase" on a simple&nbsp;enum. ;))
0
x9561 (148438)
1/24/2007 5:40:08 AM
altenbach wrote:

(Of course I don't quite see the general&nbsp;usefulness to use "to uppercase" on a simple&nbsp;enum. ;))


(tbd momentarily ponders: "Why does it seem there's always something Altenbach doesn't quite see?") 
&nbsp;
Oh, gee,&nbsp;do it (enum to upper-case) all the time&nbsp;when I forget and type enumerated-case-values in all upper-case. :smileywink:
&nbsp;
&nbsp;
0
x9561 (148438)
1/24/2007 7:10:07 AM
<img src="http://forums.ni.com/attachments/ni/170/225670/1/ClusterErr.jpg"> 
&nbsp;
Indeed it doesn't compile.&nbsp; But the To Upper Case VI handles numbers as ASCII codes.&nbsp; How would converting an enum value of 97 to 65 be useful to you?&nbsp; Are you trying to capitalize the strings in the enum's typedef?&nbsp; A case structure shouldn't allow you to create a new case for an enum input if the string doesnt match exactly...&nbsp; Howabout just using an integer and an array of strings?
&nbsp;
If you really want to get the enum strings at runtime, OpenG has a few functions to help with such silliness.
0
x9561 (148438)
1/24/2007 8:10:09 AM
tbd wrote:

&nbsp;
Oh, gee,&nbsp;do it (enum to upper-case) all the time&nbsp;when I forget and type enumerated-case-values in all upper-case. :smileywink:


The way I understand "to uppercase", it will just turn the enum into an unsigned integer, then remap certain values according to their ASCII representation (See figure).&nbsp;You can do the experiment yourself.&nbsp;(From the online help: If string is a numeric value or an array of numeric values, each number is evaluated as an ASCII value. The To Upper Case function translates all values in the range of 97 to 122 into values over the range of 65 to 90. All other values remain unchanged.) Actually, the help is incorrect, it touches a few more ranges&nbsp;for 8 bit ASCII (again, see figure)
<img src="http://forums.ni.com/attachments/ni/170/225698/1/ToUpper.png"> 
Actually, the online help for "To Upper Case" does NOT mention support for enums at all (quote: string can be a string, a cluster of strings, an array of strings, or an array of clusters of strings.)
So, having an enum with only two values as in this case, will not remap anything anyway, you'll need an enum with&nbsp;97+ values to even see a difference. It definitely does not change the case-ness of the enum strings!
WIre an enum to a case structure, then insert a "to uppercase" in-between. You'll loose all the enum strings....Message Edited by altenbach on 01-23-2007  11:46 PM


ToUpper.png:
http://forums.ni.com/attachments/ni/170/225698/1/ToUpper.png
0
x9561 (148438)
1/24/2007 8:10:09 AM
Hey! Guys!, I wasn't serious! :smileysurprised:
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; I'd assembled a&nbsp;bundle&nbsp;of (mostly) strings collected from a GUI, and&nbsp;wanted all the strings&nbsp;upper-case.&nbsp; I thought it would be much cleaner to put the "to-upper-case" on the cluster-wire, this also lets the bundle-by-name be changed without managing a "to-upper-case" for each input.&nbsp;&nbsp;Tried it, and... Hey -it&nbsp;worked!&nbsp; Chalk another-one up for polymorphism!
... then, strangely, I couldn't save my VI without a series of very odd error-pop-up dialogs.
I thought Altenbach was kidding, so I kidded back.&nbsp; ...but&nbsp;if&nbsp;you were serious, then my response to:
&gt; (Of course I don't quite see the general&nbsp;usefulness to use "to uppercase" on a simple&nbsp;enum)
is: You seem to be assuming that the intention was to apply "to-upper-case" to the enum.&nbsp; It's not.&nbsp;&nbsp; The intention was to apply "to-upper-case" to the Strings in the cluster.&nbsp; I thought&nbsp;it was&nbsp;supposed to work that way, else they should just break the wire if any elements are not strings - like they do if converting cluster to array but cluster data-types are dissimilar.
... However, having just read the help for&nbsp;"to-upper-case", it looks like only clusters of strings should be legal.Message Edited by tbd on 01-24-2007  03:21 AM
0
x9561 (148438)
1/24/2007 9:40:08 AM
tbd wrote:


I thought Altenbach was kidding, so I kidded back.&nbsp; 


I wasn't sure if you were kidding or found some very creative way around an obscure non-problem, so I investigated. :D
Anyway, you can replace the enum with a plain integer in the cluster and LabVIEW is perfectly happy and compiles just fine, so there is no reason why LabVIEW should choke on the enum. It's a bug.
Try it with a cluster containing a mix of strings and integers, it's all fine. :)
0
x9561 (148438)
1/24/2007 5:10:10 PM
Hi Altenbach,
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Thanks for not reacting to my over-reacting. :smileyhappy:
&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Since, as your graph illustrates, the "to upper case"&nbsp;does operate&nbsp;on&nbsp;a Cluster's numeric elements (including floats!),&nbsp;it's not safe to employ&nbsp;it (to cluster wires)&nbsp;a cavalierly as I'd imagined might be possible. :smileysad:
&nbsp;
It's interesting that (within the cluster)&nbsp;a "VISA resource" type is tolerated, but a "path" breaks it. :smileysurprised:
&nbsp;
I'm in agreement with Shane re:silly to apply to enums (SGLs, DBLs,... ) better to give us the choice!:
&nbsp;
Cheers!Message Edited by tbd on 01-25-2007  12:25 AM
0
x9561 (148438)
1/25/2007 6:40:07 AM
Reply:

Similar Artilces:

Error 1047 in LabVIEW 8.2: LabVIEW failed to send variable to the script server. Server:&quot;&quot;
I am working with the evaluation version of labVIEW as well and I have run into another error.&nbsp; I am using a MATLAB script node within a for loop and attempting to pass the for loop counter variable into the script.&nbsp; When I run the code it brings up a 1047 error and says "LabVIEW failed to send variable to the script server. Server:"" ".&nbsp; I looked up the error online which seems to have roots in a failed auto initialization of MATLAB.&nbsp; Is there something that I can do in labVIEW to fix the problem or is it strictly a MATLAB error? &nbsp; I really appreciate your help. Hi Patsenat, &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; We have a knowledgebase document on our system referring to this issue.&nbsp; Try reading through <a href="http://digital.ni.com/public.nsf/allkb/2B3FF46C8512C4F786256CF30071BE53?OpenDocument" target="_blank">this</a> and attempting what it says.&nbsp; If you still have problems, please post again. ...

How can I modify the &quot;Type definitions&quot; of &quot;Function Prototype&quot; if I want build a DLL in Labview 8.5.1.?
Hello,We have a library with several VIs (API - Interfaces to our Real Time Target). This VIs we provide to our customer to generate own VIs to control the Real Time Target.Now we want to provide the functionality of this VI-library as DLL to our customer. The problem is, that labview use self definite name of type definitions. Also if I use "strict Type definition".Example:void GetOutputValues(VARIANT *Scale_In, int32_t ModelNr, uint16_t SignalID[], TD1:smileymad: *errorIn, VARIANT *Scale_Out, TD2 *Data, TD1 *errorOut, int32_t len)It is possible to modify "TD1" and "TD2"? I want to give useful names.GreetingsSteffen Hi Steffen, &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Try&nbsp;editing the .h file as follows: CHANGE FROM: typedef struct {&nbsp;LVBoolean status;&nbsp;long code;&nbsp;LStrHandle source;&nbsp;} TD1; CHANGE TO: typedef struct {&nbsp;LVBoolean status;&nbsp;long code;&nbsp;LStrHandle source;&nbsp;} TD1; typedef struct {&nbsp;LVBoolean status;&nbsp;long code;&nbsp;LStrHandle source;&nbsp;} LVErrorCluster; then your GetOutputValues prototype becomes: void GetOutputValues(VARIANT *Scale_In, int32_t ModelNr, uint16_t SignalID[], LVErrorCluster *errorIn, VARIANT *Scale_Out, TD2 *Data, LVErrorCluster *errorOut, int32_t len) If your source-code doesn't refer to "TD1", then&nbsp;you probably won't need to keep the TD1 prototype! Cheers. ...

Adding an &quot;IMAQ Image.ctl&quot; to the &quot;Display State.ctl&quot; of an XControl prevents LabVIEW from creating a probe of &quot;Display State.ctl&quot;
I am working on an extended IMAQ Display control using LabVIEWs XControl capabilities. &nbsp; I need a copy of the original image passed to add some overlays which must not affect the original image. To achieve this I am creating a backup image in the "Init.vi" and deleting it in the "Uninit.vi". I am storing the reference&nbsp;of this image&nbsp;in the "Display State.ctl" which is part of every XControl. &nbsp; As soon as I am adding an "IMAQ Image.ctl" to the Display State cluster, it is no longer possible to generate a probe of the Display State cluster for debugging purposses. I am always getting the message: "Failed to load or create probe." Deleting the "IMAQ Image.ctl" from the cluster makes the probe working again. &nbsp; Is it a bug or am I doing something wrong? &nbsp; I am working with LabVIEW 8.5 and Vision 8.5. &nbsp; Regards &nbsp; Ingo Bartsch Hello Mr. Bartsch, is it possible for you to post a small example to reproduce the behaviour? It would be helpful to get a description in which way you use the typedef files. I found a example/knowledge base where some informations were included to XControl and LV but not with Vision. <a href="http://digital.ni.com/public.nsf/allkb/1DC1ADD2A136DA298625712C00635758?OpenDocument" target="_blank">http://digital.ni.com/public.nsf/allkb/1DC1ADD2A136DA298625712C00635758?OpenDocument</a> Best wishes Ja...

plug-in &quot;not installed&quot; in my LabVIEW project's &quot;Build Specifications&quot;
I moved my LabVIEW project from one computer to another, now when I click on any item under the project's "Build Specifications", I get an error reading "The plug-in for the selected item is not installed on your system." Does anybody know how to fix this? I have no idea what this "plug-in" is.Attached is a screenshot. plug-in error.PNG: http://forums.ni.com/attachments/ni/170/222664/1/plug-in error.PNG ...

Installer &quot;Source file settings&quot;, &quot;VI Settings&quot; problem in 8.2
I have just upgraded from LabVIEW 8.0 to 8.2 and it seems the Installer "Source file settings", "VI Settings" check boxes no longer have any affect on the built application. &nbsp; For example, if I un-check the "Show Menu Bar" boxes for my Main.vi and build, when I run the built application the Main.vi Menu Bar is visible. &nbsp; It seemed to work as expected with 8.0 though. &nbsp; Any help and suggestions are much appreciated. &nbsp; Aaron Hi Seamus, Thanks for that and I look forward to hearing from you again Aaron ...

Acqiuring data in &quot;Idle&quot; case and &quot;Go&quot; case
See SM Tester Bill 8-16-07 in the attached llb. &nbsp; On the block diagram, upper while loop, case "Idle" I have a Daq&nbsp;sub vi that displays the value on the front panel in a cluster on the front panel. (Works great) This allows the user to see the readings of the devices when they are mounting the pecimen under test.&nbsp; &nbsp; Next, I want to use the same Daq sub vi to display the data (to the same cluster on the fromt panel)&nbsp;&nbsp;for the&nbsp;"Go" case. In addition, I want the data collected in the "Go" case to be saved to a file. The intent is to collect the data as the motor moves. &nbsp; If I place my Daq sub vi in the "Go" case the data isn't collected because the "SM Move" vi then runs.&nbsp; If I place the Daq sub vi in the "SM Move" vi, the cluster appears on the front panel of the "SM Move" vi, not the main panel.&nbsp; &nbsp; Can someone suggest some good programming practices? &nbsp; Thanks, &nbsp; Bill SmartMotor.llb: http://forums.ni.com/attachments/ni/170/265911/1/SmartMotor.llb Hi Bill, &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; I looked at your code (there are a few missing&nbsp;"SER"ial-port related VI, nothing serious)&nbsp;and have a question before suggesting a solution:&nbsp; I want the data collected in the "Go" case to be saved to a file. The intent is to collect th...

How to interface the Labview and Simulink (Matlab) without using the &quot;NI LabVIEW Simulation Interface Toolkit&quot;?
Hello, I've been using the Labview for the data aquisition. And I also developed a controller in the Simulink (Matlab) environment. I'd like to control my application using both&nbsp;programs. How&nbsp;could I&nbsp;interface the Labview and Simulink (Matlab) without using the "NI LabVIEW Simulation Interface Toolkit"? thank you, Kostya. Hi Kotsya, Thank you for posting to the National Instruments Discussion Forums. If you are not using the Math Interface Toolkit, you may be interested in using the MATLAB� Script Node. This allows you to call MATLAB� commands using ActiveX and I you can call your Simulink model from MATLAB� that way. Here are some resources on how you can do this: <a href="http://zone.ni.com/reference/en-XX/help/371361B-01/gmath/matlab_script_node/" target="_blank">MATLAB � Script Node LabVIEW 8.2 Help</a> <a href="http://digital.ni.com/public.nsf/websearch/4475BC3CEB062C9586256D750058F14B?OpenDocument" target="_blank">How Can I Resolve MATLAB� script node and Xmath Script Node Issues in LabVIEW?</a> Hope this helps! Hi, Abhinav, thank you for your reply. I will try to explore the option with the Script Node. regards, Kostya. &nbsp; &nbsp; ...

How can I convert the &quot;AI one pt&quot; symbol from LabVIEW 6.3 to LabVIEW 8.0?
Hi, &nbsp; I've got an assignment with LabVIEW and&nbsp;I work with LabVIEW 8.0. The program I work with is written in LabVIEW 6.3 and had to be converted&nbsp;to LabVIEW 8.0. That went very well, except for one symbol. The "AI one pt" symbol (see&nbsp;enclosed figure) turned into an empty box (question mark). My question to you is how can I overcome this problem, or how can I simulate this symbol with LabVIEW 8.0? &nbsp; With kind regards, &nbsp; Sander Smeets &nbsp; <img src="http://www.ese.upenn.edu/rca/software/Labview/labview41/inputoutput/AISamplechannel.gif"> Hello, Graziano is right about this. To make it completly clear: The block you refer to as a symbol is a VI belonging to the Traditional NI-DAQ driver. Currently there are two drivers for DAQ boards: DAQmx (the new one) and Traditional NI-DAQ (the old one). Since your VI was written in LabVIEW 6.x (6.3 never existed) the VI uses the old driver. What you need to do is: install Traditional NI-DAQ on your PC to get the support VI's for the driver in LabVIEW. This Traditional NI-DAQ installer&nbsp;should be on the driver CD which was delivered along with LabVIEW 8.0 or you can download it here: <a href="http://joule.ni.com/nidu/cds/view/p/id/586/lang/en" target="_blank">http://joule.ni.com/nidu/cds/view/p/id/586/lang/en</a> There is one good point though which Graziano already mentioned: Which DAQ board are you using? I...

&quot;Key Down&quot; event use in one page of tab control prevents using &quot;Value Change&quot; events on another page, even though separate case structure blocks handle the two
The attached VI has a tabbed control with two pages. On one page, titled "Using Value Change Events",&nbsp;there is a control and an indicator, and the underlying code processes a Value Change event on that control by adding one to the number and displaying it on the indicator. On the other page, titled "Using Key Down Events", there is an indicator, and the underlying code processes a Key Down event by displaying the scancode on the indicator. Both these underlying code blocks are in different cases of a case structure chosen by the tab control. Some extra items are necessary to be able to stop those blocks from cycling if the tab is switched or the End VI button pressed. &nbsp; Or, at least, that's what I wanted. &nbsp; What actually happens agrees with the above, if the Increment/Decrement is used to change the value in the control on&nbsp;the Value Change page.&nbsp;But everything stops responding if I type in the control to change the number. &nbsp; I think the problem involves the Key Down event structure, which is in what should be an inactive case of the case structure when this problem occurs. If I put a Disable structure around that Key Down event structure, the Value Change page items all work fine. Of course, the Key Down page items don't do anything with the Disable in place. &nbsp; Why does having a Key Down event handler in an inactive case structure make a difference? How can I use both event types on dif...

How to use &quot;GetLastInputInfo&quot; in &quot;user32.dll&quot;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Hi, &nbsp; I need to logout user if he doesn't make action during 5 minutes, "GetLastInputInfo" method in the "user32.dll" library, return the tick of the last action, so I can&nbsp;know the inactivity time of the login user. &nbsp; But I try to using "Call Dll function" item in Labview 8.1, and each time I run VI, Labview crash. &nbsp; Next, is information about the method : &nbsp; DLL###############################User32.dll &nbsp; Syntax###############################BOOL GetLastInputInfo(PLASTINPUTINFO plii); &nbsp; Parameters###############################plii : [out] Pointer to a LASTINPUTINFO structure that receives the time of the last input event. Private Type LASTINPUTINFO &nbsp;&nbsp;&nbsp; cbSize As Long &nbsp;&nbsp;&nbsp; dwTime As Long End Type Return Value###############################If the function succeeds, the return value is nonzero.If the function fails, the return value is zero. &nbsp; Remarks###############################This function is useful for input idle detection. However, GetLastInputInfo does not provide system-wide user input information across all running sessions. Rather, GetLastInputInfo provides session-specific user input information for only the session that invoked the function. &nbsp; You can see also my VI source. &nbsp; GetLastInputInfo.vi: http://forums.ni.com/attachments/ni/170/31...

What is the equivalent of the &quot;AI waveform scan.vi&quot; in Labview 8.2 on the Windows Vista platform
Hello, I'm a very newcomer in the Labview area. I'm trying to develop an interface for my lab activities. Now I'm in the way tu switch from Labview 6.1 to Labview 8.2. On the lab computer is installed Windows Vista. The traditional DAQ in not working properly so I installed the DAQmx but neither this is not working properly. My question is what s the equivalent of the "AI waveform scan.vi" in Labview 8.2&nbsp; on the Windows Vista platform? Best wishes to all You first need to check the version of DAQmx that you have installed. The first version with Vista support is 8.5. The latest is <a href="http://joule.ni.com/nidu/cds/view/p/id/965/lang/en" target="_blank">8.7.1</a>. Second, AI Waveform Scan was a fairly high level VI that called multiple DAQ functions. There is no single replacement that I am aware of. You need to use the low level DAQmx functions such as DAQmx Create Channel, DAQmx Timing, DAQmx Start Task, DAQmx Read, etc. If you are converting an old program, you might want to attach that so that someone can look at it and recomend what you need for the conversion. ...

The use of the &quot;XY graph&quot; with the &quot;Read Traces&quot;
Hi, I'm trying to plot on "XY Graph"&nbsp; some informations wich are taken directly from the "Read Traces", and the problem is that the Start timestamp wich i enter to the "Read Traces" don't correspond to the beginning of the X axeof the graph. Can some one help me please. Question pour le forum NI.doc: http://forums.ni.com/attachments/ni/170/334716/1/Question pour le forum NI.doc Hi basile Have you found an issue about your problem? Could you attach you code(.vi) please? Thanks. Regards. Hi&nbsp;&nbsp; R_DUVALThank you for your help but I found the solution to my problem.Best Regards ...

Error Code &quot;1097.....this might corrupted LABVIEW's memory..........&quot; appears after exit the labview and re-start labview
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;I have a probelm when I use the "tool/import shared library(.dll)" wizard&nbsp;to generate the&nbsp;API from C. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; The API &nbsp;works correctly when I complete the wizard, but after I exit labview and re-start labview to run&nbsp;the API&nbsp;again. The error 1097 code "......this might corrupted LABVIEW's memory.............."appears. &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The only solution now is to re-generate or update the wizard to&nbsp;generate the API. &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;I try to find the answer in &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="http://digital.ni.com/public.nsf/allkb/58596F5D41CE8EFB862562AF0074E04C?OpenDocument" target="_blank">http://digital.ni.com/public.nsf/allkb/58596F5D41CE8EFB862562AF0074E04C?OpenDocument</a>&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; The paragraph in above article shows ........................... &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "LabVIEW does not crash until it is closedThe most likely problem is that the DLL function being called has corrupted th...

Re: VisualBasic &quot;Show &amp; Hide&quot; equivalents in LabView
Hi, I want to show/hide the Labview Help programatically. (Just on the click on single button) How it can be done? Do i have to use event structure on Ctrl + H buttons???:smileyindifferent: Please suggest some solution. Thanks There's a help palette with a primitive called Control Help Window, which should do what you want (assuming you want the context help). <img src="http://forums.ni.com/attachments/ni/170/336539/1/untitled5.PNG"> Message Edited by mathan on 07-01-2008 07:07 AM untitled5.PNG: http://forums.ni.com/attachments/ni/170/336539/1/untitled5.PNG Hi Tst, Thanks. i know that there is a Context Help Window where you can see the help for all the functions or Labview help. i want to show/hide this window programatically. Is it possible? Thanks. Thanks Mathan, This is what i wanted. Thanks. Hi Dev, the first of those functions ("context help window") is what you need - as you can read in the context help window for that function!!!:smileyvery-happy: Yes, i got it. thanks . ...

Labview &quot;Fatal Internal Error &quot;memory.cpp&quot; line 1038
Hi, &nbsp; This is an example file provided by NI and can be found in Labview 8.2\examples\instr\niHSDIO: Dynamic Generation.lib. Inside this library, there is a file called "Dynamic Generation.vi". If I copied "Dynamic Generation.vi" to other place, the labview will crash. Error message: &nbsp; "Fatal Internal Error. "memory.cpp". Line 1038. Labview version 7.1.1. You will lose any unused work, please contact NI, etc, etc" &nbsp; In the mean time, the Windows freeze. Mouse right click no response. No status bar at the bottom of the screen. The whole desktop is blank. All icons on the desktop disappeared. I have to log-off and re-login to re-active everything. &nbsp; I also tried to copy&nbsp;other VI's in other library files. Same thing happened. &nbsp; Thanks, Jing I&nbsp;was using Labview 8.2.1 when I had this crash, though I have Labview 7 installed in the same computer. When I "copy the file to some other place", I mean: Click the *.vi file, ctrl-c and ctrl-v to some other directory. Thanks, Jing ...

How can I use an iteration value from a &quot;while&quot; (or &quot;for&quot;) loop as part of a filename?
I am using the "Write To Measurement File" function&nbsp; inside a while structure and would like to incorporate the iterative value from the while-loop as part of the file name. I'm not sure how to do it. Any suggestions? &nbsp; ...

&quot;re-entrant&quot; &quot;file I/O&quot; &quot;QSM_State Machines&quot;
&nbsp; &nbsp; I have trouble with writing (appending) to text file in a QSM that is in an "occurence mode" of operation whereby the queue waits for outside engueue to go ahead and do a task. The task is simply to write to a file a line of text. &nbsp; Outside producers give the queue its go ahead and data is sent along etc... &nbsp; WHat I am seeing in the logging functions are multiple errors (Error 1) Somehow Labview&nbsp;is not noticing that the reference is valid or it is invalidating the reference. &nbsp; Q is Should I just let the QSM loop to keep it alive and would that work? &nbsp; What is the rule concerning queue waiting for an event? Does the VI get flagged as idle and is that why the ref appears to be dropped?&nbsp; THere is no reason I can think of for the ref to be dropped. It is opened in the init frame then kept in a shift register. and available at each iteration in the QSM. &nbsp; The example works in a simple loop but not a loop that is waiting on an occurence.&nbsp; Why? &nbsp; The only work around I can manage is to use the path and open the reference when it is not valid which feels kind of&nbsp; silly if you get my drift &nbsp; Anyone seen this before? &nbsp; Thank You &nbsp; &nbsp; &nbsp; ...

LabVIEW 8.5.1 &quot;The build was unsuccessful&quot;
When attempting to build my executable in LabVIEW 8.5.1 I get the following dialog: &nbsp; <img src="http://forums.ni.com/attachments/ni/170/338657/1/Build%20Errors.PNG"> &nbsp; I've tried recreating my build specification, reinstalling LabVIEW, commenting out sections of my code and nothing seems to help.&nbsp; Has anyone encountered this before?&nbsp; Any ideas NI?Message Edited by FlamingYawn on 07-08-2008 11:24 AM Build Errors.PNG: http://forums.ni.com/attachments/ni/170/338657/1/Build Errors.PNG Hi, &nbsp; Are you building a .exe application? In that case, please verify that all your startup and always included VIs exist in the same path and have been properly compiled. You can try Tolls&lt;VI Analyzer&lt; Mass Compile. Also are you using DSC or shared variables in your code? &nbsp; Ipshita C. Hi Ipshita, &nbsp; Thanks for responding.&nbsp; &nbsp; Yes, this is "a .exe application."&nbsp; &nbsp; My startup path is correct, and I tried building with all my "always included" VIs removed.&nbsp; Same error. &nbsp; I've mass compiled several times. &nbsp; I'm not using DSC or shared variables. &nbsp; I'm able to build the executable on another computer with the exact same project and code (we use source code control), so something must be different about my environment or setup. &nbsp; Thanks, &nbsp; Robert I have seen this error before, but ...

Re: &quot;File not found&quot; when starting LabVIEW #2
sorry, this the program that i take from this link, http://zone.ni.com/devzone/cda/epd/p/id/5146 am_modulation.vi: http://forums.ni.com/attachments/ni/170/292575/1/am_modulation.vi ...

Using &quot;getf&quot; command in Scilab-LabVIEW Gateway
I am having trouble using the "getf" command in the Scilab-LabVIEW Gateway.I would like to load an external Scilab function using the LabVIEW scriptnode and perform an operation with it.In Scilab, the following code works correctly:&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ___________________________________________&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;scilab-4.1.1&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Copyright (c) 1989-2007&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Consortium Scilab (INRIA, ENPC)&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ___________________________________________&nbsp;&nbsp; &nbsp; Startup execution:&nbsp; &nbsp; &nbsp; loading initial environment&nbsp; &nbsp; --&gt;getf "C:/program files/scilab-4.1.1/macros/dec2bin.sci";&nbsp; &nbsp; --&gt;dec2bin(10,4)&nbsp; &nbsp; &nbsp;ans &nbsp;=&nbsp; &nbsp; &nbsp; 1010&nbsp; &nbsp; --&gt; &nbsp; &nbsp; However, when I execute the same code in the Scilab-LabVIEW Gateway, Ireceive the error:&nbsp; &nbsp; Error 1048 occured at LabVIEW: &nbsp;LabVIEW failed to get var...

How do I disable the Dialog Box Pop Up when using the &quot;Open/Create/Replace File&quot; VI?
I would simply like to write data in real-time to a file without the operator being prompted by a Dialog Box. Please see attachment for the code I used. &nbsp; Thank you! LabVIEW_Write To File Code.doc: http://forums.ni.com/attachments/ni/170/243833/1/LabVIEW_Write To File Code.doc Try putting the entire path including the file name (and not just the folder) as a path constant (and not use the string to path function) to the file path input. &nbsp; <img src="http://forums.ni.com/attachments/ni/170/243916/1/Open_Create_Replace.PNG"> Message Edited by Dennis Knutson on 04-25-2007 01:37 PM Open_Create_Replace.PNG: http://forums.ni.com/attachments/ni/170/243916/1/Open_Create_Replace.PNG Dennis Knutson wrote: Try putting the entire path including the file name (and not just the folder) as a path constant (and not use the string to path function) to the file path input. Dennis, Good lesson for me ! :smileyhappy: I m also not familiar with this thing of putting the entire path of a file, even if I wire a False to the Advisory Dialog inout. I thought that it is the maximum feasibility in LV. You opened my eyes &amp; brain. :smileywink: ...

I have some question on &quot;Use LabVIEW to Control two DSP and RTDX&quot;
I have some question when writing LabVIEW. I have DSP6711 and DSP6416, I use RTDX to send data to LabVIEW. I write three programes for LabVIEW, one is RTDX for&nbsp;DSP6711, another is RTDX for DSP6416, and the final is RTDX for two DSPs. The program of LabVIEW is workable when doing DSP6711 or doing DSP6416. But there is some problem when running DSP6711 and DSP6416 on LabVIEW at the same time. How to&nbsp;tell the LabVIEW's tool of " RTDX read" to&nbsp; get the datas from different DSP ...

Memory is full during &quot;Save As&quot; of LabVIEW 8.5 project
Good Morning All, &nbsp;&nbsp;&nbsp;&nbsp; Have run into a weird issue while trying to rename a LabVIEW 8.5 project. I've got two projects that ended up having the same names (one by me, one by another engineer). I want to open both at the same time, so I figured I'd open the one and do a "save as", or a "rename". The first time it started processing, doing file loads, and then hung looking for a sub-vi, with the search address pointing to the .llb in the LV 8.5 directory where I manually located it. Once that was resolved, and the original project saved I tried again. This time it did a bunch of loading and then gave me an error box with the message:&nbsp; "LabVIEW:&nbsp; Memory is full.&nbsp; Cannot save project 'original project name.lvproj'" This isn't a big project, the machine is a new HP Compaq dual core 2.8GHz with 1.5Gb of ram, so I don't really think that it should be generating anything that big. This happens with either a "save as" or "rename". I ended up just changing the names of the .lvproj .aliases files to the one I needed and it seems to load ok, but it would be nice to understand what is happening here. &nbsp; &nbsp; This is interesting behavior, since NI actually ensured that you would now have the ability to Save As and Rename a project with the <a href="http://www.ni.com/pdf/manuals/371780c.pdf" target="_blank">release ...

&quot;filewatcher labview&quot;
Hallo &nbsp; Hat jemand von Euch bereits einen filewatcher (ein Programm das nachsieht ob ein anderes Programm Daten in ein file schreibt, und mir dann den zugriff auf diese Daten erm�glicht.) Ich ben�tige ein sollches Programm dringend Version 7.1 bis 8.2 vorhanden. &nbsp; Vielen Dank Werner Hallo Thanks for info! To you have a ready program for checking an activity on a file. How could i give a notice for a good answer! Thanks Werner &nbsp; Thanks Gerd nice day ...

Web resources about - Using &quot;To-upper-case&quot; on cluster with Enum (LabVIEW 8.2) - comp.lang.labview

Resources last updated: 3/19/2016 4:53:03 PM