LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

GLOBAL VARIABLES ?!?!?!?!? pls help

Hi friends,

I am having difficulties by saving/using global variables.
Because of a synchronization problem (i think so) ,  I can see that the APIs I am using brings values from aonther software , but
eventhough they are connected per wires, they dont send(forward) their results to my test case.

So as a solution i want to save the outcomes of those APIs to global variables , so I can use them afterwards anywhere in my test case.

The possible mistake I am thinking that I have done is a " synchronization Problem " which means " ; right after the APIs bring me the values( or simultaniously ) , it tries to run the test but somehow it doesn`t work( maybe beause the pipleline is full or tehre is a data dependancy).
The way I tested and see that the API s bring values is also done with an API which shows me all the parameters I used in other program.
SO the values are there , but the test case doesn`t start....

As a second solution on my mind is to put a time delay after taking the values from APIs and send them like after 50 ms. to the test case ?!

PLEASE HELP...
Thanks


p.s :  The problem can be seen on the picture that I have attached...




Message Edited by Support on 11-09-2007 08:32 AM
0 Kudos
Message 1 of 11
(3,703 Views)
well since the picture that you show does not make any sense as to what you are trying to accomplish. Look at using LV2 style globals.



Joe.
"NOTHING IS EVER EASY"
0 Kudos
Message 2 of 11
(3,706 Views)
Drop an empty global variable on your block diagram (from the structures pallette).

Double-click it and add controls to the front panel making sure to NAME each one.

Save it under whatever namy you require.

Go back to your original block diagram and right-click on the global variable.  It now has all the controls available which you have placed in the global.

To insert the global into another block diagram, go to "Select a VI...." (Bottom pallette) and select your global variable file.

Hope this helps

Shane.
Using LV 6.1 and 8.2.1 on W2k (SP4) and WXP (SP2)
0 Kudos
Message 3 of 11
(3,700 Views)
please see the old version of my code without using APIs .  What I have changed is just ; instead of giving those parameters from Labview , I connected them to API and there are values that are coming out !!!! For sure !!! but the test case doesnt function...

here is the code
0 Kudos
Message 4 of 11
(3,685 Views)
and....


what do you think that the problem could be ?

I mean the results are there , but not sent to test case...

thx
0 Kudos
Message 5 of 11
(3,681 Views)
I can't open your code, I only have LV 6.1.

Post a jpg of your entire block diagram, that way we'll find the problem quicker.

Shane.
Using LV 6.1 and 8.2.1 on W2k (SP4) and WXP (SP2)
0 Kudos
Message 6 of 11
(3,677 Views)
Please post your code in 7.0 by going to file saves as and then save for previous, or post a jpg of your entire block diagram.



Joe.
"NOTHING IS EVER EASY"
0 Kudos
Message 7 of 11
(3,675 Views)
dear Collegue,

i have a student version , I can`t convert it to 6.0 or 6.1 , tell me the way to do it please.

I mean i did , save as but there is nothing like save as previous or sth like that...


0 Kudos
Message 8 of 11
(3,670 Views)
i can`t convert the code , can you tell me how to do it ?  and than I can send it to you.

thx
0 Kudos
Message 9 of 11
(3,668 Views)
hi !

i have managed to conver it  :))) hier is the code version. 7.0


0 Kudos
Message 10 of 11
(3,562 Views)