06-01-2012 03:51 PM
Solved! Go to Solution.
06-01-2012 04:01 PM
I'm not sure I fully understand what you're doing in your VI could you post some code to show exactly what you do so we can come up with appropriate ideas?
We have two ears and one mouth so that we can listen twice as much as we speak.
Epictetus
06-05-2012 04:53 AM
Hi TiTou,
Apologies for the delay; I have been at a conference meeting with limited internet. I hope you can still help me.
In the attached screen shot you can see the for loop within which I am saving the data to a text file - the N of the loop corresponds to how many images I wish to capture. In this I am capturing an image with IMAQ, then I average along each column to obtain a line profile for this image and then these values I save to a text file. However, the file is very big and it would make much more sense to save each line profile in a separate column rather then one after another.
Averaging across the columns yields 1024 values (fixed). If I capture 1000 images and save each value, I would be ending up with 1000*1024 values, one after another in a .txt file. It would be much easier for postprocessing if info from each image was in a separate column.
Any comments/suggestions are welcome!
Kind regards,
Miika
06-07-2012 03:14 AM
Hi,
Sorry for coming back to you so late.
If you don't absolutely need a txt file I suggest to use TDMS files to save your data (binary file but you can open them in Excel if you install this), the advantage I see in this option is that you will have one column per image.
Hope this helps
We have two ears and one mouth so that we can listen twice as much as we speak.
Epictetus
06-08-2012 12:52 AM
06-12-2012 05:43 AM
Hi TiTou,
I implemented what you suggested but I am encountering an error
Error 8 occurred at TDMS Open
Possible reason(s):
Labview: File permission error. You do not have the correct permissions for the file.
============================================================
NI-488: DMA hardware error detected.
Any idea why this is happening?
Miika
06-12-2012 05:53 AM
Hmmm... surprising... can you check the file path you give and also connect an "open or create" constant to the open TDMS primitive?
We have two ears and one mouth so that we can listen twice as much as we speak.
Epictetus
06-12-2012 06:28 AM
My file path is just simply to a folder on the desktop.
I've selected open or create constant and connected it to TDMS open. Still won't work. It's strange - I am the admin on the computer I'm using so I don't see why it has permissions errors. ![]()
06-12-2012 06:40 AM
@CP Miika wrote:
My file path is just simply to a folder on the desktop.
How do you form the file path? can you show you code please?
We have two ears and one mouth so that we can listen twice as much as we speak.
Epictetus
06-12-2012 07:46 AM
Hi TiTou,
I'm using a stacked sequence. TDMS 1 shows the folder creation and TDMS 2 shows where this path is fed to TDMS open.vi via sequence local.
I hope you can help me.