08-27-2007 03:54 PM - edited 08-27-2007 03:54 PM
Message Edited by Dejun on 08-27-2007 03:56 PM
08-27-2007 10:31 PM
First, make sure you wire up your error wires.
Second, I don't think you need a conver 1DWaveform to Dynamic Data, then a Dynamic Data to Array to feed into the chart. The chart will take the waveform directly.
Right click on your Express VI and Open Front Panel. Say yes to convert. (You may want to save a backup of your current VI since this is a one way operation, and you have something to fall back to incase this fails.
Drill down into the subVI and see how it is written. I usually start something with an Express VI to get something started quickly, but do this to see how it works and learn something. But when I did this for the Write Measurement file express VI, it was a bit scary.
However, all of the file function VI's you need are in the file I/O pallette. Remember to open a file before a loop, do your writes in the the loop, close the file after the loop. Wire the file reference wire and the error wires through. Use shift registers with them. Look at the Help menu/Find examples and look at the various File I/O examples.
08-28-2007 08:59 AM - edited 08-28-2007 08:59 AM
Message Edited by Dejun on 08-28-2007 09:00 AM
08-28-2007 09:30 AM
@Dejun wrote:
I know the chart takes waveform directly, but the way it displays the plot is not what I need. I got this coding from convert DAD Assistant (Indeed, this is the way you recommended to me in one of my previous posts)
That's fine, if it works the way you want, go with it. It just jumped out at me that it is doing two conversions in a row. One other possibility is that there is a Get Waveform Components function in the Waveform Pallette that takes a waveform in, and puts out an Array on the Y component of the cluster.
Those express VI's are pretty powerful and have to have a lot of flexibility to work in different situations, so they may not always generate the simplest, most efficient code. Like I said, I like using them to get something to work quickly, especially if I don't know how to begin from scratch.
08-28-2007 10:18 AM
08-28-2007 10:59 AM