08-14-2007 10:48 AM
08-14-2007 10:50 AM
What is the best way to get readings from the scope?
Looks like you have already done this bit from your code, Although i cannot test it as i do not have the instrument drivers (Or the instrument for that matter)
Record those readings?
I have given you an example above of one method of many of how to record the results to a file.
Create a graph out of those readings?
That is easily done LabVIEW, however getting the Image into the same report/file as the results is a little more tricky. The NI report toolkit makes things easier. You could for now put a waveform graph on the front panel and wire your data directly to the indicator. Then on the block diagram, right click on the Indicator and select the following. "Create --> Invoke node --> export image. This will drop something on the block diagram which you can export the graph on the front panel to a file of your choosing. for example you could save the .csv file and the graph (.bmp) in the same folder. There are lots of ways of doing this sort of thing although i am suggesting what i believe to be the easiest for now as i am sure you will want the easiest solution.
Its supposed to be autamated, so everything is done with minimal user input.
Following the above and creating an auto indexed directory structure (Use the get date and time functions), should give you a folder with a excel file and a bmp each time you run the code without any user interaction.
Regards
Craig
08-14-2007 10:56 AM
Wow....AWSOME
Craig I apprecita your help alot! I will try that now!
Thank you!
P.S. IS it Ok to contact you with further questions?
08-14-2007 10:58 AM
08-14-2007 10:58 AM
08-14-2007 11:24 AM
08-14-2007 12:24 PM
08-14-2007 12:43 PM
08-14-2007 01:00 PM
Dennis,
Can you actually tell me how to save data in the excel in a column and NOT in a row?
Thank you!
08-14-2007 01:05 PM - edited 08-14-2007 01:05 PM
I don't know what you mean by 'in the form of different values'.
The Export Waveforms to Spreadsheet File saves the data with a header that includes the dt (the sample rate of your scope in this case). In column 1, there is a timestamp (start time) and in column 2 there is the y values. You can also use the Write to Measurement File. I don't often use Express VIs but I believe it saves the start time in the header and in column 1, there are relative times based on dt. Column 2 has the y values. If you want to use the Write to Spreadsheet File, then the Y array from the Build Waveform can be wired to it. This doesn't save the sample rate and if you want this, you will have to decide how to save it in the file.
Saw your other post after I had written this. The Export Waveforms to Spreadsheet File does save data in a column.
Message Edited by Dennis Knutson on 08-14-2007 12:10 PM