05-15-2011 06:52 PM
Thanks for the reply.
I have searched for error-50103, http://digital.ni.com/public.nsf/allkb/485201B647950BF886257537006CEB89?OpenDocument.
In this document mine is case 2 or case 6. It says combine all operations of same type together, or use buffer. But in my VI I am using each AI channel for different purpose one for voltage reading, other strain, current, temperature. How can combine different channels coz generally the read & write function need individual clear task? I am confused.
Please see my Vi attached.
05-15-2011 08:19 PM
You simply wire each Create Channel from one to the next. All of your operations are the same - analog input. It's irrelevant that some are voltage, strain, etc.
This last example is just as wrong as your previous one.
05-16-2011 04:01 AM
Thanks alot!
Please see the revised VI.
File 1: I revised the Error-50103. But I am not sure. Is it correct?
File 2: I wish to save the data file in one analog, file as voltage, current, temperature, online, one as digital data file, continously.How can I modify it?
But
1.Stop button is not working in both.
2. I am unable to save the file.
3. When I put the create channel strain analog input, it gives error , no excitation..
05-17-2011 06:55 PM
How can modify my VI for one Stop?
How can I save the data of analog and digital in excel file.
Please see the attached.
05-18-2011 07:07 AM
Several ways of stopping multiple loops exist.
Use of a notifier is one good way. A local variable can be used, but you cannot use the latching mechanical action for the boolean and you must be very careful to avoid race conditions.
You inner while loop (where the Digital Read and Write are located) cannot be stopped by the stop 2 button as you have it connected unless the button is pressed before the inner loop starts. In that case it executes one iteration and stops. If stop 2 is false when the inner loop starts, that loop will never stop and the loop containing it will never proceed to the second iteration because it must wait for the inner loop to finish.
Do you want to save the data from only one iteration or all data? The Write to Spreadsheet File.vi is the easy starting point. It will not accept mixed numeric and boolean data so you will need to do some manipulation of data before writing to file.
Lynn
05-19-2011 10:24 AM
Thanks John.Your suggestion helped me alot.
Please can you help me develop the VI for saving analog and digital data as per the VI I posted.
05-19-2011 10:25 AM
Yes I want all data which is iterated or online data values.
05-19-2011 02:40 PM
First you need to define the format for data in your file. Will it be a text file (tab- or comma- delimited) or a true Excel format file? How many significant digits do you need to save for each data point? Is it the same for all columns or different fro different kinds of data? HOw will you format boolean data in your file? What kind of headers do you need in the file?
When you have defined these things, then you can get to specifics about how to save to the files.
Lynn
05-19-2011 09:49 PM
I am using N channels with one sample data at each channel. File format needs to be excel.
Analog Data consist of Pressure values, Temperature Values, Level values
Digital Data consist of Information about Motor, compressor, pump switches On/Off i.e 1 and 0 values
Digital Data Analog Data
Pump Pressure Temperature Level
Digital data
Compressor
Digital Data
Motor
05-24-2011 01:21 AM
how can I change the filling color in the pipes? Its by default giving black color? I checked the properties there is no option to change the fill color also its not availble in the scales, when I right click the pipe it give the color pallete, I can change the color to any color but when I run the program the pipe is enabled, the color changes to black?
please let me know how can I solve the problem.