02-11-2007 05:26 AM
Hi,
A few more questions,
1) When i try to write to the "write to measurement file", the X- value consists of the number of samples i.e 1-99 instead of the time. This happens only in my final program with the offset correction method involved. In other regular programs it gives the time as it is suppossed to do. How to correct this.
2) Is there any way of naming the header in the write to measurement file, coz the file has headers named "untitled-1" "untitled-2" and so on. I wanted them to be my custom channel names.
2) I couldnt incorporate the semaphore into my program. I have two while loops, could u please attach an example program of how to introduce them into the program.
Thank you.
02-11-2007 10:20 AM
Just a quick note:
1. Distance from the measurement site. At 50 m you probably would be better off to go with current based signal conditioning. This might help some with your offset issues, too.
2. X axis in " number of samples". I couldn't open your original file in 7.1, so I don't know how you're collecting data when you go to write to file but if you're collecting it as a waveform the time data is there and all you have to do is ask for it in properties on the X axis. If you're collecting it as single floating point numbers in an array and then writing that, you have no option but "number of samples" for the X axis, although if your acquisitions are fairly regular and you know how much time elapses between samples, you could scale the x axis accordingly and take it out of scientific notation and just re-label it. As long as the exact issue of time isn't critical, this is IMHO satisfactory.
3. I tended to put a "tare" button in my LVDT and strain gage programs; a button you could press that would activate a case structure, and in the case structure it would take the current raw voltage reading on the channel and load it into a variable that was constantly subtracted from the reading. This allowed us to choose "zero" and measure the difference in strain from our initial reading, the kind of thing they do on scales to subtract the box weight. (And in LVDTs to subtract the setup movement.)
Hope this helped some
02-14-2007 03:06 AM
1) When i try to write to the "write to measurement file", the X- value consists of the number of samples i.e 1-99 instead of the time. This happens only in my final program with the offset correction method involved. In other regular programs it gives the time as it is suppossed to do. How to correct this.
2) Is there any way of naming the header in the write to measurement file, coz the file has headers named "untitled-1" "untitled-2" and so on. I wanted them to be my custom channel names.
could you attach this vi?? we could take a look and suggest better
For semaphores, look at attached vi
02-18-2007 10:57 PM
hi devchander,
The VI that u had sent for the offset removal was converting the dynamic data to floating point data, i figured thats the reason why the X-axis of the write to measurement file was giving sample numbers instead of time, now i created this VI which i have attched with this reply which essentially does the same offset removal but all the values are in dynamic data, hope this VI does not have any errors, please look at it for me. And also this will be the VI which i will be using the semaphores for to synchronize the two while loops.
Thanks.
02-19-2007 03:40 AM
Sorry, since I have LabVIEW 8.0 on my system, I could not take a look at your vi (that is in LabVIEW 8.2)
03-12-2007 06:06 AM
03-12-2007 07:16 AM - edited 03-12-2007 07:16 AM
Well, even I would be of the opinion that by using DAQmx functions( lower level), you could get a better performing vi
You have put a 'Wait Until Next ms Multiple' function with value as 100 inisde the loop. You could probably take this out since you are performing a clocked finite acquisition inside the Express vi.
Are you getting the offset correction/removal correctly for DAQ express 4??
You are subtracting the acquired values ( DAQ express 4) form the the initial offset value ( DAQ assistant 3) ( it should be vise-versa)
Also, try to keep the two acquisitions in 2 seperate loops
Hope this helps
Regards
Dev
Message Edited by devchander on 03-12-2007 07:19 AM
03-13-2007 01:36 AM
HI dev ,
Thanks for ur input, I am trying to work on a VI with lower level functions, but since we have like 16 chanels the program gets stuck as soon as i try to use an index array to split all the signals into separate 16 channels with independant graphs for each channel. I dont understand the reason for that, and also i dont wnat to use the "write to measurement" express Vi but some lower level function. Any suggestions for writing the file in Excel format.
I will be emailing you the new Vi soon.
Thanks.
03-13-2007 02:17 AM
You could use 'write to spreadsheet file' function to begin with
Later you could shift to open/create file, write/read fiel, close file functions.
But I strongly recommend that you go throught the example vi's shipped with LabVIEW, Find examples>> Fundamentals>> File input and output folder and familiarize on methods to write to a file/ read from a file
03-19-2007 03:37 AM