11-14-2009 06:48 PM
Back to basics! but I do not have clear idea of what the "Return Code" and "Handle" are? I have a small VI that I want to incorporate into another VI. WHat role these two terms play such case?
Thanks
11-14-2009 07:35 PM
11-14-2009 07:51 PM
11-14-2009 10:05 PM
11-15-2009 03:48 PM
Thanks for all the replies. As mentioned before, I am trying to incorporate a small VI into another VI. When I view this small VI's block diagram, it has a "Handle" and a few other inputs and then a "Handle Out" and a "Return Code". Seems like to me that these are some sort of memory management items and "Handle Out" is the outout of this small VI, which should be connected to a particular point in the big VI. I just did not find any documentation on these terminologies.
Best Regards
11-15-2009 04:54 PM
A return code is often an integer that indicates status of some operation performed. A handle could be a reference to some object that is created.
You are asking pretty generic questions that you could have used google to find exactly what I've just said. You could at least mention the subVI that you are trying to call if you want any sort of details. Even the name of the subVI might not be enough, though. If you really need help, provide enough details for someone to understand what the heck you are doing.
11-15-2009 06:16 PM
11-15-2009 11:06 PM
Sorry about ot being clear about my issue. I have a Trigger Enable VI that someone (in fact, a company whose DAQ card we use for our experiements) wrote for us. The VI, when corrently incorporated into the main VI (which performs data acquisition and analysis) will trigger the acquisition system at right instant and gather data for next 1/10 sec. The main VI controls the DAQ card installed in our computer. It takes two signals (f=25KHz) as inputs from 2 photo detectors. The card can take the ramp output (f=10Hz, Amp=1Vpp) from an external signal generator and should begin DAQ and processing when the ramp signal reaches its peak (+0.5V) and continue taking data until it reaches trough (-0.5V), i.e. 5000 samples in one cycle of trigger signal.
Now, the main VI has multiple Sub-VI's and one of them configures the card for input signal levels, trigger levels, etc. This sub-VI also has a couple of sub-VIs regarding the extermal triggering. Since I figured that the Trigger Enable VI will have to be placed inside this VI, I was looking at the block diagram of the Trigger Enable VI and the two outputs it has are "Handle Out" and "Return Code". I am not sure what they are/mean hence the post.
Thank you
11-16-2009 10:23 AM
11-16-2009 12:42 PM
The handle out can be used on other VIs from the company and connected to a handle in. I doubt they will be very usefull in your 'big' VI, try to open some of the shipped examples of that DAQ card (if there are no examples, just call them and ask for one).
Ton