05-02-2016 10:13 AM
05-02-2016 10:47 AM
Do you actually have broken wires in your subVI? Or is that an artifact of using LabVIEW's built-in VI snippet to post the code. If you actually have broken wires, you need to fix them first. We can't help with that because your picture doesn't show enough information as to why they are broken.
Assuming the wires are actually okay, you need to make sure those VI control references in the subVI are connected to the subVI"s connector panel. In your main VI, you need to get whatever control you are going to be working with, right click on that and pick Create Reference. Then wire that reference contstant into the subVI's connection.
05-02-2016 10:51 AM
05-02-2016 11:19 AM
If you would follow my suggestion/plea to (a) put all of your VIs inside a folder, (b) compress that folder to a Zip file, and (c) attach that Zip file, we can make much faster headway into (1) seeing how the various pieces of your code "hang together", (2) begin to understand all of what you are trying to do, and (3) make "global" suggestions that get to the heart of the difficulty you are having (instead of going back and forth with 4-6 posts and not getting very far).
This will definitely waste less of your time ...
Bob Schor
05-02-2016 11:29 AM - edited 05-02-2016 11:44 AM
Bob,
I will do that, but will prefer to exhaust this option about connecting refnums to connector pane. My state machine has significantly changed since the "maink". if it does not run after connecting my subvi terminals properly then i will send the full package.
Ravensfan,
Attached is a screen shot of what this subvi front panel currently looks like and the drop down from the top right corner of the front panel.
I am unable to (or dont know how to) connect references. let me know how to proceed.
Let me also add one point which i think is important: The original large vi i made works (but wont allow code to be rerun). As soon as i turned this particular section of code into a subvi within the same large vi, the large vi will run just before that code section and stop!
This was way before i even started doing anything with state machine. So i believe this subvi is kind of "missing references "
Thanks.
05-02-2016 12:28 PM
@blessedk wrote:Bob,
I will do that, but will prefer to exhaust this option about connecting refnums to connector pane. My state machine has significantly changed since the "maink". if it does not run after connecting my subvi terminals properly then i will send the full package.
Ravensfan,
Attached is a screen shot of what this subvi front panel currently looks like and the drop down from the top right corner of the front panel.
Wow, they really are screenshots! You really need to attach your code like Bob says so we can actually see what you are doing wrong. A picture may be worth a 1000 words, but a VI is worth a 1000 pictures!
I am unable to (or dont know how to) connect references. let me know how to proceed.
Follow the words I wrote in my last message. (Note, that was written based on what I think you are having a problem with. It is impossible to know for sure without having seen your actual code.)
Let me also add one point which i think is important: The original large vi i made works (but wont allow code to be rerun). As soon as i turned this particular section of code into a subvi within the same large vi, the large vi will run just before that code section and stop!
This was way before i even started doing anything with state machine. So i believe this subvi is kind of "missing references "
Thanks.
Have you taken those tutorials yet? If you haven't, you really need to.
05-02-2016 03:25 PM
05-02-2016 03:36 PM
Certainly if you have the file open elsewhere, (such as Excel) it will give an error.
Possibly you have other LabVIEW code running in parallel where you are also trying to open it.
05-02-2016 03:57 PM