LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

problem with MathScript and Share Variable

when I'm using MathScript with Share Variable the vi always stoped there and never run. Then I should close LabVEIW from Windows program manager.
I've tried on two computers. Both using LabVIEW 8.2.1. I'm attaching an example file for this problem. Is this a bug?

Please give me any suggestions.

Thanks,

-Alex
0 Kudos
Message 1 of 9
(2,957 Views)
You might want to post this in the MathScript forum.
 
The VI you have attached does not use any shared variable. What is the connection between your VI and the network shared variable you have defined in the project?
 
 
0 Kudos
Message 2 of 9
(2,929 Views)
Hi Alex,
 
A little more information will help us figure out what is going wrong here. Are you receiving a specific error when running your VI, or perhaps LabVIEW freezing? Does LabVIEW prompt you to investigate an error when you open it back up? If so, please follow this KnowledgeBase article so that this information can be investigated by an engineer. Thanks!
Amanda Howard
Americas Services and Support Recruiting Manager
National Instruments
0 Kudos
Message 3 of 9
(2,923 Views)
I am able to open your VI and run it with no problems. I don't see any Shared Variables either. Did you perhaps attach the wrong VI? Have a great day!
Amanda Howard
Americas Services and Support Recruiting Manager
National Instruments
0 Kudos
Message 4 of 9
(2,921 Views)
Thanks for all your replys.

The problem is the vi (or the LabVIEW) froze there. There is no error code or anything else. I just can't do anything for the vi (or LabVIEW) but shut it down by program manager. I'm attaching the screen capture in the attached file.

The problem happen when I used MathScript and and share variable "just created"in the project. I don't even use the share varialbe in any vi but only create a share variable in the project. Of course the problem also happend when I used the network share variable in the vi. The attached file is correct and it's a simplified example of my original program.

Today I trid on the third computer and the same problem happened. I'm using the educational edition. Anyone know what's the problem?

Thanks,


Message Edited by mfxyie@ms1.me.nctu.edu.tw on 01-07-2008 11:05 PM
0 Kudos
Message 5 of 9
(2,914 Views)
Hello Alex,

I was able to observe what you reported as LabVIEW freezing.  I ran your VI in LabVIEW 8.2 and I saw a long delay after pressing the run button.  However, the VI did run after a delay of about 20 seconds.  It ran normally after this, so I did not need to cancel the task using the task manager.  If I stop the VI and run it again, I observed a similar delay before execution started.  I also tried running your VI in LabVIEW 8.5, and I do not see a delay at all.  Perhaps the problem has been fixed.  Do you have access to a computer with LabVIEW 8.5 installed to try your code?

Grant M.
Staff Software Engineer | LabVIEW Math & Signal Processing | National Instruments
0 Kudos
Message 6 of 9
(2,894 Views)
Thanks for your reply.
The problem on the computers I've trid the LabVIEW freeze there for more than 5 minutes, then I gave up.
 I'm glad the problem seems to be fixed in 8.5.
Unfortunatelly I don't have access to install the 8.5 to have a try. If you have any idea of if it can be fixed by replace of any single vi that will be greate. If not it's fine, I will use TCP/IP instead of share variable.

Thanks,


Message Edited by mfxyie@ms1.me.nctu.edu.tw on 01-08-2008 09:37 AM
0 Kudos
Message 7 of 9
(2,889 Views)

Hi,

Have you been able to implement TCP/IP communication in this application?

Amanda Howard
Americas Services and Support Recruiting Manager
National Instruments
0 Kudos
Message 8 of 9
(2,868 Views)
No.
Any projects which have Mathscript and Share Variable don't work and alway freezing.

I remove the share varialbe then everything (including TCP/IP) works.

Thanks,
0 Kudos
Message 9 of 9
(2,862 Views)