10-21-2005 01:24 AM
10-21-2005 02:17 AM
10-21-2005 08:45 AM
10-21-2005 09:04 AM
10-21-2005 09:13 AM
10-21-2005 04:19 PM
>You're not understanding some basic fundamentals. First, the programs digital and digital2 are already subVIs because you're calling >them from a different VI.
OK. It's been a loooong time since I've worked with Labview and need some help. That's why I'm asking you. I haven't been able to find the things I need online.
>Second, you can't wire controls in HVtestnew to your subVIs because you haven't connected any of the controls and indicators in the >subVIs to the connector pane.
That's what I'm asking to do - how do you do that?
>Right click on the subVI's icon, select Show Connector and wire from the terminals there to the controls and indicators.
When I right click on the subVI's icon, it does not give me that option.
>Third, your subVIs have a while loop. Since your subVIs are not set to show the front panel when called, unless the subVIs are already >open, your main VI will start the subVIs, pass execution to the subVI, and appear to hang. That's because you then have no way to stop >the subVIs with the stop button and execution will never return to the main VI.
10-21-2005 04:31 PM
Hi Bethany,
Could you describe what, in detail, you are trying to do with your vi. Is the second call of the DAQ assistant intended to set the HV to 0, the other to set it to the selected voltage? The two digital calls appear to be the same, calling the same digital port, are they duplicated to allow you to call them from either case? I'm not sure when I may be able to look at it, but if you can provide the info this community will help.
P.M.

10-21-2005 04:45 PM
@Bethany wrote:
>You're not understanding some basic fundamentals. First, the programs digital and digital2 are already subVIs because you're calling >them from a different VI.
OK. It's been a loooong time since I've worked with Labview and need some help. That's why I'm asking you. I haven't been able to find the things I need online.
>Second, you can't wire controls in HVtestnew to your subVIs because you haven't connected any of the controls and indicators in the >subVIs to the connector pane.
That's what I'm asking to do - how do you do that?
>Right click on the subVI's icon, select Show Connector and wire from the terminals there to the controls and indicators.
When I right click on the subVI's icon, it does not give me that option.
Open your subVI. Move your mouse to the icon. This is the little square in the upper right corner of the VI. Right click. If you don't see the Show Connector option, your're trying to make this change with the diagram active.
>Third, your subVIs have a while loop. Since your subVIs are not set to show the front panel when called, unless the subVIs are already >open, your main VI will start the subVIs, pass execution to the subVI, and appear to hang. That's because you then have no way to stop >the subVIs with the stop button and execution will never return to the main VI.
That's what I'm asking to do. I would like to be able to essentially not even have that subVI, or somehow get the controls on the front panel of the subVI to the main front panel, so that I can control the switches at the same time that I am running the program.If you don't want the subVI, just open it, use the select tool on the entire diagram, hit CTL-C to copy. Move to your main VI's diagram. Hit CTL-V to paste code and controls into the main.Thanks for your help, i really appreciate it.BethanyThere are ways to terminate a while loop in a subVI but if you don't want the subVI in the first place, we don't need to discuss that.
10-21-2005 06:22 PM
I need the two controls because the first digital control is to turn the switches on in the relay system; the second digital.vi turns the switches off - in the second part of the loop. (the digital part of the DAQ controls the relay box we have set up and the analog part of the DAQ controls the power supplies and values we are putting in).
My main problem with the program is that everytime I want to choose which relay switches to open, I have to open the HVTestnew.vi, then switch to the back panel; double click on the subvi digital.vi to turn on the switches I want, and then go back to the front panel of HVTestnew.vi to start the program. I would like to select which digital channels I want open on the front panel of HVTestnew.vi along with choosing a voltage I want the power supply to output, without going through all those steps (I just want the controls for the subvi to appear on the front panel of the main program so I can do it all at once.
The other problem with the program is that I have to stop the program and then run it again with the Boolean "off" in able to turn off the voltage. Ideally, I would like a switch on the front panel that I could open and close the relays (and stop the output to the power supply)with just one button and without having to stop running the entire program.
Does that make sense? Sorry if my descriptions are not clear. Let me know what else I need to clarify.
Thanks,
Bethany