-
Posts
3,392 -
Joined
-
Last visited
-
Days Won
284
Content Type
Profiles
Forums
Downloads
Gallery
Everything posted by hooovahh
-
I recently found out that LabVIEW can read the registry without needing higher privileges. When you do your first Registry Open there is a method enum which by default is Write and Read. If you only need to read set it to Read and you won't get permission errors. But yeah since you will likely need to write the registry you will need to run the program with higher privileges.
-
Are you talking about using LabVIEW FPGA talking to a host LabVIEW program running on Windows? Or are you talking about a generic FPGA talking to a host LabVIEW program running on Windows? If you are programming an FPGA with LabVIEW, talking to your Windows based LabVIEW program is very easy using a DMA buffer. If you have the FPGA toolkit for LabVIEW installed, then you should have the examples in Example Finder, that shows how to setup and use a DMA buffer of data. Just search for DMA.. The other normal way of getting data from LabVIEW FPGA to a host us from reading the indicators on the front panel of the FPGA code. This is slower and is a single shot read so I don't think this is what you are looking for. If you are talking about a generic FPGA talking to LabVIEW, I have no input because I've never needed to do that.
-
Put your LabVIEW in the Tray -- Once and for all
hooovahh replied to Stinus Olsen's topic in Code In-Development
Sweet, I'll definitely check it out. I've been interested in this kind of functionality for personal reasons and always wanted to spend time wrapping some VB code with LabVIEW to get the functionality I wanted. -
That was part of it. The other reason was because if you have something like this as your string 1234, 5678 And then use the Spreadsheet String to Array function using comma character you will have the first element be 1234 And the second element be \s5678 (Note the space before the 5678), I just recommended the remove white space so that your array is simply the numbers. If farther down the line you wanted to do something with the string representation, say transmit it over RS232, you would transmit the space character then 5678. For your use it may not be necessary.
-
I would use the Spreadsheet String to Array function converting the whole thing to a 1D array using the comma character as a delimiter. I'd then remove white space from each element in the array from the front and back. This will give you a 1D array, where every even index is real, every odd index is imaginary. Then you can use the Decimate 1D Array function getting a 1D array of real, and 1D array of imaginary. Then you can take these two 1D arrays, and make a 2D array (using Build Array) which will make a 2D array with two columns (or two rows using transpose 2D array). Hope this helps.
-
Programs that are 32 bit but in a 64 bit environment will be in the Program Files (x86) folder. So while LabVIEW.exe may be a 64 bit program (and so installed in "Program Files") Some other programs that NI installs may not be 64 bit. So if MAX was still 32 bit (not sure if it is or not) then it would be installed in the (x86) folder while LabVIEW it self would be in the normal "Program Files" folder.
-
What are the *real* system requirements for LabVIEW?
hooovahh replied to Justin Goeres's topic in LabVIEW General
I can't answer for neBulus, but I read that to mean using the Defer Front Panels property, then do stuff, then enable front panel updates (using the same property) I've seen alot of improvements using this with trees, and UIs that have alot of changes (control properties and such). In my experience RAM is a big part of it. LabVIEW can eat up alot of RAM, and Windows will do funky things with virtual memory and may allocate LabVIEW to use page file RAM even when there is several hundred MB of physical RAM available. The more physical RAM available the less likely it is for Windows to use the page file. There are ways to not use any page file (or make it smaller) but it's there for a reason, like when you run out of physical RAM, I just wish Windows managed it a little better. -
Statechart Module Tips and Tricks
hooovahh replied to AlexH's topic in Application Design & Architecture
I totally get the same impression, but have never used it my self. I guess advanced programmers just think they can do it faster and better by them selves. I'm not sure how well my charts would look anyway because large applications tend of have alot of cases for performing specific operations, and I would assume that would make the chart took very cluttered. Like I may have a case for Defer Front Panel, then a case for Get Data, then Write Data to controls, then maybe Change Properties, then Defer Front Panel again, but if I made my own chart for documentation I would make one bubble for Update UI. As for passing data in and out. Some people use Queues which work well, or functional VIGs, or a combination of a Queue inside a functional VIG with wrappers, or user events, I've never used the Global Variables for such a task because it's hard to track it and find out who is reading or writing to the global at any time. At least with a VIG you can build in some logging to know who is making the writes and reads and setup break points. -
Best solution for Ethernet or Serial communication
hooovahh replied to machyaer's topic in Application Design & Architecture
If you're looking for architecture suggestions, what's wrong with the standard queue driven state machine? You can have an Init case, and close case that can be used to restart the driver if there is an unexpected crash. With a sequence architecture like both of your examples, there isn't any way to perform a close and restart operation (maybe in the bottom one but I still don't like it). If you want to stick with simple I would suggest using the top option, but replace the while loop with a while loop and an event structure in it, so there doesn't need to be polling for controls, but you also have a timeout for reading if desired. -
It's a few months old, and there are signs that the post is all made up, but still its very funny if you're a programmer. My favorite quote. http://crisper.livej...com/316634.html
-
I've used hyperterminal. Just copy the EXE from a XP install to a thumb drive and it seems to work just fine.
-
I didn't really see a question in there, but if you're looking for PID help, search the example finder for PID and choose the General PID Simulator.vi. It has a model where you give a setpoint, and you can tweak the PID values along with any other settings like dead band. This example VI uses the PID.VI as it's core, which takes the last output, setpoint, and PID values as inputs and generates a new output. You can find this VI by searching the palette for PID.
-
I see LabVIEW on Mythbusters occasionally. There is also a wiki with a list of shows that it has been seen on. http://decibel.ni.com/content/docs/DOC-1779
-
String subset to get the first 3 bytes, and to get bytes 5 and beyond. Then string concatenate to combine the first 3, with a constant of 50, and the 5th byte through the rest.
-
This is a big Gotcha for LabVIEW programmers at least once in their career. There will be times when you have two arrays, and index them both going into a for loop and the intent is that both are the same size, but if for some odd reason they are not there will be problems like this.
-
I was able to reproduce it on 2010 in Windows 7.
-
If you're asking for what I think you are, all you need to do is write -1 to the local variable of the listbox and it will deselect the row.
-
(duplicate conversation with crelf in the office but hey who cares) I've seen DropBox before but I've been hooked on Live Mesh by Microsoft. You can add machines to your account, then sync folders up (so changing a file on one changes it on the other) and then you can also tie it to your SkyDrive (cloud storage) which is 5GB for free. It uses your live account which is tied to my Xbox Live profile, so I just sign in with my already made credentials. As an added bonus there is a remote desktop client, so you can remote into any machine you have syncing with files. I think it uses standard rdp but no idea, it just seems to work well. When Live Mesh was in beta it worked on smart phones and Mac computers but now that it is released I don't know what it works with.
-
This VI is different in that it doesn't prompt you to select a model, and if you cancel one it also doesn't ask to select a model. Also after a model is selected the button that was selected doesn't stay in the true position. But if the original poster wanted this functionality I would suggest a radio button with 13 options. And a label saying "Please select a model"
-
I thought you were joking when you said it was empty there with 3/4'' of snow. Apparently this is being called snowpocalypse (taken at 8AM). And this was the site at 12:45PM. I heard there was over 200 accidents in San Antonio by 9:30? I'm sure you're probably sick of hearing the whole "You only got an inch and had 200 accidents! We have XXX feet and I was fine." so I won't give my version. But oddly enough it took less time coming into work Wednesday then it did Thursday because Thursday there were more people on the road going half the speed limit, when on Wednesday I was mostly alone.
-
Yeah I was getting defensive at first when reading the "I hate LabView" post. I would read a bullet point then come up with a counter argument. Soon I realized that one reason why he hates LabVIEW is because he is uneducated on how to use LabVIEW. After coming to this realization I became less defensive, and felt sorry for him. I can hate anything that I don't know anything about. I hate the internet because it costs money, I hate movies because they are so long, I hate water because it has no taste, I have brocolli because it looks like small trees, I hate snow because it's cold (okay that one is valid). And I just want to say that 7.1 was the best version of all time...in my opinion.
-
This bugs me too. We've had some files in our version control that are things like Document.doc.doc and a few times Document.doc.pdf.
-
Wow I don't know where to begin, lets see UAC in Windows 7 is easy. Once it's installed in the start menu is a section called Getting Started and in that is a button that says turn off UAC. Not easy enough? Type in UAC in the search bar and hit enter, move the slider down and click OK. As for Winzip who uses winzip? I didn't know that was even still supported. What does it do that hasn't been bundled with the operating system since XP SP2? If you want to use something other than the built in zip utility install 7-zip. The interface is the same as it always has been. You can right click any archive in explorer and say extract here. Even with many EXE type compressed files that self extract to a specific directory can be extracted right there. There's nothing wrong with running LabVIEW 32 bit in 64 bit OS (as I think others have said). I would actually prefer it unless I was developing for a machine that I knew would be running a 64 bit OS. The other problems with the User.lib going to the wrong directory is a little your fault but I would also blame Microsoft if you wanted. If they must have two separate Program Files directories (and I'm not convinced they do) then why wouldn't they have the old Program Files be x86, and make a new directory called Program Files x64? I'm sure they knew that making the x86 folder renamed would break some code. I installed some printer software that installed inside C:\Program Files\Program Files (x86)\[printer software directory] I'm not sure who is to blame but on a 32 bit OS this installs to the right location. And Shaun why are you activating modules manually? Does the activation wizard not work for you in Windows 7? I guess I woke up on the wrong side of the bed. Came into the office an extra hour earlier because my laptop was in the wrong time zone after traveling. So don't take anything I say personally.
-
I think it's already been said here, but my RSS wasn't working for a while and I missed this topic. I like what Wikileaks is doing, but I understand that what they do will upset alot of people. But these people should not get upset at Wikileaks, who haven't broken any law (someone correct me if I'm wrong). And personally attacking Julian Assange is not the right thing to do either. In my opinion they should go after those that gave the information to Wikileaks (if they can determine who) and they should be mad at the organizations responsible for the wrong doing that is in the leaked information. It seems too often that someone exposing a problem with the system is attacked, instead of those who caused the problem. The recent story about the Ipad AT&T security flaw comes to mind. Where those that found the data using a web browser alone, with no "hacking" involved are being charged. That story is a little more complicated because telling AT&T about a flaw, is different from finding the flaw then running it for 5 days to get all the data from it.