Monday, September 20th, 2010
Some one asked the titled question in a forum (link), and many answers were given. This qustion is not hard and may not bother you at all. But the conclusion that a loop was neccesary is incorrect.
Above is an answer given by bincker, sorry for the watermark. The idea was to initialize a number and use the shift register as a counter. Add by one when the condition is fulfilled. Three conditions are listed in this case.
Or, we can do it this way (by me):
I don’t know what happened in the “greater than” node, but the conclusion is we do not really need a loop to do that. There might be a traversal as well but the whole calculate is much simpler. And the bottom line is, thanks to the polymorphism of LabVIEW node, we can connect array and a single data to some nodes and do the calculations in one iteration.
Thanks for sx056 who brought up this question and bincker who gave me a hint.
Friday, September 17th, 2010
This post lists the things I want to learn about LabVIEW in the future. See if I can master them and delete them from my to-do list.
– ***LabVIEW templates developed by JKI
– ***LabVIEW IMAQ module. How to make full use of the normal USB webcam? How to control multiple USB webcams? How to do pattern recognization? Can we do ROI on a webcam? Can we change the frame rate of a webcam?
– **LabVIEW OOP. OOP might be the future of LabVIEW programming and I don’t want to miss that.
– *LabVIEW database operation.
– *LabVIEW report generation.
– **LabVIEW VISA. I would like to write drivers for the USB, GPIP and firewire commercial devices.
– To be continued…
Thursday, September 16th, 2010
It’s not cool keep updating the blog with comics. Yet there is not much progress these days on LabVIEW. I integrated (or, glue 2 programs together) the spatial light modulator with the camera and will synchronize them later. Some algrithm might be adapted between the devices to let the camera control the SLM or the other way round. I’ve been thinking about an applicaiton for this close loop system, fingers crossed.
And here is the 3rd comic of <<Days of PhD>>. Please note the ‘alt-tab’ short-cut key in this comic. I found this one less funny after I finished it, but it is what it is. Hope you’ll like it. 🙂
Thursday, September 9th, 2010
So this is the 2nd picture I drew for <<Days of PhD>>. Hope you’ll like it. The ID is the one I use for Chinese micro blog. @科学玩家
It’s tough when some one tells the English joke. You have to smile even you didn’t get it.