LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Re-load an input file for spreadsheet or re-load "creating BMP-file"

Hello,

I am working with LabView 8.5 without IMAQ since 3 month, so it's quite new for me.

 

Anyway, here is the problem.

I am opening a *.txt and use the VI "read from spreadsheet" to convert my data to a string. Then I'm doing some some operation, creating a bmp file with the VI "create a BMP-file" from 1D pixmap and also a preview of the resulting picture in the host. Until here everything works fine, but the problem is:

 

I want change some values between of the first and the second VI (string operations) and I have to stop my host and re-start it every time again, to get a fresh preview.

I tried already different kind of loops (while/ event/ case), but it wont work. So I wann have soething like a live image, if I change the values.

Like mentioned b4, I am not so familiar especially with the boundaries of these kind of VIs.

 


*.txt -> read spreadsheet -> sting operations -> creating preview

                                                                         -> save bmp-file


 

Thanks for helping my with that problem.

 

0 Kudos
Message 1 of 8
(3,147 Views)

Hi Moe2,

can you show what you have so far? Can you also upload one of your text files?

 

Mike

0 Kudos
Message 2 of 8
(3,140 Views)

Hi MikeS81,

 

b4 i can upload the files, where i can store them ?

 

0 Kudos
Message 3 of 8
(3,122 Views)

b4 i can upload the files, where i can store them ?


Its enough if the files are stored in your computer. Just use the "Add Attachments" located at the bottom of the compose box. Don't use Preview post (you will then loose your attachments).

 

Post back for any problems.

 

Mathan

Message Edited by Mathan on 04-17-2009 05:05 AM
0 Kudos
Message 4 of 8
(3,120 Views)

Ic 🙂

ok Mathan the files are there (sceenshot and *.txt)

THX

Download All
0 Kudos
Message 5 of 8
(3,113 Views)

Hi Moe2,

can you explain where you want to change something what's not working now? Currently you load every loop iteration the file, make the calculations with it and wait for an event. You should change the structure a bit. Use shiftregisters to store your data, which you need to change while the program is running.

 

Mike

Message 6 of 8
(3,110 Views)

Hi Moe2,

you can directly read double values from the *.txt file. I made same changes on your code. Please see the attached file.

 

Hope it helps.

Mike

Message 7 of 8
(3,104 Views)

Hi Mike,

thanks for your suggestions, i will try this during weekend.

I will keep on this threat on monday.

 

have a nice weekend 🙂

0 Kudos
Message 8 of 8
(3,086 Views)