01-31-2008 09:16 AM
02-04-2008 08:45 AM
02-04-2008 08:55 AM
stanthetiger wrote:
Hi Smm,
One possible solution is to decimate the data array comming out of the DAQmx Read VI or the DAQ Assistant Express VI. For example, if your number of samples is 1000 and you're sampling at 1000Hz, then you're getting 1000 samples every second. Therefore, you want to save every 1000/12.5 = 80th data. You can use Decimate 1D Array VI to do this. By using case structure, you can set when you want to decimate the array depending on your output voltage level.
I'm not sure what you mean by "write to spreadsheet (not CSV)". The Write To Spreadsheet File VI in LabVIEW does write data in a CSV file format. However, you can open easily CSV files with Excel.
What bug are you refering to causes all the shipping examples to disappear? LabVIEW shipping examples can be very helpful. Are you able to repair LabVIEW using Add/Remove Programs.
Regards,
Stanley Hu
National Instruments
Applications Engineering
http://www.ni.com/support
02-04-2008 09:19 AM
02-04-2008 09:39 AM
ya the same letter. it is unrelated i agree, but since that update all these starnge things happened to labview on my computer. Anyways that is kind of under control now.
I have attached a code here. Should these values be between 0 and 10V instead of 180-300 or 197-218? I can get some external hardware conditioning done in order to step down the voltage.
Also could you tell me how can i change the path of the file name?
02-04-2008 10:33 AM
02-04-2008 10:38 AM
Yeah that makes sense.
But for these other questions:
1)How can you change the path of the file.
2) I want to be able to write all values in the spreadsheet (whether they lie in the specified threshold range or not). Only the no. of pts. written vary. If they are in the range then they should write maybe about 25 pts. But if the values go outside the range it should write all values till the readings come inside the range.
How can I modify the code to do that?
02-05-2008 09:21 AM
02-05-2008 09:32 AM
No. I want to be able to write all the points to the spreadsheet that lie outside the range. When they lie in the rnage then it should write about 25 pts.
What do you mean by decimate? Do you think you could show it to me in my VI if possible.
Thanks,
Shreya
02-05-2008 09:57 AM