Password
There's a VI from Brian Renken (a contributor on this list) that will try several million passwords per second to try to find the correct one. But even @ that rate, if you have no idea what the password is, it may take several thousand years to find it. You need to have some idea what the password is. For example, do you know: 1) how many characters there are? 2) are there both letters and numbers and special characters? 3) is there both upper and lower case? If you know this, the test may be quite quick. For example, if there are both letters and numbers and special characters, a 4 letter password will take 5000 times less time to find than a 6 letter password. R. Glenn Givens P.Eng. Innovention Industries Inc. Burlington, ON, Canada www.innovin.com
RE: restoring defaults to controls
Michael I think this is only in LV 7. I have 6.0.2. Thanks anyway. R. Glenn Givens P.Eng. Innovention Industries Inc. Burlington, ON, Canada www.innovin.com -Original Message- From: Michael Aivaliotis [mailto:[EMAIL PROTECTED] Sent: May 30, 2004 15:16 To: 'R. Glenn Givens' Cc: 'LABVIEW INFO' Subject: RE: restoring defaults to controls Actualy there is a property called: "indicator" if you read it it will be TRUE if it is an indicator. This will do what you want. Michael Aivaliotis > use for the non-user hidden ones. Too bad there aren't > separate properties for references of controls VS Indicators > - that would save some work or a way to determine if it's an > indicator or control.
RE: restoring defaults to controls
Michael In your example in the link you kindly provided, you are determining which defaults not to restore based on their Label Text. I was using References which would have been easier but it didn't work. I think I'll check for specific Labels but to save lots of work, I'll also exclude all controls/indicators having all CAPS or last character as CAPS or "|" as last char or foreground colour being grey which I use for the non-user hidden ones. Too bad there aren't separate properties for references of controls VS Indicators - that would save some work or a way to determine if it's an indicator or control. Thanks. R. Glenn Givens P.Eng. Innovention Industries Inc. Burlington, ON, Canada www.innovin.com -Original Message- From: Michael Aivaliotis [mailto:[EMAIL PROTECTED] Sent: May 26, 2004 15:58 To: 'R. Glenn Givens' Cc: 'LABVIEW INFO' Subject: RE: restoring defaults to controls Actually PJM, you should be able to apply the "Reinit to Dflt" method just as Glenn describes. Glenn, it's possible that in your implementation, one of the controls cannot be set to default. This cause an error which propogates to other control methods down the chain. I've attached a link to an image which describes one method that I use for applying properties and methods to front panel references. Maybe this will help: <http://lavausergroup.org/labviewimages/reinit_to_default.gif> Michael Aivaliotis =SNIP= It is my understanding that the Node "Reinit to Dflt" applies to every controls/indicator in the panel. In the past, my approach was to get the value of the controls/indicators I do not want to reset (usually in variant or flatten string), then reset everything then put back the cached value I did not want to reset in the first place. Of course I did never had 50 of them !. I now try to avoid using "Reinit to Dflt" if possible. PJM "R. Glenn Givens" <[EMAIL PROTECTED]> wrote: Friends I have a VI with 100 controls that the user can manipulate. Then there are around 50 indicators and controls that display calculations or are used for house-keeping (some will eventually be made invisible when I finish the VI). So I have a button called "Restore Defaults". When the user clicks it, I get the VI Property "Panel" (panel's reference #) and I feed that to Pnl Property "Controls" which I feed to a For Loop with an Invoke Node "Reinit to Dflt" inside. Unfortunately, this restores the values to the defaults for all controls and indicators. So I thought I would make an array of the references of the 50 indicators & controls that I didn't want to restore and just check inside the For Loop if the control in question should be restored or not. But still, all 150 values are restored. What is the best way to do this? Make an array of all the controls I *do* want to restore? For some reason, the Build Array node has coercion dots where the reference comes into it. R. Glenn Givens P.Eng. Innovention Industries Inc. Burlington, ON, Canada www.innovin.com
restoring defaults to controls
Friends I have a VI with 100 controls that the user can manipulate. Then there are around 50 indicators and controls that display calculations or are used for house-keeping (some will eventually be made invisible when I finish the VI). So I have a button called "Restore Defaults". When the user clicks it, I get the VI Property "Panel" (panel's reference #) and I feed that to Pnl Property "Controls" which I feed to a For Loop with an Invoke Node "Reinit to Dflt" inside. Unfortunately, this restores the values to the defaults for all controls and indicators. So I thought I would make an array of the references of the 50 indicators & controls that I didn't want to restore and just check inside the For Loop if the control in question should be restored or not. But still, all 150 values are restored. What is the best way to do this? Make an array of all the controls I *do* want to restore? For some reason, the Build Array node has coercion dots where the reference comes into it. R. Glenn Givens P.Eng. Innovention Industries Inc. Burlington, ON, Canada www.innovin.com
[W] off topic - running BATch files as scheduled task under XP
Friends I used to run a very simple batch file that appends one file on to the end of another. It was a scheduled task in the Task Manager under W98. Now I have XP Pro SP1 and I can execute the batch file manually any time without errors but when I execute it from the Task Manager, whether I let it run at the proper time or right-click and select "Run", I get a dialog box that says "c:\windows\system32\svchost.exe The NTVDM CPU has encountered an illegal instruction..". If I comment out everything, I still get the same error. The actual DOS window is completely blank meaning that probably nothing was executed. Any ideas? R. Glenn Givens P.Eng. Innovention Industries Inc. Burlington, ON, Canada www.innovin.com
[W] Waveform Graph Multiple Axes Grid Wrong Colour!
Friends I have a waveform graph that's isolated in a test program to simplify things. It has 1 x-axis and 3 y-axes. I have a pull-down button with 4 options: Grid Off (0), Grid on Y-axis A (1), Grid on Y-Axis B (2), Grid on Y-Axis C (3). So if the user changes this setting, I set the Active x-scale to 0 and the grid x-colour to transparent for the Grid Off selections and to grey otherwise. For the grid y-colour, I have a loop with N=3. If "i" equals the current pull-down button setting minus 1, I set the Active y-scale to i and the grid y-colour to grey. For the other 2 cases, I set the Active y-scale to i and the grid y-colour to transparent. But here is the result: When Grid Off is selected, everything works fine - there are no visible grids. For the other cases, I get one grey grid line for the x-axis (vertical lines) and 3 grid lines for the y-axis (horizontal lines), one for each axis. The one the user selected is indeed grey, but the other two are black. I don't even have a black colour box constant in my logic. Any ideas? I'm using LV 6.0.2 on XP Pro. R. Glenn Givens P.Eng. Innovention Industries Inc. Burlington, ON, Canada www.innovin.com
[W] Signal Generator By Duration.vi
Friends I'm using the above standard LV6.0.2 vi. I call it with a 50 % duty cycle, asking for a period of 20 and a total of 105 samples. The result is OK except for the 2nd to last sample of the second cycle. For example, suppose every value is 1.00 or 0.00. Then samples 0 to 25 are 0.00, 26 to 50 are 1.00, 51 to 75 are 0.00, 76 to 99 are 1.00 and 100 to 104 are 0.00. The apparent error is that it should be samples 76 to 100 being 1.00, not 76 to 99. I've tried other periods and number of samples and there's always a "shift" where one cycle starts early. Any ideas or workarounds? I could just replace sample 99 I suppose. R. Glenn Givens P.Eng. Innovention Industries Inc. Burlington, ON, Canada www.innovin.com
Uniquely identifying computers
Michael I have a VI I got from someone on the list that gives you the HDD serial # under Windows. Let me know & I'll dig it up. R. Glenn Givens P.Eng. Innovention Industries Inc. Burlington, ON, Canada www.innovin.com
Buying LabVIEW abroad
Friends I live near Toronto and the last I was told by NI was that my sales rep was in Buffalo NY. Support seems to be mostly be email. We speak similar versions of English except in Quebec of course and we have the same time zones (except we have 2 more but I'm in the Eastern zone which we would call Central Canada and it's the east coast of US too.) I haven't checked for a while but when I bought my first version ~1998, the price in Cdn $ was higher than the price in $US after conversion. I actually tried to buy the US version from NI in Austin but in the end they knew where I was because of my shipping address and I was charged the higher price even though it was shipped from the US. But I don't have a big beef because the difference wasn't so high and I do the reverse when I sell my software to US customers. It's a small difference but I do it because the market is different, not because of higher costs. Also, my perception is that NI's LV prices have come down or maybe it's just because I'm always buying upgrades instead of full versions. R. Glenn Givens P.Eng. Innovention Industries Inc. Burlington, ON, Canada www.innovin.com
Buying LabVIEW abroad
Friends Don't get me wrong - in my case the mark-up was only a few %. And Greg is a technical guy like us & thankfully the money & marketing decisions go to others. But if I may speak to assist my European colleagues, there are sales offices in the US too, just as there are in Canada & Europe. It doesn't make sense to me that the sales people in Europe are vastly more costly than the ones in the US. There are or were support people in those places too. Does it cost far more for a support person in Germany than in the US? OK, maybe 30 % more but that would only add a few % to the total price. I guess we've said all there is to say. R. Glenn Givens P.Eng. Innovention Industries Inc. Burlington, ON, Canada www.innovin.com
Waveform graph legend
Chad I assume that these 32 limit plots actually have data. Assuming you have at least 2 points to make the line (other plots may have more points if you are sending the data to the graph using a cluster) but you just don't want the legend shown, create the legend for all 48 plots by expanding it by dragging the corner of the legend. Then use the property node Legend/Plots Shown and set it to 16. You may have to do this after writing data to the 32 plots or at any point in your VI if you have saved the VI once after writing to all 48 plots but try just setting it to 16 first. R. Glenn Givens P.Eng. Innovention Industries Inc. Burlington, ON, Canada www.innovin.com
Save with 24 bits
Pascal Despite the name of your company, your question wasn't well understood. :) But, are you sure you have the lowest 3 bytes? LV stores data in Hi/Low format for words and bytes in memory. You need the last 3 bytes. R. Glenn Givens P.Eng. Innovention Industries Inc. Burlington, ON, Canada www.innovin.com -- Subject: Save with 24 bits From: "Infos - Bien Entendu" <[EMAIL PROTECTED]> Date: Fri, 26 Mar 2004 00:06:37 +0100 I am searching for a way to save 24 bits values on an AIFF file i thought that keeping the 3 first bytes of an I32 should make it but it didn't work could anyone give me some clue ?
RE: [W] Data link Serial port
Rolf Thanks again. Here is my summary of the 2 answers I got: I have 2 votes for VISA and none for anything else so VISA it is. Next, I have to figure out if I installed it since I never had any use for it until now! Fortunately, I don't have to worry about the funny protocol & bad documentation because I get to decide all this myself. R. Glenn Givens P.Eng. Innovention Industries Inc. Burlington, ON, Canada www.innovin.com -Original Message- From: Rolf Kalbermatter [mailto:[EMAIL PROTECTED] Sent: March 24, 2004 04:22 To: 'R. Glenn Givens' Cc: Info LabVIEW (E-mail) Subject: Re: [W] Data link Serial port "R. Glenn Givens" <[EMAIL PROTECTED]> wrote: >I am writing a data link to communicate between a PC running LV 6.0.2 and an >industrial computer. The link on RS232C will run @ 9600 baud and the >throughput is such that I'm using 1/4 to 1/3 of capacity. The industrial >computer sends the data and has a 500 byte buffer each for send and receive. >But the data is all one way from the industrial computer to the PC. The PC >will save this data to disk continuously and also present displays etc. > >It sounds like there are many ways to operate the serial port in LV (maybe >VISA, maybe direct port manipulation, more likely old-fashioned serial port >VI's?. I haven't done much checking but I wondered what the consensus was >for the best method for this type of application. Since PC's only have a >buffer of a few bytes, I would prefer to have something automatically handle >the interrupts and have a big input buffer that I just read from time to >time (say every 50 to 100 msec). I used to do that interrupt handler stuff >in assembler in the DOS days. VISA does all the buffering for you. You just open a session and with 9600 baud you shouldn't even need to configure special buffer sizes. I use VISA with up to 48kBaud regularly without any problems and have also managed with quite some ease 115kBaud on VISA. There is really no need to do direct register programming and interrupt handling on application level anymore for standard serial port communication. VISA and similar interfaces neatly deal with this for you and you do absolutely not need to worry about that. It may be hard to get used to this if you have previously dealt with these thngs yourself but believe me it is a big relieve. The serial port problems are seldon on the VISA (or whatever API you use) level but most often on the actual instrument-application communication level, due to funny (not to say stupid) protocol conventions and most often bad documentation. Rolf Kalbermatter CIT Engineering Nederland BVtel: +31 (070) 415 9190 Treubstraat 7H fax: +31 (070) 415 9191 2288 EG Rijswijkhttp://www.citengineering.com Netherlands mailto:[EMAIL PROTECTED]
more suggestions for list
For users who receive the list in "list-mode" (1 big file), wouldn't the list be easier to read if it were sorted by subject (after accounting for the "Re:", "Re:RE" etc & "Fw" etc.) ? R. Glenn Givens P.Eng. Innovention Industries Inc. Burlington, ON, Canada www.innovin.com
[W] Data link Serial port
Friends I am writing a data link to communicate between a PC running LV 6.0.2 and an industrial computer. The link on RS232C will run @ 9600 baud and the throughput is such that I'm using 1/4 to 1/3 of capacity. The industrial computer sends the data and has a 500 byte buffer each for send and receive. But the data is all one way from the industrial computer to the PC. The PC will save this data to disk continuously and also present displays etc. It sounds like there are many ways to operate the serial port in LV (maybe VISA, maybe direct port manipulation, more likely old-fashioned serial port VI's?. I haven't done much checking but I wondered what the consensus was for the best method for this type of application. Since PC's only have a buffer of a few bytes, I would prefer to have something automatically handle the interrupts and have a big input buffer that I just read from time to time (say every 50 to 100 msec). I used to do that interrupt handler stuff in assembler in the DOS days. The LV application will be compiled/built to an EXE. I'm writing both sides of the link so I can impose whatever design I want. TIA R. Glenn Givens P.Eng. Innovention Industries Inc. Burlington, ON, Canada www.innovin.com
your suggestions for the list
Michael I like your idea of the person asking the question to summarize the general conclusions & alternatives in one final email (unless there were just 1 or 2 responses of course). I have done that sometimes and the response in my "Sent Items" folder is there for me as a summary too. R. Glenn Givens P.Eng. Innovention Industries Inc. Burlington, ON, Canada www.innovin.com
moving the list
I think Scott & Michael and, if necessary, a few of the main contributors to the list should get together (electronically) & decide who will take over the list. We need to make sure there's just 1 list. R. Glenn Givens P.Eng. Innovention Industries Inc. Burlington, ON, Canada www.innovin.com
Serial Protocol Analyzer
For port monitoring, look for portmon in google. R. Glenn Givens P.Eng. Innovention Industries Inc. Burlington, ON, Canada www.innovin.com
[w] making elements of a Boolean array invisible or disabled
Friends How do I make individual elements of a Boolean array invisible or disabled but not the entire array? I have LV6.0.2. I thought I did this a long time ago but can't find it. R. Glenn Givens P.Eng. Innovention Industries Inc. Burlington, ON, Canada www.innovin.com
Serial comms
Mona Here is a software port monitoring program for Windows. They also have file monitor and registry monitor. http://www.sysinternals.com/ntw2k/freeware/portmon.shtml R. Glenn Givens P.Eng. Innovention Industries Inc. Burlington, ON, Canada www.innovin.com --- On Feb 13, 2004, at 11:30 PM, Scott Hannahs wrote: > Many systems have a way of snooping on serial port communications. I > can give you a good way for Mac OS X.. But I am going out on a > limb and guess that isn't your host system! :-) Others can suggest > software for various winders versions. Okay, I give... what is the good way with Mac OS X? cheers, Mona PS Funny about the various (repeatedly reported) unfixed bugs... I believe in the tooth fairy and that the bugs will get fixed one day
RE: Wait 0.5 milliseconds?
Brent My original email below explains that the delay could be longer than 2 microseconds if the VI is interrupted. As I indicated, in my case I needed a delay of at least 2 microseconds so that's OK for me. If you need an exact delay, this is almost impossible to guarantee. As Greg McKaskle pointed out though, for short delays, it is unlikely that the VI would be interrupted although undoubtedly this would happen once in a while and that may or may not be good enough for your application. For me, I use delays in communicating with hardware via a parallel port. I'm talking to a device that times out if I don't send data in 18 msec so if my many waits of 2 microseconds or 20 microseconds get extended because Windows interrupted my application, there's a good chance my application will run again before the 18 msec expires. I added logic to begin transmission again if 18 msec has expired but tests show that this never happens despite many million executions. It's a lot more reliable than I had hoped. This part of the software runs in above normal priority in the data acquisition thread under LV 6.0.2. R. Glenn Givens P.Eng. Innovention Industries Inc. Burlington, ON, Canada www.innovin.com -Original Message- From: Brent DeWitt [mailto:[EMAIL PROTECTED] Sent: January 9, 2004 23:46 To: R. Glenn Givens; [EMAIL PROTECTED] Cc: LabView Discussion Group Subject: RE: Wait 0.5 milliseconds? Could you explain in more detail? I don't understand how software timing to the resolution of 2 microseconds can be implemented in a multi-tasking operating system (take your pick: Windows, Linux, Apple). But then I'm not an OS or LabView guru. Brent DeWitt -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of R. Glenn Givens Sent: Friday, January 09, 2004 12:51 PM To: [EMAIL PROTECTED] Cc: LabView Discussion Group Subject: Wait 0.5 milliseconds? We do waits of 2 microseconds up to 1 millisecond. Of course, if the VI is interrupted, the delay could be longer but that's OK in my case. We use a For loop with N being a value we set during software installation by testing the speed of the computer over a fraction of a second. It works very well for our purposes. R. Glenn Givens P.Eng. Innovention Industries Inc. Burlington, ON, Canada www.innovin.com . Subject: Wait 0.5 milliseconds? From: "E. Blasberg" <[EMAIL PROTECTED]> Date: Tue, 6 Jan 2004 15:22:31 +0200 Hi All, I'm going to assume that the answer is "no" (at least if one is not using LabVIEW Real-time), but does anyone know if it's possible to set a delay time of less than 1 millisecond? Here's the problem: we set a switch (using a DIO card), wait n MICROseconds (called the Switch Settling Time) and then trigger a Receiver to measure a value. Currently this is done in C++. Naturally I'd like to be able to say that LabVIEW can "do you anything you can do better". Sadly, I think this time I can't. Any comments? Thanks (in advance), E. Blasberg iDAQ Solutions Ltd.
Wait 0.5 milliseconds?
We do waits of 2 microseconds up to 1 millisecond. Of course, if the VI is interrupted, the delay could be longer but that's OK in my case. We use a For loop with N being a value we set during software installation by testing the speed of the computer over a fraction of a second. It works very well for our purposes. R. Glenn Givens P.Eng. Innovention Industries Inc. Burlington, ON, Canada www.innovin.com . Subject: Wait 0.5 milliseconds? From: "E. Blasberg" <[EMAIL PROTECTED]> Date: Tue, 6 Jan 2004 15:22:31 +0200 Hi All, I'm going to assume that the answer is "no" (at least if one is not using LabVIEW Real-time), but does anyone know if it's possible to set a delay time of less than 1 millisecond? Here's the problem: we set a switch (using a DIO card), wait n MICROseconds (called the Switch Settling Time) and then trigger a Receiver to measure a value. Currently this is done in C++. Naturally I'd like to be able to say that LabVIEW can "do you anything you can do better". Sadly, I think this time I can't. Any comments? Thanks (in advance), E. Blasberg iDAQ Solutions Ltd.