Coloring a 3D Graph using measured Data

Hey there,
at first: Sorry for my "bad" english...I dont even know how to explain my problem in german, so english will be tough
I made a programm that can read the coordinates of NC Programms (X,Y,Z) and plots it into a 3D Graph (so I am plotting an five achsis milling process). This works fine. But: I have an array full of Data that has been measured while milling (e.g. acoustic emission, cutting forces..etc). I have to color the 3D Plot using this measured data.
For Example: While milling the cutting forces raises and the plot should color using the cutting forces from green to red (green: cutting forces below certain limit, red above). So when I read the coordinates/the plot (which describe the contour the tool runs) I can see by its color if everything (the measured process parameter) is fine.
I checked the 3D Plot's color vector but I just didnt get how it works. I read that the coloring is mostly affected by the Z- Coordinates (If it would be just affected by the color vector itself!)
I hope I could describe my problem properly. Thanks & best regards
Bastian

man1ac wrote:
Its me again.
I just used try and error at the 4D Acc example and somehow I made it work. BUT:
I just can use this settings, otherwise the lines are combined or the surface just doenst work (if I choose this).
PointStyle: cwPoint3DSolidCircle (I can use other Point structures, but this one looks the best)
PointColor: It set onto blue, but has no effect
LineStyle: no actual effect (what does it?)
LineColor: the same
ContourLevels: Whats this feature?
PlotStyle: cwPoint
Transparency: 20
Can anyone explain to me what these name features acutally do?
The result is not quite bad, the plotted Points change their color dependend on the W-Vector (I just filled one with 0 and replaced 2 values, so that only 2 Points will me Colored).
But the result would be nicer if I dont see any points, but a line which is colored. I didnt find any working combination of the possible settings.
Again thank you very much, 90% of the work are done *happy*
Well the other 10% is something you will have to get yourself by playing with the various options.
Line setting only have an effect if you are using a plot with line.
Point color is derived from the W vector and the color mapping.
Contour levels will draw lines throug hte surface where the Z plane intersect the surface.
 I never got the help to work corectly and lerned everything I know by playing with the code.
Have fun!
Ben
Ben Rayner
I am currently active on.. MainStream Preppers
Rayner's Ridge is under construction

Similar Messages

  • Sychronize AO/AI buffered data graph and measure data more than buffer size

    I am trying to measure the response time (around 1ms) of the pressure drop indicated by AI channel 0 when the AO channel 0 gives a negetive single pulse to the unit under test (valve). DAQ board: Keithley KPCI-3108, LabView Version: 6.1, OS system: Win2000 professional.
    My problem is I am getting different timed graph between the AI and AO channels every time I run my program, except the first time I can get real time graph. I tried to decrease the buffer size less than the max buffer size of the DAQ board (2048 samples), but it still does unreal time graph from AI channel, seems it was still reading from old data in the buffer when AO writes the new buffer data, that is my guessing. In my p
    rogram, the AO and AI part is seperated, AO Write buffer is in a while loop while AI read is not. Would that be a problem? Or it's something else?
    Also, I am trying to measure data much larger than the board buffer size limit. Is it possible to make the measurement by modifying the program?
    I really appreciate any of your help. Thank you very much!
    Best,
    Jenna

    Jenna,
    You can modify the X-axis of a chart/graph in LabVIEW to display real-time. I have included a link below to an example program that illustrates how to do this.
    If you are doing a finite, buffered acquisition make sure that you are always reading everything from the buffer for each run. In other words, If you set a buffer size of 5000, then make sure you are reading 5000 scans (set number of scans to read to 5000). This will assure you are reading new data every time you run you program. You could always put the AI Read VI within a loop and read a smaller number from the buffer until the buffer is empty (monitor the scan backlog output of the AI Read VI to see how many scans are left in the buffer).
    You can set a buffer size larger than the FIFO
    buffer of the hardware. The buffer size you set in LabVIEW is actually a software buffer size within your computer's memory. The data is acquired with the hardware, stored temporarily within the on-board FIFO, transferred to the software buffer, and then read in LabVIEW.
    Are you trying to create a TTL square wave with the analog output of the DAQ device? If so, the DAQ device has counters that can generate a highly accurate digital pulse as well. Just a suggestion. LabVIEW has a variety of shipping examples that are geared toward using counters (find examples>>DAQ>>counters). I hope this helps.
    Real-Time Chart Example
    http://venus.ni.com/stage/we/niepd_web_display.DISPLAY_EPD4?p_guid=B45EACE3E95556A4E034080020E74861&p_node=DZ52038&p_submitted=N&p_rank=&p_answer=&p_source=Internal
    Regards,
    Todd D.
    National Instruments
    Applications Engineer

  • Conversion from scaled ton unscaled data using Graph Acquired Binary Data

    Hello !
    I want to acquire temperature with a pyrometer using a PCI 6220 (analog input (0-5V)). I'd like to use the VI
    Cont Acq&Graph Voltage-To File(Binary) to write the data into a file and the VI Graph Acquired Binary Data to read it and analyze it. But in this VI, I didn't understand well the functionnement of "Convert unscaled to scaled data", I know it takes informations in the header to scale the data but how ?
    My card will give me back a voltage, but how can I transform it into temperature ? Can I configure this somewhere, and then the "Convert unscaled to scaled data" will do it, or should I do this myself with a formula ?
    Thanks.

    Nanie, I've used these example extensively and I think I can help. Incidently, there is actually a bug in the examples, but I will start a new thread to discuss this (I haven't written the post yet, but it will be under "Bug in Graph Acquired Binary Data.vi:create header.vi Example" when I do get around to posting it). Anyway, to address your questions about the scaling. I've included an image of the block diagram of Convert Unscaled to Scaled.vi for reference.
    To start, the PCI-6220 has a 16bit resolution. That means that the range (±10V for example) is broken down into 2^16 (65536) steps, or steps of ~0.3mV (20V/65536) in this example. When the data is acquired, it is read as the number of steps (an integer) and that is how you are saving it. In general it takes less space to store integers than real numbers. In this case you are storing the results in I16's (2 bytes/value) instead of SGL's or DBL's (4 or 8 bytes/value respectively).
    To convert the integer to a scaled value (either volts, or some other engineering unit) you need to scale it. In the situation where you have a linear transfer function (scaled = offset + multiplier * unscaled) which is a 1st order polynomial it's pretty straight forward. The Convert Unscaled to Scaled.vi handles the more general case of scaling by an nth order polynomial (a0*x^0+a1*x^1+a2*x^2+...+an*x^n). A linear transfer function has two coefficients: a0 is the offset, and a1 is the multiplier, the rest of the a's are zero.
    When you use the Cont Acq&Graph Voltage-To File(Binary).vi to save your data, a header is created which contains the scaling coefficients stored in an array. When you read the file with Graph Acquired Binary Data.vi those scaling coefficients are read in and converted to a two dimensional array called Header Information that looks like this:
    ch0 sample rate, ch0 a0, ch0 a1, ch0 a2,..., ch0 an
    ch1 sample rate, ch1 a0, ch1 a1, ch1 a2,..., ch1 an
    ch2 sample rate, ch2 a0, ch2 a1, ch2 a2,..., ch2 an
    The array then gets transposed before continuing.
    This transposed array, and the unscaled data are passed into Convert Unscaled to Scaled.vi. I am probably just now getting to your question, but hopefully the background makes the rest of this simple. The Header Information array gets split up with the sample rates (the first row in the transposed array), the offsets (the second row), and all the rest of the gains entering the for loops separately. The sample rate sets the dt for the channel, the offset is used to intialize the scaled data array, and the gains are used to multiply the unscaled data. With a linear transfer function, there will only by one gain for each channel. The clever part of this design is that nothing has to be changed to handle non-linear polynomial transfer functions.
    I normally just convert everything to volts and then manually scale from there if I want to convert to engineering units. I suspect that if you use the express vi's (or configure the task using Create DAQmx Task in the Data Neighborhood of MAX) to configure a channel for temperature measurement, the required scaling coefficients will be incorporated into the Header Information array automatically when the data is saved and you won't have to do anything manually other than selecting the appropriate task when configuring your acquisition.
    Hope this answers your questions.
    ChrisMessage Edited by C. Minnella on 04-15-2005 02:42 PM
    Attachments:
    Convert Unscaled to Scaled.jpg ‏81 KB

  • Using graphs in measurement studio

    I have written in multiple languages, and this �easy� �user friendly� software package has left me completely stumped. How on earth do you put data in to a graph and display it????? Can someone please show me code examples of firstly how to shove an entire array of numbers into a graph in VB.net using the new Measurement Studio and secondly how I could update a graph plot with a next acquired sample. Please help

    "Where would I find "Creating Measurement Studio Strip Charts, Scope Charts, and Graphs" document. if it is on the website it is extremeley well hidden even from its own search engine. Does this specifically talk about VB .NET and measurement studio"
    You can find this topic, as well as several other conceptual topics about the Measurement Studio .NET features with VB.NET/C#, in the Measurement Studio help that installs with Measurement Studio. You can find this help in two ways:
    Integrated into VS.ET 2003/MSDN Help - Go to the table of contents, then the "NI Measurement Studio Help" node.
    Measurement Studio standalone help - Go to the Start Menu, then Programs->National Instruments->Measurement Studio 7.1 for VS.NET 2003->Measurement Studio Documentation
    Once you're in the table of contents, you can find the topic above by navigating to:
    - NI Measurement Studio Help
    - NI Measurement Studio .NET Class Library
    - Using the Measurement Studio .NET Class Libraries
    - Using the Measurement Studio Windows Forms .NET Controls
    - Using the Measurement Studio Graph .NET Controls
    The topic above is the second link in the list. If you have Measurement Studio 7.1 installed, this link will take you directly there.
    "Using Measurement Studio ActiveX controls I wouldn't even know where to start, there is no AxCWGraph on any toolbar."
    AxCWGraph is the name of the interop wrapper that is automatically generated by VS.NET when you add CWGraph to your project, so you won't see it in the toolbox. WaveformGraph/ScatterGraph is what you should use in .NET applications if you have Measurement Studio 7.0 or higher. I only mentioned CWGraph because this was posted to the Measurement Studio for Visual Basic forum instead of the Measurement Studio for Visual Studio .NET forum, so it wasn't clear if you were using the Measurement Studio .NET controls or the Measurement Studio ActiveX controls.
    "If NI could just stick an example of exactly how to use VB.NET with measurement studio on displaying data and the various options available and stick it for all to see on the measurement studio home page it would be great."
    There are several examples that are installed with Measurement Studio 7.1. If you installed Measurement Studio to the default location, you can find this examples at:
    Program Files
    National Instruments
    MeasurementStudioVS2003
    DotNET
    Examples
    UI
    Graph
    "I write in over ten different languages and scripts and fluent in two of them. It worries me that I can't even find the front door let alone open it."
    I can understand how this could difficult if you were not aware of the Measurement Studio help and examples. Is it easier now that you know about this content that installed with Measurement Studio? If not, what else do you feel is missing?
    - Elton

  • How to get the measurement data from IMU using SBRIO through SPI?

    Hi All,
    I’am trying to use the SPI communication protocol to realize the bridge between my Vectornav VN100 IMU chip and the LABView through the SBRIO 9602. I amended the SPI sample code from NI website based on my own device and configuration. It compiled and ran well. The problem is the IMU we are using need a 16 bytes command and it will give back a response containing the measurement data. But it seems that with the code I have, I can only send an at most 32 bits command once. Hope anyone who has experience in IMU implementation on LABView could give me some help! Thanks a lot!
    Nick

    Kyle,
    Thank you very much!
    I attached the amended program and the Manual Sheet of the IMU I am using.
    Since I only need to one port, I just amended the configuration for port 1 and adjusted the code for my device. 
    I think the problem exist in the data sending mechanism, you can check the requirement out in P12 and P13 of the manual sheet.
    Best Regards!
    Nick
    Attachments:
    Vectornav VN100.pdf ‏1774 KB
    spi_dual_port_example.zip ‏755 KB

  • I Want to graph useing MSGraph with array data

    Hi..
    I need to skill to graph using the msgraph with array data
    My forte version 2.0h
    E-MAIL ADDRESS : [email protected]
    TEL(C) : 02)273-3131(5233), 0331)40-8366(ÇöÀç ¿©±â ÀÖ½¿)
    PAGER : 015-959-9390
    HAND PHONE : 011-411-9395
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

    This #pdfloc data is generated by RMSDK when user highlight (annotation) pdf and keep it in XML format in file system: E.g.
    <annotation y="-116" isvisible="False" x="-110" width="220" height="100">
            <dc:identifier>urn:uuid:DF061693-A668-49DF-A20B-DE243C463919</dc:identifier>
            <dc:date>2015-03-02T12:04:53Z</dc:date>
            <dc:creator>creator id</dc:creator>
            <dc:title>Page 4, 02-Mar-2015 5:34 pm</dc:title>
            <target>
                <fragment start="#pdfloc(7f54,3,37,0,0,0,0,1)" end="#pdfloc(7f54,3,37,3,1,0,1,1)">
                    <text>by Matt</text>
                </fragment>
            </target>
            <content>
                <dc:date>2015-03-02T12:04:53Z</dc:date>
                <text></text>
            </content>
    </annotation>

  • Using Field Data for Interactive Graph?

    Hello,
    I work for a lighting company and our salesmen use in-house created sales materials on iPads in the field. We've found Acrobat PDF Files to be very effective in demonstrating how switching to different wattage bulbs can save them money, through the use of data calculation fields. However, we're also hoping to illustrate this visually through some type of interactive graph. Specifically, I'm trying to find a way, if possible, to make a "return on investment" bar graph that would tailor itself to the user. Here's an example of the type of graph I'm trying to make though a PDF:
    Basically, this chart shows how much of a initial investment (in this case ~$25,000) would be mitigated over 10 years (eventually saving the company over ~$70,000). Not that the details matter much... I just don't really know where to start. I have a small amount of experience using fields, and I'm versed enough for simple calcuation and pulling data from other fields, however I have no idea how to turn this data into a graph of this complexity (or even know if it's possible).
    Any advice would be vastly appeciated!
    Many thanks,
    Dan

    Your best best is to use some presentation software such PowerPoint or Keynote.
    On an iPad you could use Numbers to create the Graphs then put then copy the graphs into Keynote and have the run as interactive slides you click or touch an item like a slide.  I don't know of any software that create interactive Graphs That you can create graphs that grow or shrink by inputting numbers.
    I've Googled interactive Graph for Mac and come up with this:
    https://www.google.com/search?q=Intreractive+Graph+for+Mac&sourceid=mozilla-search&start=0 &start=0&ie=utf-8&oe=utf-8&client=mozilla
    and here is result for iPad:
    https://www.google.com/search?q=Intreractive+Graph+for+Mac&sourceid=mozilla-search&start=0 &start=0&ie=utf-8&oe=utf-8&client=mozilla#pq=intreractive+graph+for+mac&hl=en&gs_nf=1&tok= pFb9_G1GM62Cf32INLbniw&cp=27&gs_id=7oy&xhr=t&q=Intreractive+Graph+for+iPad&pf=p&client=moz illa&sclient=psy-ab&pbx=1&oq=Intreractive+Graph+for+iPad&aq=f&aqi=&aql=&gs_sm=&gs_upl=&bav =on.2,or.r_gc.r_pw.r_qf.,cf.osb&fp=43f3605c77841060&biw=1568&bih=755
    Note this not advertisment (spam) for any product on search results of things that can create interactive Graphs on Mac and iPads. 

  • Fix for "Graph Acquired Binary Data.vi" in daqmx 7.4's "Measure Voltage.llb". (factory gains are reversed)

    While perusing binary data collected from the SCXI 1102 and usb 1600, the gains were found
    to be reversed using daqmx writer/reader example code from NI. This bug only surfaces if your using different gains amongst the channels.
    http://sine.ni.com/apps/we/niepd_web_display.display_epd4?p_guid=F7199E619CBF4215E0340003BA230ECF&p_node=201208&p_submitted=Y&p_rank=5&p_answer=yes
    has the fix for the binary to floating point viewer vi, "Graph Acquired Binary Data.vi".
    Enjoy.
    Best,
    Davy Baker
    GAMI

    duplicate post
    Continue in other thread
    Message Edited by smercurio_fc on 11-14-2008 09:10 AM

  • Measure data using RS-485 Port on cFP-2120

    I have cFP-2120 with one RS-485 Port, One RS-422 and one RS-232 Port available, i want to measure data using the exisiting RS-485 Port on cFP-2120.
    I have Rx and Tx Signals from my equipment. Two wire
    Also i have RS-485 Enabled device with 4 port availble. I want to use RS-485 connected with RJ-50.
    Also give me pinouts for Rx and Tx.
    Thanks.

    I am a little confused by your statement "I have cFP-2120 with one RS-485 Port, One RS-422 and one RS-232 Port available".  The cFP-2120 has 3 RS-232 ports and only 1 RS-485  (or RS-422).
    Look in the manual for the cFP-2120.  Here is a link. http://www.ni.com/pdf/manuals/371380b.pdf  Pages 3-7 thru 3-10 have information and pinouts for the serial ports.  It also tells how the RS-485 port is a 4-wire port, but it can connect to a 2-wire RS-485 installation with jumpers and special programming to account for the echo back of outgoing commands.  Another alternative to 4-wire to 2-wire conversion is to get an RS-485 isolator that would have switches to set one side to 4-wire and the other side to 2-wire.  I have used this one from B&B electronics successfully.  Though you say you are using 4-wire on your device, so you would not need it unless you have the need for electrical isolation between the device and your cFP.  Perhaps the discussion of 2-wire was a misunderstanding.
    Remember that the transmit lines from your device will go to the receive lines of your cFP and vice versa.  The polarity of + and - should match between the two devices.  TX+ to RX+, TX- to RX-,  RX+ to TX+,  RX- to TX-, and GND to GND)
    As for VISA, you would just configure it like you would any RS-232 device with the baud rate, parity, and stop bits to match your device.
    Centerbolt, thanks for the kind words and posting the link to the other thread.

  • Step using old measurement data

    I have a strange problem.
    I have a test sequence which runs correctly for several previous steps, using VI's
    Then it comes to 2 steps test (multi numeric) which calls the same VI (once in each step), output of VI is a 12 element numeric array.
    Now these steps are failing because the measurement used seems to be old data (i.e. the first step is using the measurement from that VI from the last sequence run, and the second step is using measurement from the previous step)
    I know the VI is returning the correct data, beacuse i put in a break point & watched it.
    And i know that VI data is initialised before returning the measurement.
    Its really crazy. None of the previous steps using other VI show this problem. And i can call the VI in question manually and it returns correct data.
    Any ideas?
    Labview 2010, TestStand 2010

    If you are using the same VI's on different steps and dont unload the step after its completed, this willl mean your VI stays in memory and any values on controls and indicators will remain from previous calls unless ofcourse you pass new data on the all the controls, or initialise any unused controls. Like wise on indicators make sure you initialise these, so for instance if you dont empty the output array or completely over write the indicator with the same number of elements as in previous calls you may see old data pass back to Teststand.
    Do you pass the error cluster out, maybe you are getting a error and if you are not passing this back to teststand maybe you are seeing old data because of an unseen error.
    Just a couple of thought.
    Regards
    Ray Farmer

  • Can I acquire data with VB from my DAQCard without using Measurment Studio?

    I have the Measurement and Automation Software on my computer and VisualBasic.NET. Do I need any other software if I am receiving 2 analog signals and outputing 1 analog signal on my NI DAQCard-6024E PCMCIA?

    The short answer is yes, you can acquire data with VB.NET from your DAQCard without using Measurement Studio.
    There are a variety of ways to do it. All of them require that you install either the Traditional DAQ driver or the DAQmx driver in addition to Measurement and Automation Explorer. The DAQ drivers are included on a CD or CDs with your hardware. They are also available on the quarterly National Instruments Device Driver CD.
    1) You can use the Measurement Studio DAQmx .NET API. This is far and away the easiest API to use to program DAQ cards in VB.NET and C#. This API is included in the DAQ installer and does not require you to purchase Measurement Studio. However, without Measurement Studio you do not get the benefit of the DAQ Assistant integrated into Visual Studio .NET. The DAQ Assistant, when integrated into Visual Studio .NET, allows you to graphically configure your DAQ tasks, generates the code you need to configure your tasks, and generates a .NET user control (with user interface) that demonstrates how you use the tasks that you created. The caveat to this approach is that PCMCIA cards are not directly supported under DAQmx 7.0. There is, however, a beta versin of DAQmx PCMCIA support as described in this KB article.
    2) You can use the .NET P/Invoke services to call the Traditional DAQ or DAQmx C API directly. See MSDN for more information about P/Invoke. If you choose the DAQmx API, you will need to install the beta of the PCMCIA support as described in this KB article. National Instruments does not provide any examples, language-specific documentation, or code generation for this method. You'll need to look at the C API documentation to see what to do.
    3) You can use the Measurement Studio Traditional DAQ ActiveX controls. These are included in the DAQ installer and do not require you to purchase Measurement Studio.
    The absolute quickest and easiest way to get started using an NI-DAQ card in VB.NET is through the DAQ Assistant and Measurement Studio Professional or Enterprise edition.
    Your next best approach is to use the native .NET DAQmx API. This API was designed from the ground up to support .NET languages. There are examples written in VB.NET to help you get started.
    If for some reason, you don't want to use the native .NET API (or your hardware is not supported under DAQmx), whether you use P/Invoke or the ActiveX controls is a toss-up. It depends mostly on whether you are already familiar with the C API or the ActiveX API.
    David Rohacek
    National Instruments

  • Color XY gra[h using a gradient?

    Hi,
    I searched around on the forums and  website a lot, but I couldn't find what I was looking for.
    I have a set of data representing the thickness of a piece of metal, it's been measured at many points to make a grid of data and I plotted it using an Intensity Graph to show the topographical information. I then added a XY Graph beside it, and added a cursor to the intensity graph. As you move the cursor, it displays the profile at that slice.
    I'm just wondering if it's possible to color my XY  graph the same way the intensity graph is colored? Would I need to have a plot for each region or is there a way to interpolate colors on an xy graph?
    Attached is a VI I made showing what I'm trying to do.
    Thanks!
    -Nick
    Solved!
    Go to Solution.
    Attachments:
    Profile_SIM.vi ‏28 KB

    sasko wrote:
    It seems that my question belongs here.
    No, it doesn't! This is a thread with a marked solution. Even though the topics are related, you now cannot mark a reply to your question as solution, because it is not your thread. Also, this thread is half a year old. So, next time start a new thread. Insert a link to this thread if you think it provides additional information.
    I don't know what kind of interpolation the 3D graph uses, but here's a quick draft (LV 8.0) using my old bilinear interpolation routines posted here many years ago. (see also this example).
    It probably needs a few tweaks but should get you started.
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    BilinearGraph.png ‏53 KB
    Uporedno 3D graph i intensity grap v1MOD.zip ‏154 KB

  • How does waveform graph downsamples the data before it is plotted

    Hi,
    I'm interested in how does waveform graph downsamples the data before it is plotted and what algorithm is used for this purpose? My goal is to plot 30 plots that have 1M samples each and I would like to downsample them before plotting onto a graph. I tried several VIs/algorithms for resampling and none of them gave the same result as seen by waveform graph (when all the samples are plotted).
    For example, if only one sample of 1M samples is 1 and all others are 0, then after downsampling to 1k samples the sample is not visible on the graph anymore. However, if I plot all 1M samples directly onto the graph, then also this 1 sample is visible (see attached example). 
    Solved!
    Go to Solution.
    Attachments:
    WFGDownsampling.vi ‏19 KB

    Hi andrej,
    LabVIEW draws plots in the way that draw every pixel affected by signal. So for example if there is zero-valued 1M samples and even one equals to 1, you will see the peak. That is the reason why you do not get the exactly same behavior comparing to interpolating. But if you set FIR as interpolation mode in Resample Waveforms (single shot).vi, result is really similar, but of course amplitude is 1000-times smaller than original one (because there is dt set to 1000). Keep also in mind that in Graph 2, there is different Y-scale and it should be considered as noise, not relevant data, I would expect 1000-times smaller amplitude as in Graph 3, it is many more times smaller.
    I would also like to say something about downsampling (decimating) the data. If you have 1M samples, you can see the peak even that there is only one value. But bigger problem is that with this graph resolution (I guess that is not more than 1000px), it is problem to find position of this peak. It means that still the zoom is needed to know where the peak is. Usually, when there is that big set of data, you are extracting different data (statistical information, peaks in FFT, etc.) not just visual data in graph.
    Mariaaa:
    I do not understand your question, can you please describe more your needs? You mentioned saving the data into a file, you can use Write to Measurement File express VI or see Write to Text File.vi in Example Finder and try to appropriately modify it.
    Best regards,
    Martin

  • Programming Marker Color in XY Graph

    Hello Everyone,
    In Igor by Wavemetrics, I can plot XY graph with marker only, the marker color can be tied to the corresponding value in a third data column.  In some sense, this is similar to but not quite like an intensity graph.  Is it possible to do this in Labview?
    I will move my X-Y stages to search for a laser beam in large steps and nail its maximum in finer steps.  I would like to plot the trails of my search.  I would appreciate if someone already has this kind of search vi.
    Thanks in advance.
    Fang

    Fang,
    It is possible to change plot point colors of an XY graph by using a property node run through a case structure.  If the results found entering the case structure set it to either true or false, the points can be set to be a certain color.  The property you are looking for is Plot.Fill/Point Color.  However, this is definitely not the most robust method for doing this, as it involves breaking down your x and y data into individual numbers using a for loop.  Also, because the way the XY graph pulls in data, it is essentially impossible to change the color of just one point.  In order to do this, you would need to set up a multiplot and have one plot using one color and the other plot using the default color.  The plot that utilized your signal color would only plot if certain conditions were met.  
    So, I would say that using the 3-D graph functions would be a much simpler method, as was suggested by the previous user.
    Mr. Moore

  • Linking lines on a graph with missing data

    Hi
    I am trying to produce line charts for a series of events. The way it will work is there are 15 days, and measurements are taken at uneven intervals, such as day 1, 2, 3, 7, 12, 13, 14. When I plot these, the line links the plot marks where they are just a day apart, like 1,2,3, leave a dot for 7 and then have a line between 13 and 14. How do I link the line so it can jump the days without any measured data?
    Thank you in advance.
    Stuart

    What you are describing is what happens when you have empty rows in your data series. Numbers does not have the option of connecting points across a gap.
    If you use a line chart (not the scatter chart), you can create a new series in your table that interpolates the missing points. Plot it as a second series with the same line color but no data points. Interpolation across a one row gap is easy to do. Interpolation across several rows is easy to do. Interpolation across a gap that might be one row or might be more is hard to do with a formula that works regardless of the size of the gap (I cannot think of a formula to do it off-hand).
    If you use a scatter chart, you can use Reorganize to hide all rows where the Y data is blank.  The remaining rows of data will plot and the dots will all be connected.  If you don't want to hide rows in your data table, you can create a separate table that pulls in the data. Use that table for your chart, showing only rows that have Y data.
    Note that you can use Reorganize for a line chart too but it will not plot the hidden X categories.

Maybe you are looking for