Re: Application Builder for Labview 7.1

2004-05-13 Thread Joe Guo
On my machine, LV7 does not load LV7.1 build file correctly. An errors pops up everytime it finds a chance. -Joe p.s. It is frustrating to keep multiple versions of LVs on a single computer. NI should at least consider to make the file format consistent among the minor versions of the same majo

Re: Beep in labview.

2004-05-07 Thread Joe Guo
Try to put the beep code into a separate loop. -Joe

Re: Calling C++ DLL function in labview

2004-05-06 Thread Joe Guo
I found it. It's in Labview.exe . Thanks, Rolf. -Joe

Re: Calling C++ DLL function in labview

2004-05-06 Thread Joe Guo
Rolf, I have hard time to find the LabVIEW library. What's the exact name? Thanks. -Joe

Re: In my table i want to make one column act as toggle button on double click event in Labview

2004-05-06 Thread Joe Guo
It is quite easy, use the combination of "Mouse Up" event and "Edit Position" property. The "Edit Position" property returns the cell position where the mouse is clicked. -Joe

Re: memory allocation

2004-05-06 Thread Joe Guo
Here are several tips I learned from experience, hope you find it usefull: A. Check if Array/String inputs are empty, if they are, skip the step (for example, concatenate string vi and build array vi). B. Use concatenate string and build array VIs sparsingly. C. Close unused references. D. when

Re: I am using the "Menu Selection With Events.vi" example...

2004-05-06 Thread Joe Guo
If your menu tag "Exit" case, assign "True" to your "Stop" variable. -Joe

Re: Save path of options

2004-05-06 Thread Joe Guo
Don't know if such property exists, but there are INI VIs under "FileIO >> Configuration File VIs". Just read the key and you are all set. -Joe

Re: Calling C++ DLL function in labview

2004-05-05 Thread Joe Guo
Rolf, the error type def is a record/cluster, consists of an integer and a fix length char array. -Joe

Re: make the DB Connectivity TS much faster!

2004-05-05 Thread Joe Guo
hmm, haven't received the files yet. Maybe I forgot attach my email, here it is: [EMAIL PROTECTED] Thanks again. -Joe

Re: Calling C++ DLL function in labview

2004-05-05 Thread Joe Guo
Thanks for everyone's help. Here is another question. The functions in the DLL returns a pointer to an error type-def. However, labview has only limited options for the return value. Is it possible to de-reference the pointer? or is it too late once the call library function finishes? Thanks,

Re: Calling C++ DLL function in labview

2004-05-05 Thread Joe Guo
Thanks for the info, Evan. -Joe

Re: Save path of options

2004-05-05 Thread Joe Guo
Can you try to change it, save the option, and see if it's in labview.ini? The default options are not shown in the ini file, however, once it is changed, you can see it. -Joe

Re: Remote Access

2004-05-05 Thread Joe Guo
Well, It hides you from the lower level TCP/IP work, data integrety is ensured, and it is easier to upgrade your software in the future. You application can run on multiple clients without code change. -Joe

Re: Save path of options

2004-05-05 Thread Joe Guo
... \National Instruments\Labview 7\Labview.ini Same directory as labview.exe -Joe

Re: How to add plot areas?

2004-05-05 Thread Joe Guo
No, you can not add / remove plots on a Chart during runtime. You need to create multiple charts, each with desired # of plots. -Joe

Re: Remote Access

2004-05-05 Thread Joe Guo
I would use datasocket in this case. -Joe

Re: resize controls proportionally

2004-05-04 Thread Joe Guo
Tab control is also painful to resize. I basically gave up on resizing my VIs when Tab control is used. NI said it has been fixed in LV7 but obviously they didn't do enough test. -Joe

Re: make the DB Connectivity TS much faster!

2004-05-04 Thread Joe Guo
Thank you, Robert. I would like to have a copy as well. -Joe

Re: I want to remove buttons in favour of a Windows menu...

2004-05-04 Thread Joe Guo
whater version of LV are you using? >From v6 there is event structure, which allow you to track menu selection easily. You can still use the menu VIs with LV v5 and below. -Joe

Re: remote control

2004-05-04 Thread Joe Guo
It all depends on what your needs are. To remotely access / controll a VI from outside your company, you need port forward, so the server is visible on the internet. Normally your IT needs to be involved. If you want to publish / control the vi through webpage, then the labview webserver must be

Re: Customized button changes size on win98

2004-05-03 Thread Joe Guo
Rolf, I used the dialog button. I might try using a different type when I have time. The win98 machine uses normal font size (96 pixles), same as the XP machine. Thanks, -Joe

Re: I'm haveing a problem saving my test results to excel using the report generation toolkit.

2004-04-24 Thread Joe Guo
After the "Save Report to File" vi, dispose the file reference by using "Dispose Report" VI and wire "True" to "Save Changes?" input. -Joe

Re: Modifying cluster values via refnum/property node freezes VI on quit

2004-04-24 Thread Joe Guo
It might worth to try to close the reference after each loop. Creating a reference is an expensive (CPU cycles) operation. If the reference is closed, labview will close them when closing the VI, so, the longer it runs, the longer it takes to clean the memory. -Joe

Re: Modifying cluster values via refnum/property node freezes VI on quit

2004-04-24 Thread Joe Guo
sorry, only after posting my comment did I noticed your own response. You got it! -Joe

Re: Modifying cluster values via refnum/property node freezes VI on quit

2004-04-24 Thread Joe Guo
You can create reference for individual element in the cluster explicitly. To do so, right click on an element inside the cluster, goto "Create >> Reference". See if this helps. -Joe

Re: How to determin wich control has focus

2004-04-24 Thread Joe Guo
Sometimes when you dialog controls, the last "OK" button added to the front panel has the focus turned on by default. You can right click on the control and select "Customize >> Key Navigation" and select "None" in the list. It seems you have a different problem and are using event structure. Nom

Re: saving excel files using report generation toolkit

2004-04-24 Thread Joe Guo
It seems like you already doing it, but not complete, you need to close the report reference by using "Dispose Report", one of the input for this VI is "Save Change?". -Joe

Re: How accurate is the wait function when using really long waits?

2004-04-24 Thread Joe Guo
You can always use a smaller wait (either wait or Wait Until Next ms Multiple) in a loop so your VI does not lock up (no response from clicks), and count how long the vi is in idle. It should be acurate enough (within 30 seoncds out of 19 minutes). If you use event in your VI, then simply wire 19

Re: How do I get a print dialog window ?

2004-04-24 Thread Joe Guo
Unfortunently there aren't many options except using windows API. -Joe

Re: How do I get a print dialog window ?

2004-04-24 Thread Joe Guo
both tools are external applications. -Joe

Re: How do I get a print dialog window ?

2004-04-24 Thread Joe Guo
Someone might have better answers, however, here is my 2c. To Q1, I use an application called "fine print", when it set as default, it will popup everytime when there is a print opeartion and you can choose what printer to print to and set other settings as well. You can preview the print content

Re: Why Do LV7 VIs Stop Executing When I Click on the Window Title Bar?

2004-04-24 Thread Joe Guo
Just curious, when you goto Control Panel > System Properties > Advanced > Settings > Advanced, what is the selection for Processor scheduling? Normally it is set as "Programs" -Joe

Re: *.gif in Labview

2004-04-20 Thread Joe Guo
There are some free graphics, irfanview like m3nth mentioned above, that you can call externally to convert a gif file to jpg or bmp so it can be loaded into labview. -Joe

Re: How can I open a VI as an independent program out of an other program?

2004-04-20 Thread Joe Guo
User VI server, under "Application Control", to load and run the second VI. This way the original VI can exit after the second VI is running. For examples, goto "Help -> Find examples" and search for VI server. -Joe

Re: I get the error code -2146827284 when trying to run an Ecxel macro from LabVIEW.

2004-04-20 Thread Joe Guo
In Excel, goto Tools -> Macro -> Security, check all the boxes so it trust all macro source (you can test to find out which one works, or check all of them), also try to lower the security setting from highest to medium or even lowest. -Joe

Re: stand alone exe errors using report generation vi's

2004-04-20 Thread Joe Guo
_wordsub.ll and _exclsub.llb contain all the dynamically called VIs for word and excel, so they should be added as dynamic VIs instead of a regular support files. -Joe

Re: accessing parameters from activex server while running

2004-04-20 Thread Joe Guo
In Labview, it is under "Communication -> Datasocket". In VB, I believe it is called something like "Datasocket" . In Labview, goto "Help -> Find Examples" and search for datasocket, there should be some examples. -Joe

Re: accessing parameters from activex server while running

2004-04-20 Thread Joe Guo
If you can change both application, consider using datasocket. It is much easier and very reliable as well. In the VB application, add datasocket activeX control to use it, not only you can read data in labview application, you can update data as well. -Joe

Re: *.gif in Labview

2004-04-20 Thread Joe Guo
You can "import" gif image into labview, however, there are no VIs provided by NI to read GIF files because of patent. If you want to display gifs in picture control then you can find some comercial VIs. To import it, goto "Edit -> Import Image from File" and select a Gif file, then use "Paste" to

Re: How can I show every x-th point of my data measured?

2004-04-20 Thread Joe Guo
Another way is to use the "Decimate 1D Array". -Joe

Re: Remote monitoring and control of a Labview program

2004-04-20 Thread Joe Guo
You can also try out remote control softwares, such as VNC or Remote Administrator. They not only allow you to monitor your application but also allow you complete control of the remote machine (edit your application, etc). But, please study each such software in detail before using them, as some

Re: if no screen activity happens for a predefined time show dialog

2004-04-20 Thread Joe Guo
When using events in labview, only the labview application is monitored for any sort of activity. Which means if the labview application window is not in focus there will be no effect. There is a Windows API Toolkit (written in LabView) you can use to monitor any keyboard activity (regardless what

Re: stand alone exe errors using report generation vi's

2004-04-20 Thread Joe Guo
It really depends on what version of office you are using. Some methods have different set of parameters or even different names, labview does not adjust them accordingly, even though the code might execute but it will fail during build process. You must reselect the methods manually in order to

Re: custamizing controls

2004-04-20 Thread Joe Guo
First of all, you need to right click on the control you want to customize and select "Advanced -> Customize" from the popup menu, this brings up a frontpanel from which you can import picutres into the control (Edit -> Import Picture from file). Once the picture is imported, right click on the co

Re: Can we run two while loops independently in one application?

2004-04-20 Thread Joe Guo
You could sample both channels at higher rate (4K/s), then downsample for each channel. -Joe

Re: How to determin wich control has focus

2004-04-20 Thread Joe Guo
For each control and indicator there is a property, "Focus". When it is True, the control / indicator has the key focus. -Joe

Re: how to implement only "if statement" using case structure

2004-04-18 Thread Joe Guo
Create a local variable of the indicator, wire it to the indicator itself when the false case is executed (in your case when there is no match). The indicator must be outside the case structure. -Joe

Re: Create Hyperlink in Excel

2004-04-14 Thread Joe Guo
Try to manual create a hyperlink and record the action in a macro. Modify the macro to a procedure with input parameters. Call this procedure in your code. -Joe

Re: MSWord ActiveX

2004-04-14 Thread Joe Guo
It is possible to record a macro that corrects the alignment, and call the code inside the labview. -Joe

Re: ploting new plot in xy graph on button click

2004-04-13 Thread Joe Guo
You need use the build array function to append the new plot to the previous plots. "Help -> Find examples" has some good examples. -Joe

Re: Hi!!!I need help!!I am desperated!!!The serial port makes me become crazy!!!

2004-04-13 Thread Joe Guo
put the wait (make sure it is long enough) in the while loop and try again. -Joe

Re: excel version at VI start

2004-04-13 Thread Joe Guo
there should be some examples of using registry keys. "Help -> Find Example". -Joe

Re: Problem loading VI's on a different laptop

2004-04-08 Thread Joe Guo
I think the drop shifted the arguments to the wrong places :) . Do all the old VIs experience the same problem? When you check the propery of the files, what do they show? Can you upload one small vi that we can try it out? Maybe someone has the system than can open your file. -Joe

Re: How can I get command values from a VI executed by reference ? NEWBIE

2004-04-08 Thread Joe Guo
If you have access (can open and edit the subvi called by reference), you can use either global variable, or pass the value as output (use strict VI ref when calling the subVI). -Joe

Re: How can I stop a VI that is running via ActiveX?

2004-04-08 Thread Joe Guo
Can you be more specific? Does the VI contain an ActiveX control or reference? Or do you mean VI server? -Joe

Re: Serial port Write then Read issue

2004-04-08 Thread Joe Guo
It is device dependent. It may be turned off but may not. Some devices will return the user input as part of the output, for example, cell phones. If it can be turned off, the manual should tell you. If not, most likely it won't be mentioned. Of couse, you can always deal with it in your softw

Re: Serial communication to read single character

2004-04-08 Thread Joe Guo
Rolf is right. If you want to read a single character just wire 1 to the byte count of the serial read. But I guess you meant differently. According to the code, data loss is inevitable. "Scan string for tokens" returns the first token, in your case, seperated by "\s \t \r \n" even if multiple

Re: Serial communication using serial compatibility VIs does not return correct bytes at Bytes at Serial Port vi

2004-04-08 Thread Joe Guo
Most likely it is because the "Termination Character", if it is enabled, by default it has hex value 0x10 . If this character is presented then a single serial read only returns everything before the termination character, regardless the number of bytes available at the port. You will need to put

Re: Need help trying to create a ActiveX registered event

2004-04-08 Thread Joe Guo
Using the "To Variant" (communication -> ActiveX) VI to "wrap" the control reference. or just use a global variable. -Joe

Re: Black menu with Labview 7 on Win2K

2004-04-08 Thread Joe Guo
In Labview 7, "Tools" -> "Options" -> "colors", what does it show for "menu background"? the default should be grey. -Joe

Re: How can I access to the ITEM method of an activeX collection object?

2004-04-08 Thread Joe Guo
That means there is a broken reference. Most likely you have a different version of ADO activeX control. Joe

Re: Dont know why can't plot the R chart( con't)

2004-04-08 Thread Joe Guo
Could you be more specific? I don't see any problem with it. Once the reasonable values are set for the inputs (non-empty array, good limits) the charts shows what it supposed to show. Joe

Re: how do I run a labview application as a server service?

2004-04-08 Thread Joe Guo
Hope this link is what you are looking for: http://zone.ni.com/devzone/conceptd.nsf/webmain/A9B2FA96B851394586256B26006ECB98?opendocument Joe

Re: How to read MPEG with Labview 6.1

2004-04-08 Thread Joe Guo
What do you want to do with the MPEG file? If you want to play it, then use Windows Media Player ActiveX control. There may be other activeX controls for MPEG file which allow you to extract individual frames. Joe

Re: To associate the value of a control like a value of a selector of a CASE Structure

2004-04-08 Thread Joe Guo
The Case selector value can only be decided during edit mode. It can not be dynamic in execution. Joe

Re: Strange error with Save Report to File (html)

2004-03-30 Thread Joe Guo
According to your code, the operation should work. Can you post either your vi or a picture of it so we can see what exactly are wired? Joe

Re: how to add new entry, in table on button click.

2004-03-30 Thread Joe Guo
When you want to preserve the existing values in a table or array, you need to use "Array -> Build Array". Wire the local variable of the table or array to top entry, and wire your new entry to the bottom. Depends on the dimension of the array and the postion you want to add. You might need to som

Re: How to control the size/position of LabVIEW DLL front panel in MFC application?

2004-03-30 Thread Joe Guo
Did you build the DLL from Labview yourself? If so, you just add another VI to the list. This VI accepts the Title of a front panel and top,left,right,bottom value of the front panel (VI property WindowBond). I'm not familiar with building DLLs using Labview so I really could not help you on how

Re: Cutom Multicolumn list box or table

2004-03-30 Thread Joe Guo
For the single column list, it is "TopRow". For a multicolumn list, it is "Top Left Visible Cell". Joe

Re: Hi, Question about using Visual Basic with labview. How do you execute visual basic programs within labview?

2004-03-30 Thread Joe Guo
First of all, the VB code must be built into executable. User the "Communication -> System Exec.vi". Joe

Re: Cutom Multicolumn list box or table

2004-03-30 Thread Joe Guo
Another approach would be keep a fixed # of buttons. For example, if the list or table has 5 visible entries at a time, then just use 5 buttons, line them up with each entry in the list or table. When the list is scrolled up or down, you always know which entry is at the topmost entry, adjust you

Re: How to control the size/position of LabVIEW DLL front panel in MFC application?

2004-03-30 Thread Joe Guo
One way is to pass the size and position as parameters to the DLL function, so when the DLL front panel lunches it changes the size and position. Also create another function (VI) in the DLL that accepts the size and position as parameters and adjust the window accordingly. Another possible way i

Re: Closing excel

2004-03-30 Thread Joe Guo
Yes, you indeed used the Report generation toolkit. :)

Re: How do you align a sub-VI panel inside a main sub-panel?

2004-03-30 Thread Joe Guo
please be more descriptive, what version of labview are you using? and did you use subpanel if labview 7 is used? If indeed u used subpanel, then right click on it, goto "Visible Items" and uncheck things u don't want to show.

Re: second scale on xy graph not showing up

2004-03-30 Thread Joe Guo
check if this entry, EnableAutoscales=False, is present in labview.ini (in labview directory). Change the False to True if it is there. Joe

Re: Closing excel

2004-03-30 Thread Joe Guo
I believe the method to use is "application.exit". You need use the Excel.application reference. If you use report generation VIs, then use Dispose Report.vi. Joe

Re: How to import .C code to Labveiw 7 ?

2004-03-10 Thread Joe Guo
You might study the c code and port the code to LabVIEW, without using DLL or CIN nodes. Check out the serial port or VISA functions from the Instrument I/O part. The output command won't work in LabVIEW, you will have to display the output yourself to an indicator. -Joe

Re: xy-graph x-scale changes position when togle visible

2004-03-01 Thread Joe Guo
--505198.1078146842102.JavaMail.quiq.tekken Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit The scale position changes due to plot area change. Put the following line into labview.ini file: EnableAutoScales=False However, doing this will not allow you to create new mul

Re: How to count occurences of a certain string in incoming...

2004-02-26 Thread Joe Guo
The package count I used was to count # of BEXUS, not the complete package, replace the 2 with 1 should count each data package. The data file shows the time from 00:28:09 to 00:28:59, then went to 00:00:01 and then to 00:03:59. The VI assumes the package format as (each complete package is about

Re: excel version and Labview

2004-02-26 Thread Joe Guo
For the Excel (.xls) file itself. If it is created with Excel97, then there should be no problem of opening it in any later version of Excel. Normally, when you use Excel components in your VI to create or read Excel file, you need to re-compile for each version of Excel. However, we have been su

Re: Pasting an Excel 2000 Chart into Word 2000 using ActiveX

2004-02-26 Thread Joe Guo
"Excel 2002 Power Programming" and "Excel 200 VBA" are two of the books I use from time to time. The VBA Editor help file in Excel is also an excellent soure. You may need to write some VBA code yourself to "copy" a Excel chart into word. Joe

Re: Controlling VI or front panel size when published to a web page

2004-02-26 Thread Joe Guo
If you have 10 controls and 5 indicator on your front panel. Group your controls close together, group your indicators together and move them beside the control group. Now, resize your front panel so that it is large enough just to display all the elements. (To resize the panel, move your mouse t

Re: Utility VI for searching for the occurance of a string in all files in a directory

2004-02-25 Thread Joe Guo
It should be very simple to build it. The first step is to list all the files in a directory, then for each file, read the file (use the Read Characters From File.vi, depends the file size, you might want to break up the read operation), then use the "Match Pattern" vi from the string pallette to

Re: How can I programmatically change the number displayed on a digital control?

2004-02-25 Thread Joe Guo
Right click on the digital control and select "Create Local Variable", write to a default value if the user input is invalid. or, right click on the control and select property "Data Range", you can change the data range which will be forced upon when user enter data. Joe

Re: labview problem

2004-02-25 Thread Joe Guo
There are two VIs called "Wait" and "Wait Until Next Multiple" from the "Time & Dialog" pallette which you can use to delay your each send operation. Joe

Re: Alignment of front panel

2004-02-20 Thread Joe Guo
Labview have a very good set of alignment tools. Normally you don't have to manually select each one, just click on open space and drag the mouse so that the rectangle covers all the controls (a group) you want to align, and then use the alignment tools. However, sometimes you still have to move

Re: chart y axes overlap

2004-02-19 Thread Joe Guo
I don't know whether this will work, but it worth the try. Put this line into your labview.ini : EnableAutoScales=False If this works, then you need to put it in your application ini file. Joe

Re: Alignment of front panel

2004-02-19 Thread Joe Guo
There are multiple ways to do it, the simplest way is to select the object you want to align and using the alignment tools from the toolbar to align them, this also works on the diagram object. Another way is to use the property node (Position) of the objects to programmatically allign the front p

Re: Programatically advance Scroll bar in Listbox

2004-02-19 Thread Joe Guo
Use the property node "Top Row", this will make the input row to be the first visible row. Joe

Re: how can I allow labview to answer a call from a cellular...

2004-02-17 Thread Joe Guo
The receive part I used was a cell phone and not land line one, so I do not have experience with that. If you want to do it with cell phones, then check out some GSM phones and their developer manuals (Most Nokia and Erricson phones will do just fine). However, if you are going to use cell phones

Re: I used to working with Labwindow CVI and i would like to ...

2004-02-17 Thread Joe Guo
--7281109.1077023661011.JavaMail.quiq.tekken Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Yes can use the vi server to load the vi and run it. If your vi property is set to "Show VI FrontPanel when loaded" then the VI is automatically shown, otherwise you will need t

Re: Finding the generated html via www in a LAN?

2004-02-16 Thread Joe Guo
When the labview server is running, you can go to to the menu to configure it, it should tell you what port is used. Or, Broswe in the NI's program directory, there is also a configuration file that can tell you which port it uses. For VI server port, you can check the preference setting from the

Re: Finding the generated html via www in a LAN?

2004-02-16 Thread Joe Guo
If you just want to see the updated frontpanel image, then it is much easier because you can save it to an image and put the image (copy or ftp) into your public html site at a regular interval. Of course, you have to write a webpage to display the image and some other data. If you want to contro

Re: 3D surface plots with intensity value to overlay at each point?

2004-02-16 Thread Joe Guo
The "3D Surface" VI has a reference out, wire a property node to it and select "Cursors", wire a method mode to this "Cursors" reference, and you should be able to add cursors with coords. Joe

Re: Finding the generated html via www in a LAN?

2004-02-16 Thread Joe Guo
This is a network setup issure and not related to labview. Please post your questions to other newsgroup. However, I'll elabrate just a little bit on this topic from my limited knowledge. Other people may have better answers than mine. Basically, the router restricts your access to the computer

Re: 3D surface plots with intensity value to overlay at each point?

2004-02-16 Thread Joe Guo
You probably can use the "cursor" property of the 3D surface graph. Joe

Re: how to invoke the .exe files of other language same as vc++, vfp, ppt in lv 6.1?

2004-02-16 Thread Joe Guo
Using "Communication" >> "System Exec.vi" to call the other exe file, just like a windows Start > Run command. Joe

Re: Main VI stops when using control references.

2004-02-13 Thread Joe Guo
Assuming you use the VI server to load the subvi dynamically, when loading the vi, the "Wait to finish" must be set to false, so your main loop does not wait for the subvi to finish. When the main loop is waiting for the subvi to finish, that case (loop) is "halted". Joe

Re: Event structure

2004-02-12 Thread Joe Guo
--2153655.1076616571558.JavaMail.quiq.tekken Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit When one of the subvi is running, the event that fires the subvi will not be finished until the subvi is stopped. To overcome this, you can dynamically load the vi using vi serv

  1   2   >