dblk22vball
Members-
Posts
120 -
Joined
-
Last visited
-
Days Won
1
Content Type
Profiles
Forums
Downloads
Gallery
Everything posted by dblk22vball
-
Updated the code to save multiple signals to a file.
-
Sorry, files must have got mixed up. try this one.
-
QUOTE (grizzzly @ Dec 9 2008, 01:52 PM) The For Loop allows you to pair up the dt and Y values quickly and automatically. Check the examples shipped with LabVIEW for more information on the For Loop. Vi is saved in LV 8.5.1 added ver 8.2 as well
-
VI Server with built applications
dblk22vball replied to jdunham's topic in Application Design & Architecture
Did you enable the TCP/IP in the Vi Server: Configuration options of LabVIEW (Tools>> Options)?? That should then have the TCP/IP enabled in your exe. Also, you might have to add the port as an exception in the windows firewall, although you said you looked at the firewall. Just a thought. -
QUOTE Do you know what directory that the .exe looking for the file?? You could just save the file there.... Also, check how you have the popup set up to "pop-up", it may not be configured properly or maybe you are not initializing the stop button and it is always set to true stopping the vi, ie closing it immediately??? Just throwing out ideas, I cant say too much without a picture or vi or more information.
-
Congrats on the Ni Job. I also see that you have been scrubbed from the NI Certified professionals website, I guess they dont want to let it be known who they have :worship:
-
Not 100 % on what exactly you are asking for, but here is my interpretation. 1. You have a simulated (or real) waveform and you are looking to save values from it to a file for processing in Matlab. 2. The values that you want to save are: the X and Y values, ie the relative time (x axis) and the amplitude of the signal (y axis). I attached a picture of my interpretation. I am sure there is a more elegant solution, but just what I though of real fast. Basically you pair up the X and Y values of the waveform using the Pair XY values vi, get the dt (time difference between each value), combine them into an array, and then save the data to a text file (last part not shown). Let me know if this is not what you are talking about.
-
The waveform is actually made up of 3 parts: Value, Timestamp and dt. You need to use the Get Waveform components vi to get the value and Timestamp out. Then you can combine those in an array and save it to the file. Also, if you want all of the data points saved to the text document, and not just the current data, you will need to set the Append to File? input to True (default is false). I would also convert the Timestamp and value to strings to save to the text file, otherwise the timestamp will be saved as the time since 1906 (or whatever that date is ) and not in a format such as mm/dd/yyyy hh:mm:ss. It depends on how you want it formatted.
-
QUOTE (jdunham @ Nov 25 2008, 02:58 PM) DOH :worship: I totally forgot that they have to be the same length..... The cluster idea is working much better (I modified the xcontrol to use that). I just have an issue with getting the correct row that I clicked on, but I should be able to get that. Thanks. QUOTE (Jeffrey Habets @ Nov 25 2008, 03:17 PM) You should use the listbox's Value instead of the Active Row property.. The latter one serves a different purpose (setting/getting row specific attributes, also see Ctrl-h when you hover over the property.) That did help in getting me the right row. For some reason it will not store the correct row though. It always defaults to 0, instead of the selected row. I attached my updated vi's. I tried updating the row in the Data and Display clusters, but it does not seem to be saved for some reason.......
-
I am trying to create a dual listbox xcontrol that will allow you to move an item from listbox to listbox. My intention is to have one listbox have "parts" of the other listbox for configuration purposes. So basically, you select an item in the left hand list box (see vi's), press the right arrow, and the item "moves" over to the righ thand listbox. This is a similiar action to what NI does in the build specifications where you add vis to the startup vi's listbox. I attached my xcontrol, as I cant seem to get any of the items to go anywhere. I am sure I am missing something so very simple. Thanks.
-
QUOTE (Ton @ Nov 21 2008, 09:36 AM) The files are password protected. I will look at the transparent tab control for now. Thanks
-
I was wanting to create a large settings editor, and wanted to avoid doing a bunch of dialogs for different aspects. So my thought was to create something similar to max or most any other settings pages that you see in programs. You have a tree control or listbox on the left hand side, and depending on what row/item you click on, the right hand side changes to the options availible for that setting. I was thinking that it might have something to do with subpanels, but it did not seem to look the same, and seems somewhat complex to pass the data set on the page to the main UI, while allowing the main ui to handle events when the person is editing the settings. (I know that you can use the get controls, set controls methods, but thought there might be a cleaner option) My other thought was you could make all the controls visible and not visible as needed, but that seemed WAY to tedious. I suppose I could use a tab control as well, but it just didnt look as clean as I wanted. Thanks for your thoughts. Below are screen shots from a program that does what I am thinking.
-
So which came first.....the "How I met your Mother" episode this week that had all of the items and paragraph in it, or the website???? NVM: If you go to the shopping site, it says "buy the How I Met Your Mother Gear" Funny stuff (even though I am a dad)
-
I am trying to figure out how to let the user change the range of a gauge by using the mouse. So they could click on the scale, and drag the mouse and it would increase or decrease the range. I am trying to allow the user to "zoom" in the range on the gauge to get a better look at the reading, without having the user to clock on a control (using a numeric control that is tied to the range property node.) I was thinking that you could possibly use the mouse move event when in the bounds of the gauge and whether they moved the mouse up or down would increase/decrease the range, but I thought that there must be a simplier way to implement this that I am missing. Thanks.
-
Machine Vision to test spray pattern of water
dblk22vball replied to dblk22vball's topic in Machine Vision and Imaging
QUOTE(crelf @ Feb 6 2008, 01:42 PM) I'll try to explain a little more. In my diagram, I have the height referenced from the spout. On the right, I have a rectangle (labeled plastic template) with 2 red circles. The red circle is the area that the spray pattern from the spout has to fill, ie the water should fill, if not over fill the red circle. The red circle on the left is a good (pass) pattern, the red circle on the right, is an example of a bad (fail) pattern. I show 2 red circles on the template, but in practice there will just be one. I showed both to try to illustrate a good and bad pattern. The plastic template would be held and X distance from the spout, at the height shown on the far left. I hope this helps. Ill also look into the 3D web analysis to see what is all involved in that. thanks. -
Hello all, I am working on some test fixtures for our manufacturing plant, and it came up in a meeting that it would be nice to measure the height and pattern of water that is coming out of a spray head. From the spout, the water needs to be a certain height, and at that certain height, if you were to place a plastic template at that height, the water pattern should fill the outlined circle (see picture), and if it does not fill the circle, it is not good. I was thinking that LabVIEW and some sort of vision should be able to do this, however I have not been able to find any information on this type of analysis. I did download the Vision assistant from NI, but could not get it to "detect" the water droplets properly (could be I am not 100% familiar with the suite yet). I was just doing a simulated analysis, not with any live equipment (camera). Most of what I am seeing is that a part is orientated correctly, filled with water to a certain amount, etc, not measuring the height of the water droplets and if it fills an area. Has anyone done anything like this before?? Thanks.
-
doh, i am busted
-
It is pretty easy if you start at the "end" of the six instead of the top of the six.
-
CompactRIO saving data to database on network drive
dblk22vball replied to dblk22vball's topic in Real-Time
Thank you all for your responses. I am thinking that I will be going with a Fieldpoint system and our IT department is going to allow me to create an image of the hard drive and have a PC on standby for a computer out in the shop that will just be a monitor, no controlling. I can then have the "main" PC in the supervisors pod and it will not be subjected to the conditions in the shop and should not fail anytime soon. I have used the shuttle PCs before and they are great little machines. Highly recommended for the small form factor. Kenny -
CompactRIO saving data to database on network drive
dblk22vball replied to dblk22vball's topic in Real-Time
Yea, I was going back and forth on the cost issue. I was also considering the PXI and CompactDAQ (compactdaq being the cheapest). I guess the reason that I was getting away from the PC is that our IT dept does not always have a PC ready. So we may be down for a couple of days, which is not a good thing. If we did the compactdaq though, it is USB based, so the PC has to be relativly close to the daq unit (barring the use of repeaters and then you run into the issue of running extra power across the ceiling of the plant floor). I was thinking that with the RIO or PXI I could use our network to transfer the data easily and not have to worry about a PC on the floor, I could have it in the nice air conditioned office area I think that the PXI would be the simplest way to do it without a PC, but again you are in the 10K range. ARRG!!!! I suppose we could build a custom enclosure for a PC (which was done for the networking gear that is out there) but that only increases the life span by maybe a year and costs roughly $1-2k for a "air flowing sealed" encolusre (oxymoron I know). But the user needs to be able to use the keyboard and mouse and look at the data on a monitor. Kenny -
I was looking at different hardware that NI sells for an application at our facility. We will be measuring at least 14 different sensors in a harsh environment, specifically near ovens and in a high dust environment. A standard PC would be usable, but take alot of support because of the dust, which currently is killing PCs in the area in less than a year. I was thinking that the compactRIO looked like a good choice for its rubustness and lack of fans (which usually fails from the dust). Since it runs on realt time instead of windows, is it possible to save the data to a database on a network drive?? I am using the databasse connectivity toolkit and some SQL queries currently to connect to the database. I am not sure if the database connectivity toolkit will work though without windows because I think I read somewhere that it uses activeX controls (activeX controls not availible in real time ????) I am saving to a *.dsn database (access ODBC). With a normal PC I have the netowrk drive mapped in My Computer and just connect to it as I would any other database on the computer locally. Can you "mount" or map a network drive with real time or do you not need to??? I know that I could ftp to the network drive, but then how would I insert the data into the database, another program on another PC?? Thanks for letting me pick your brain. Kenny