Re: Hi!!I have some problems with the synchronization of my...

2004-06-18 Thread shoneill
I think you are pretty much on the right track with Queues. I have implemented a very similar system myself using queues. I have even different systems connected to the serial interface, but I can synchronise them all easily using the following method: 1) Make a VI for opening the serial port an

Re: problem with system exec.vi and windows XP pro

2004-06-18 Thread shoneill
Maybe you're sending an absolute path to the System32 which is no longer valid on the new computer? Shane.

Re: Error opening file:"The file XXX.vi is not a VI. Select Another?" Whats wrong?

2004-06-16 Thread shoneill
Right-click and select "properties". Then select the tab for security settings. I'm assuming Win2k or WinXP. And there is no workaround as far as I know. Shane.

Re: How to build a big application with no difficulty? Smaller is easier than big one.

2004-06-16 Thread shoneill
This is (IMHO) a fundamental question in computer programming. The discussion quickly enters into areas of Architecture, Development processes and so on. Since I'm not actually a trained Programmer (I'm a learned Programmer) I don't know what these all really mean. In my experience, it's importa

Re: Error opening file:"The file XXX.vi is not a VI. Select Another?" Whats wrong?

2004-06-15 Thread shoneill
Check the rights for your user on the computer. Right-click on the file and choose security settings. If you don't have full access, set it to full access, or have the administrator do it for you. I experience this a lot at work with some funny rights on network drives. LabVIEW likes reporting

Re: I need to read an unsolicited serial variable string.

2004-06-15 Thread shoneill
Baud, stop bits etc. is purely personal preference. LAbVIEW can read in basically any format, but I have a personal preference for tab seperators between values and newline/carriage return as a termination. This way the text can be streamed to a text file and is readable afterwards in Excel usw..

Re: how can I build an executable application which can be run...

2004-06-09 Thread shoneill
Or write the application in LabVIEW 5.0 or 5.1. the Application bulder there creates exe files without links to a runtime engine (it didn't exist back then). This will result in executables of around 3-4 Megabytes each (at least), and doesn't support the new features of LV 6 or 7, but if it's abs

Re: Inserting into queue from within an event case

2004-06-02 Thread shoneill
Oops, found the problem. Sorry, wiring mistake. Shane.

Inserting into queue from within an event case

2004-06-02 Thread shoneill
I seem to be having a problem with inserting into a Queue. I have a data acquisition system running with several VIs running independently int he background (loaded with VI Server) and communicating via Queues. I want to add the ability to load a previously-recorded data set, capturing the "load"

Re: Debug vs no debug mode

2004-05-25 Thread shoneill
If you mean by "debug" that the highlighting is switched on (Data flow shown graphically as it happens) then your problem is most likely timing. LabVIEW operates many operations in parallel (or almost at least) unless there's data dependency between functions. If one function relies on another, b

Re: memory management and style

2004-05-10 Thread shoneill
Speaking for myself (also a self-taught LabVIEWer), 1) Using clusters "to encapsulate data into logical data structures" is fine. The problems start when you group lots of un-related values into a cluster just to get rid of wires. By doing things this way, you might need to access a large cluste

Re: How do I display a progress bar which obtains its value from the loop of a sub-vi?

2004-05-05 Thread shoneill
You right-click on the VI icon when it's open and choose VI options. Under Execution (I can't remember the exact text, my version is in German) you can choose specific options for the window appearance. In the version I have posted, the options for "Show panel when called" and "Close afterwards if

Re: password protection on a control

2004-05-04 Thread shoneill
Instead of using "mouse down" you can use the "value changed" to ask for a password and re-set the old value (provided by the event handler) in case the password is wrong. Just make sure that the non-approved changed value isn't being accessed while the "verification" is taking place. (Synchro

Re: Increment revision history manually

2004-05-04 Thread shoneill
Of course, that's not a bad idea either.. And definitely more refined. Shane.

Re: Increment revision history manually

2004-05-04 Thread shoneill
I suppose, when thinking logically, if you wish to set the version to X, you could set the version to 0 (Saving in a new file) and then save it X times. I know it's a bit stupid, but hey, why not? Shane.

Re: Acquire N Scans doesn't work

2004-04-24 Thread shoneill
The only thing I can imagine is if the input range is set too high (The gain too low) so that the resolution is too low to detect any better then +- 0.465V. +-0.465 V is a HUGE threshold if this has anything to do with resolution! Are you sure it's Volt, and not Millivolt? Shane.

Re: How accurate is the wait function when using really long waits?

2004-04-24 Thread shoneill
I don't know about accuracy, but I noticed something funny last week while running a program. I have a program which communicates over RS-232 and I need to make pauses now and then. After sending a few commands, I set the VI to wait for 20 minutes (120 ms). If I call the 20 minutes, half the

Re: Acquire N Scans doesn't work

2004-04-24 Thread shoneill
I only have the evaluation version of LV 7 on my computer, and I don't have any DAQ installed for it. Therefore, I can't test the program. I have seen, however, that you send "0" to the parameter for "number of scans" for the AI Start function. Is this correct for continuous scans, or should this

Re: Acquire N Scans doesn't work

2004-04-24 Thread shoneill
I'm not quite sure what you mean. If you mean that the A/D card delivers no values when there's nothing connected, then I'd contact whoever sells the card. If you mean that the LabVIEW function doesn't work without wiring channels to it, then I agree it doesn't work. You need to wire a channel t

Re: Use a "." instead of a ","

2004-04-20 Thread shoneill
Hi Mark, In the options under "Front Panel" there's an option to use the local settings for decimal point. this should solve your problem. please bear in mind that using "scan from string" afterwards with text using "." will NOT be read properly. Look http://exchange.ni.com/servlet/ProcessReque

Re: scan from string / minus

2004-04-20 Thread shoneill
This is the correct answer. %f interprets only numbers and either "," or "." depending on what your system uses as a decimal seperator. If you want both numbers, you need to use a format specifier of %f-%f which tells the function to get two numbers seperated by a "-". This will return two value

Re: How do I get the tools palette to be visible in labview 7? It is not listed under windows

2004-04-18 Thread shoneill
I encoutnered the same thing today It IS listed, but LV 7 has the annoying "auto hide" function for removing less-frequently used menu entries. Simply move to the very bottom of the menu to expand it and reveal the otherwise hidden entries. Then you should see the option for the tools palett

Re: Passing parameters to VIs

2004-04-18 Thread shoneill
If I'm not mistaken, all data operations done on references must be done in the UI thread. Depending on what thread the sub-vi is normally running in, this can have severe performance issues. Have a look http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RPAGEID=135&HOID=5065000800

Re: Auto indexing and wrap around

2004-04-14 Thread shoneill
Hi Oliver, With Autoindexing it won't work, but manually indexing with index "i mod Arraysize" should do it. Not the MOST elegant solution, but it should do the trick. Regards Shane.

Re: VISA port binding info

2004-04-14 Thread shoneill
Hi kostya, Using property nodes with your VISA wire, you can get the information under "Interface Information" and then "Interface Description". This should give COMx as a string output. I use this to differentiate between COM ports and LPT ports, something which it otherwise hard to do. Hope t

Re: LabVIEW crashes with "Insane Object" error.

2004-04-13 Thread shoneill
Hi Pawel, Copying everything in one go from one block diagram into a new one normally copies all front-panel objects too (which arelinked to the block diagram) and maintains their positioning/formatting. I don't quite understand how this will take a lot of time. The sub-VIs don't neccessarily ne

Re: LabVIEW crashes with "Insane Object" error.

2004-04-13 Thread shoneill
Hi Pawel, try copying all of the bolck diagram and pasting into a new VI and resaving. This works for me most of the time. Hope this helps Shane.

Re: free simple word processor in LabVIEW?

2004-04-13 Thread shoneill
I don't think this exists, unless you consider a LabVIEW program with an embedded (ActiveX) WORD file as a "word processor written in LabVIEW". LabVIEW can be used for many things, but for a word-processor with custom fonts and sounds Try looking for examples in VisualBasic, maybe you'll have

Re: Error in LabView.exe after each start

2004-04-13 Thread shoneill
Long shot. Try deleting the ini file for LabVIEW. The error log looks like a LabVIEW ini file. When re-installing LAbVIEW, make sure to delete all old, unwanted files before re-installing. Hope this helps Shane.

Re: Run time TCPIP instrument searching

2004-04-13 Thread shoneill
I don't think this can be done. AFAIK, the VISA functions rely on instruments already found (either by MAX or otherwise). However. Sometimes when using VISA with a control, I'm only presented with a certain choice of COM-ports. Editing the values to an instrument I KNOW exists, but isn't li

Re: a question about "for loop"

2004-04-13 Thread shoneill
Hi G=E9rard, you have two main options either replace the for loop with a while loop (N needs to be determined programatically) or place the contents of the FOR loop in a case statement, leaving one case empty. By pressing a button linked to the case statement, the calculations for the remai

Re: How can a Type Definition .ctl file be hidden from view?

2004-04-09 Thread shoneill
Nice answer. Once again, hadn't thought of this. 4 Stars. Shane.

Re: If I have 160 bits in an array. How can I parse this out to...

2004-04-08 Thread shoneill
If you are talking about arrays of boolean values, please bear in mind that a boolean in LV occupies 8 bits. I remember reading that this was changed over previous versions (LV 4 to LV5?) for compatibility and simplification reasons. If you need to generate a 32-bit number from 32 booleans, there

Re: break a for loop

2004-04-08 Thread shoneill
Nide idea Ed, Never thought of that Just leaves the problem of output values (if this is required), but should be easy enough to do. Shane.

Re: GPIB error after compilation with AppBuilder

2004-04-08 Thread shoneill
Hi Teddy, Make sure that VISA is installed and configured on the host computer (Preferably the same version as the program was compiled with), otherwise I don't know myself. Hope this helps shane.

Re: VI Slow Down/performance

2004-04-08 Thread shoneill
Hi Glen, Could it be that you're updating indicators on the main VI panel through references in the sub-vi? I know LV does this automatically sometimes when you make a sub-vi out of an existing piece of code and as far as I know uses a lot of CPU time... Even still, 10 times slower is really a l

Re: Labview UK pricing?

2004-04-08 Thread shoneill
One guess might be Import taxes from a non-EU country. Another might be because of the localisation which has to be done for "europe" which might them be spread over ALL European versions of LabVIEW. Just guessing. Shane.

Re: Is there a way to get (or generate and store with the control) a n unique ID for Controls

2004-03-23 Thread shoneill
The names of the controls really should be kept constant during development. this is, as you put it yourself, as if the names of variables are constantly being changed in other languages. This is not a good idea. One way of maintaining constant naming, but still allowing the users (programmers)

Re: how to control a digital projector with labview

2004-03-21 Thread shoneill
I'd still go the way of connecting to VGA or DVI. A craphics card with two VGA outputs (or one DVI and one VGA) could be used to display the VI on the computer on one screen, and the captured image in full-screen on the second. I have no experience with telling LabVIEW to use one screen or the ot

Re: Why does one while loop stop after 3-4 weeks?

2004-03-21 Thread shoneill
Hi Everyone, I just had an idea which never occurred to me before. Instead of using the ms timer, why not use the function Get date/time in seconds. This returns a DBL which (according to my calculations) should only wrap after many many years. This function also offers sub-second timing. Does

Re: how to control a digital projector with labview

2004-03-21 Thread shoneill
Hi John, You mean apart from connecting the projector to the VGA (or better, DVI) output of your graphics card? Greets Shane.

Re: I cannot work on my vi and the "investagate internal error"...

2004-03-12 Thread shoneill
Try copying everything in one go into a new VI and saving this VI. Often this fixes any random corruption the VI may have suffered. Shane.

Re: Why does one while loop stop after 3-4 weeks?

2004-03-12 Thread shoneill
The VI stops after 3-4 Weeks you say? This sounds familiar. Do you have a Timer(ms) function in this VI coupled with the stop criteria of the loop? The ms counter is an U32, which can hold max. 4294967296 ms, which equals 49.7 days. Note that the counter starts immediately when the computer is

Re: How to read *.bin file

2004-03-12 Thread shoneill
I'm not sure if I'm on the right track here, but if you're saving the file through LV, then a look at the code should reveal everything you need to know about the file. The easiest thing may be to write a VI to convert the data into a more Matlab-compatible format. This requires also that you alr

Re: Time delay in while loops

2004-03-11 Thread shoneill
True, there are ways to improve the resolution of this timing, but given the original question (timing for ~10 sec) I think a resolution of 1/40 second should do. Of course, the resolution (or error as you put it) can also be improved by lowering the "wait until ms multiple" input to 5 ms It

Re: Bug report Labview 6: "Insert into Array" leads to compiler error

2004-03-10 Thread shoneill
The example doesn't give an error on my machine either (P4 1.6GHz, 128 MB Ram, Win2000 SP4, LV 6.1). Have you got any Virus scanners running? Shane.

Re: Dynamically run VI in built executable

2004-03-10 Thread shoneill
I think you need to explicitly include the dynamcially-called VI when compiling the executable. It's under the heading "support files" I believe. The compiler has no way of knowing which VI is dynamically linked (hence the term "Dynamic"). Don't worry, I've made this mistake more often than I ca

Re: How can I view an llb file, or vi file without LabView?

2004-03-10 Thread shoneill
You originally stated that you tried opening the Vis and LLbs in Word and in Editor, therefore the assumption that you thought the files were text is justified. We are all volunteers here trying to help, please try to remember that. Shane.

Re: SCAN FROM STRING

2004-03-04 Thread shoneill
While running the risk of repeating myself, wow. I can actually think of instances where this would be quite useful for me. Beats manually searching for the "m", "M" or "u" units. It's just a shame it doesn't work if the input string is 4.3uW for example instead of 4.3u Still, clipping the last

Re: SCAN FROM STRING

2004-03-03 Thread shoneill
Aha. That's interesting to know. I don't suppose it works scanning from a String? Thanks again Shane.

Re: SCAN FROM STRING

2004-03-03 Thread shoneill
OK, I had a look at the help for LV 6.1, but saw nothing about %p. You also haven't explicitly mentioned how this works in your original message. Can you give me an example of this (textual will do) so that I can try it out? What does the %p option do? Thanks Shane.

Re: SCAN FROM STRING

2004-03-03 Thread shoneill
Hi Wiebe, I did not know that. I thought that this was maybe just in LV 7.0, but I just looked in my LV version (6.1) and wow, it's there. I never knew that. Thanks for the info. Shame I can't give your post a rating I have encountered this problem quite a lot, and this will help solve ma

Re: SCAN FROM STRING

2004-03-03 Thread shoneill
Hi IMMA, As far as I know, %f should do the trick. However, you need to take into account the setting for the local decimal point. If your machine is set to use comma "," as decimal point, the scan from string will stop at 3 because it doesn't interpret the dot "." as part of a number. There is

Re: der neue Vi name wird bei

2004-03-01 Thread shoneill
Wurde der VI nach dem umbenennen wieder gespeichert? Vielleicht wird der Name danach aktualisiert Mag sein, dass der VI selber seine Name merkt, und nicht nur von der Dateiname "genannt" wird. Dieses Verhalten ist mir allerdings nicht bewusst. Hat der Haupt-Vi der gleiche Name wie der L

Re: Search string in Array

2004-03-01 Thread shoneill
Hi, it's me again, I just wanted to add that you maybe need to be careful with upper and lower-case letters. Since the upper-case letters are lower in the ASCII table than the lower-case letters, zz is the last possible match, not ZZ. If all your letters are upper-case, this won't make a

Re: Search string in Array

2004-02-27 Thread shoneill
You could sort the array, and then do a binary search for 04_02_26AA (lowest possible according to ASCII table) and 04_02_26zz (highest possible according to ASCII table) which should represent the lower and upper regions of the array sub-set containing these numbers. You may need to do a

Re: binary

2004-02-18 Thread shoneill
I'm not quite sure what the problem is after looking at your diagramm. If you're looking to have the frontpanel representation of the "Temperature" indicator show binary, this will work if you change the indicator type to integer (I32 or I16). If you're looking to extract the digital values from

Re: ActiveX and LabVIEW (again!)

2004-02-18 Thread shoneill
I understand from Greg McCaskle's answer that this is something which may come in future (And judging how far LabVIEW has come, I'm sure it will be incorporated). If you're developing code in other languages which create COM-compliant DLLs, then is it not possible to write a wrapper DLL in this ot

Re: Question about slow rs232 equipment

2004-02-16 Thread shoneill
It's quite easy. You split the string you want to send into an array of characters, and then using a for-loop write each character one at a time, followed by a small wait (whatever your instrument requires). Regards Shane

Re: Finding the generated html via www in a LAN?

2004-02-16 Thread shoneill
This won't work without changing the router settings, which I think the school won't like doing. I'd try to find a different way to do this if possible. Do you have the possibility to upload to a "shared" directory somewhere in the school, from which you can access outside the school? Ask the sy

Re: VI conversion

2004-02-12 Thread shoneill
Sorry to but in, but I think he doesn't have LV 7.0 or 6.1. Sorry, but I can't actually help either (only have 6.1). Shane.

Re: Automation close (windows) does not work.

2004-02-03 Thread shoneill
My experience with using Excel ActiveX is that you need to be very careful whichorder you close references in. If you open a reference to any child object, these must be closed first before the tree itself can be closed. Example in Excel: If I open Excel, then a workbook, thean a cell, then the f

Re: Find out which element is selected in an array

2004-02-03 Thread shoneill
Hi Ian, There are a couple of ways I can think of. The first is only useful if you know you don't have any multiple entries in the array. You can get the value of the selected cell (over the ArrElem.Value) property, and compare this with all of the vlaues in your array. The second method should

Re: how to highlight a specific element of an array

2004-02-02 Thread shoneill
Zvezdana, That's great. This is exactly what I was looking to do. I have to say though, that I think the usage of the "Array element" property node of an array should respond to a highlighted cell, not the last clicked cell. This would make the need for system DLL calls unneccessary. Still, it

Re: Why can't I open a VI that I created on another computer?

2004-01-14 Thread shoneill
Check the user rights if you're using w2k. I'm constantly getting problems with our w2k Network with file permissions being set so that LabVIEW can't read the VIs being used. Copying to a local computer doesn't always automatically mean you have full rights for the file. Just my idea on the subj

Re: Reverse of "Format Date/Time String.VI"

2004-01-13 Thread shoneill
This is of course assuming you have a particular known format of the time and date string to be converted. Otherwise different time display formats can mess with the conversion, is 01/02/03 the 1st of February 2003 or the 2nd of January 2003? Dependson whether you live in the USA or not I guess..