LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

SubVI opening during execution.

Hi, I am a co op student working in Canada and I have been developing a program in labview for a couple of weeks. I am a labview beginner, so I have been teaching myself about labview while developing the program. I am getting a problem when I run my main VI, after a control is activated, it executes a subVI (intentionally), but as soon as the subVI executes, it opens the block diagram for the subVI (exactly as if I were using highlighted execution and single stepping through the program), it begins to single step in that block diagram only, and when I select "run without pausing" the whole subVI executes, but if (in my main VI) I reactivate the control to execute that subVI, then it immediately starts single stepping through my subVI. I need to make it so that when I am running my program, the subVIs block diagram simply executes when called, I don't want it to start single stepping and highlighting the subVI.
 
Any suggestions would be a great help
 
Thanks
 
Jeff
Jeff


Using Labview 7 Express
0 Kudos
Message 1 of 9
(4,150 Views)

Hello Jeff,

I think that the simplest way it's if you add the code here. Then I can see what's happening.
If you do that, tell me what's your labview version.
Software developer
www.mcm-electronics.com





PORTUGAL
Message 2 of 9
(4,147 Views)
Here is my code, there are a number of subVIs included, the main VI to run is called "Events Trial Main." The problem occurs when the Start Scan button is pressed. The rest of the program is currently working as expected. The program itself will eventually be used with an OSA to analyze etalon thickness, it is not complete.
 
Thanks
 
Jeff
Jeff


Using Labview 7 Express
0 Kudos
Message 3 of 9
(4,141 Views)
Oh and I am using Labview 7 Express
 
Thanks
Jeff


Using Labview 7 Express
0 Kudos
Message 4 of 9
(4,137 Views)
I don't see that behavior in the VIs you posted. It sounds like you had a breakpoint set in the subVI. You can do a search by going Edit>Find. In the Find window, click on the 'Select Object' and select Others>Breakpoints.
Message 5 of 9
(4,134 Views)
I searched for breakpoints in all the VIs but it didn't find any.
 
Thanks anyway
 
Jeff
Jeff


Using Labview 7 Express
0 Kudos
Message 6 of 9
(4,129 Views)
I found the problem. In the execution of that subVI, I had selected "pause" instead of continue.
 
Thanks
 
Jeff
Jeff


Using Labview 7 Express
0 Kudos
Message 7 of 9
(4,127 Views)
Hi jrpe,

well, running your code in LV7.1 doesn't show any unexpected behaviour: click 'Start Scan', a subvi opens showing a XY graph and a 'Done' button, clicking 'Done', clicking 'Exit'.

Everything ok, no subvi diagram opening.

Hint: have you set any breakpoints? Have you set any diagrams to execute stepwise?
On your programming:
You can use for loops to set those properties in the 'Start scan' event (enabling/disabling controls). Use wait-statements in user-interface loops (Chart vi, Quit requester). Use error cluster to remove those (flat) sequences. You can resize the 'Index Array' function to give you more than one element at a time (Actual FSR.vi). And: make your diagram a little bit more clean (straight wires from left to right, no hidden wires/structures).

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 8 of 9
(4,129 Views)
HEllO GerdW,

thanks for reply

I have Labview 8.0.Win XP.

I am actually continously acquirng digital data from DAQ PCI 6534 card.
this data is (from sateliite)is at rate of approx 10000 bytes per sec or whatever near, to the PCI card.


I have written this code.... which takes data from a ready made fixed size file stored in IC.

but for continous real time acquistion and storing it ,is required.
But when satlelite is up and real time data will be acquired,it will be in buffer ,the ode will process and display some grap..,then we will have to store that data(array of bytes)in file, simulataneously also the new data coming in should follow the same process and get stored in one file.

the realtime data we will ,monitor and store would be apporx for 1/2 or 1 hour.


NOw if your see my programmfront panel..u will see telemetry data (2D array at bottom) this show the data acquired from IC.I aquire about some 15000 etc bytes which are display in that 2d array. now wen i wanna store it ,it wil ask me for the "save as..." ***.binary file.

can u assist/help me here i wanna store contiuos incoming digital data into some binary file over 20 -25 minutes.

overview.
Incoming DATA--->process that data(simple arrangement in array)---> store in file

this process should be continous with no loss of data

Waiting for reply.

Message Edited by vish.solanki on 02-14-2007 11:12 PM

0 Kudos
Message 9 of 9
(4,097 Views)