LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

about picture flash

Hi, I wrote a vi, it's very sample, just reads a bmp file, but the picture flashes all the time, can anybody tell me why, Thanks!
Download All
0 Kudos
Message 1 of 6
(3,466 Views)

I can't look at your code, but the most likely reason is that you're constantly updating the indicator in a loop. Right click the indicator and uncheck Erase First.
If that isn't enough, you can also try Advanced>>Smooth updates.
Additionally, if the file doesn't change, you only need to read it once.


___________________
Try to take over the world!
0 Kudos
Message 2 of 6
(3,457 Views)
Just in addition to what tst said (and please disregard this if this was something you just extracted from a loop), the only way your code would make the picture flash - as is, is if you were using the "run continuously" function.

You're far better off with a loop (if you have not done so already).
0 Kudos
Message 3 of 6
(3,451 Views)

Hi, guys, I attached a bmp file(read bmp.JPG) which shows my vi connection, just incase you can’t read my code, please have a look at it and tell me what wrong with my code, Thanks.

0 Kudos
Message 4 of 6
(3,438 Views)

Your image wasn't attached (make sure you don't preview the post).

However, that might not be necessary, because apparently Novatron could see your code and if you don't have a loop there, then using the run continuously button would definitely be the problem. As was suggested, you need to use a loop with a wait statement.

This is pretty basic stuff. To learn more about LabVIEW, I suggest you try searching this site and google for LabVIEW tutorials. Here, here, here and here are a few you can start with and here are some tutorial videos. You can also contact your local NI office and join one of their courses.
In addition, I suggest you read the LabVIEW style guide and the LabVIEW user manual (Help>>Search the LabVIEW Bookshelf).


___________________
Try to take over the world!
0 Kudos
Message 5 of 6
(3,434 Views)
OK, I saw the image which was attached to the original post and I don't see why it should flash unless you're calling it in a loop or using the run continuously button. However, I don't have experience with IMAQ, so there might be problems I don't know about. If this doesn't help, you can try using the regular picture VIs (not IMAQ) and do what I suggested in my first post.

___________________
Try to take over the world!
0 Kudos
Message 6 of 6
(3,430 Views)