07-26-2022 10:04 AM
Hello, I am very new to LabVIEW and not really used to working with electronics so please bear with me.
I am doing a VI for controlling an installation that has some mass flow controllers and some pressure controllers. The connection of this controllers with the computer is done using an ADAM-4000 series device (bellow you can find the manual for this device).
I am doing this VI using as model a previous one that was done some years ago for a similar installation (this VI isn't bellow because it has more than 10 MB, however bellow there is some prints of this VI).
My first problem was that I was using the Property node: Bytes at port and the number of bytes that was obtaining was 0. After some reading in this forum I decided to not use it and change it. Now the problem is that after the information reaches the VISA read I get this error: -1073807339 (0xbfff0015) Timeout Expired Before Operation Complete. I tried increasing the timeout period but it didn't work.
Can anyone help with this?
07-26-2022 10:15 AM - edited 07-26-2022 10:20 AM
@Bexiga wrote:
Hello, I am very new to LabVIEW and not really used to working with electronics so please bear with me.
Due to blatant overuse of completely unnecessary local variables, your VI has more race conditions than the Olympics and no amount of deeply stacked sequences can fix that.
Start with the basic tutorials about LabVIEW and the magic of dataflow, then create a simple state machine that does it all using one toplevel loop. You can eliminate virtually all local variables and stacked sequence structures.
07-29-2022 08:22 AM
Found the error. The problem was in the code written in the strings. But thanks for the tip, it was very helpful.
08-03-2022 10:55 PM
"Your VI has more race conditions than the Olympics and no amount of deeply stacked sequences can fix that" 😂🤣
Really???? Mr. Altenbach?
I'll use this as my signature or slogan. HAHA
That's a funny statement.