LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Current VI’s path应用问题

您好!

当我把VI转成EXE后,VI中的子VI存在什么地方,就是说用File I/O<File constants<Current VI’s path指定路径找到子VI。是否还有其它该好的方法。

在此谢谢!

0 Kudos
Message 1 of 10
(4,431 Views)
您好,
 
if i am understanding your problem correctly (sorry, my chinese is not very good), you are asking what is the location of your VI after you convert it to an exe file?? correct me if i'm wrong.
 
lets say the exe you created is FILE.exe and your VI is called testing.vi... so after you compiled your file into an exe, the location of the vi becomes FILE.exe/testing.vi ... so when you want to call the VI out, you need to call FILE.exe/testing.vi rather than testing.vi itself.... hope this solves your problem Smiley Wink
 
圣诞节快乐 Smiley Very Happy
Best Regards,

JQ

LV 8.0 user...
0 Kudos
Message 2 of 10
(4,419 Views)

谢谢!按您的方法,当我把gza.vi1Dto2D.Vi为动态调用的子VI)转成EXE文件,复制到其它计算机上(其它计算机硬盘内没有1Dto2D.Vi文檔,在VIEXE时加入子VI1Dto2D)执行时,出现图示的提示框,单击OK键后,再运行此执行文件,图示的提示框不出现了,执行档运行正常。请教您这是什么问题,是在动态调用1Dto2D.Vi的路径(Current VI’s path)出现问题吗?

注:每次关闭执行文件再打开时,图示的提示框只出现一次。

 

帖子被gza在12-22-2006 09:33 PM时编辑过了

0 Kudos
Message 3 of 10
(4,420 Views)

first, i cannot see the picture you've attached because you attached the file straight from your computer and i do not have that file... you need to attached it and then post it using the url provided by this forum... i know this is not the point, just a suggestion... Smiley Very Happy

second, from my understanding, you have a gza.vi that requires 1Dto2D.vi and you've compiled both into an exe file... when you pressed the OK button after the first run, the exe works to expected result.. but when running it  the second time, the screen doesnt appear to ask you to press OK but its still working as expected...

if its according to what I understand, i do not think its the locating of the file (finding the VI) that is giving you the problem... what i think is when you are compiling the exe, the settings was not set to your preference... sorry if i misinterpret you...

Best Regards,

JQ

LV 8.0 user...
0 Kudos
Message 4 of 10
(4,411 Views)

Thank you very much!

祝您圣诞节快乐!

0 Kudos
Message 5 of 10
(4,407 Views)
我把图片做为文件上传,您看看。
0 Kudos
Message 6 of 10
(4,405 Views)

对不起, 圣诞节这个时期我不在... 

as for memory full, i'm not too sure whether its your computer's memory or it reached labview's limit.. i do not think its labview array's memory is full as i've stored more den 10k of values in an array before (unless your array is bigger of cos) and it got rather lag only without any errors... i also do not think its your data length too long.. labview will automatically convert them to decimal points to reduce the length but still maintaining the actual value (123,456,789 shown as 1.23457E+8)...

sorry for not being able to help you more... maybe some pro can answer your question... 对不起...

Best Regards,

JQ

LV 8.0 user...
0 Kudos
Message 7 of 10
(4,351 Views)

Thank you,可能是系统影响内存的原因吧!

Best regards!

0 Kudos
Message 8 of 10
(4,347 Views)
The most common reason for the error is not that your computer has completely run out of memory; rather, LabVIEW will throw this error if it cannot allocate a contiguous block of memory.
 
Please see the following  KnowledgeBase "LabVIEW "Memory is Full" Error" . Hope it helps.
http://digital.ni.com/public.nsf/websearch/C3C516C11184AF3F862571B5006B46E1?OpenDocument
 
 
Cheng Yang
0 Kudos
Message 9 of 10
(4,333 Views)

The only part of this conversation that I can fully follow is "1Dto2D" and "Memory full".

Could you please post an image of the block diagram?

I can only guess that you are trying to code "Reshape Array" and are running into trouble building a buffer in an un-initialized shift register.

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 10 of 10
(4,322 Views)