Re: how to measure angle (phase) between two signals
Try to use the high-level VI Extract Single Tone Information.vi located in your AnalyzeWaveform Measurements palette. See for example the following posting for more details: http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101RPAGEID=137HOID=5065000500153E0100HTHREAD=81429UCATEGORY_0=_49_%24_6_UCATEGORY_S=0
how to measure angle (phase) between two signals
I'm trying to measure the angle between two signals. I try the cross power sprectrum vi but it gives me an array. The two signals are 60Hz and the correct answer is on item 6 on the array. When I change the frequency of the signals to 20Hz, the correct answer is found in term 2 of the array. I tried with odd frequencies like 44 and did not found the correct angle in any element of the array. Can you please let me know how to get the correct answer or how to interpret the array.
Re: how to transfer data in table, to excel sheet
thanks for ans. i am tryinf to download toolkit , but i don't know what is problem it's giving me error, If you have some download then please send to me
Re: How to keep alignment in Windows LARGE and SMALL fonts
Getting the panels to look just as good no matter what font and font size the user choose is close to impossible. As you say NI does not look like they have payed it much attention either; even the startup menu of LV get's cluttered if the font size or type is wrong. The best option if you want to optimize things for all resolutions without having different VIs is probably to not use the application font. Use a specific font and size and design everything to function relatively well on both low and high resolution (in other words; a bit too big on low, a bit small on high...). By setting the default font to something else in the LV options you can avoid having to change the font during development. Personally I use the application fonts, but fix the font and font size using the appFont,dialogFont and systemFont keys in the .ini file of the applications. The following keys in the .ini file e.g. will fix the font to Tahoma at size 13: appFont=Tahoma 13 dialogFont=Tahoma 13 systemFont=Tahoma 13
Re: Setting control default value
I would be nice if NI would let us add any types of files (txt, dll, etc) within a LLB. Chris From: Scott Hannahs [EMAIL PROTECTED] Date: Fri, 09 Apr 2004 20:15:13 -0400 To: Christophe Salzmann [EMAIL PROTECTED], [EMAIL PROTECTED], Info-LabVIEW Mailing List [EMAIL PROTECTED] Subject: Re: Setting control default value Depending on how much trouble you want to go to... You can make it a dynamically loaded VI in the built exe. Then when you need to set its default value. Since it isn't running, then set the value, make it a default then save the VI back into the llb. Then when you need the value, just call the VI dynamically and it will return that value. This why bundles of files (or what used be be resource forks) work so well in encapsulating all this in what looks like a single file to the user! -Scott At 12:49 AM +0200 4/10/04, Christophe Salzmann wrote: Well that is exactely what I'm trying to avoid, an additional file! So unless someone has a better idea I'll encode my single default value as a VI name inside my llb.
Re: Setting control default value
You don't necessarily have to have another file to hold all your defaults. Use the *.ini file for your application, it has to be there anyway and LabVIEW doesn't mind it a bit when you store other things in it... Michael Porter Porter Consulting, LLC. ... after all He's not a tame lion... -- Subject: Re: Setting control default value From: Christophe Salzmann [EMAIL PROTECTED] Date: Sat, 10 Apr 2004 00:49:16 +0200 Well that is exactely what I'm trying to avoid, an additional file! So unless someone has a better idea I'll encode my single default value as a VI name inside my llb. Chris --
Re: Setting control default value
Does anyone know how to set programmatically (via the VI server) the default value of a control, this when the VI is running? To: Christophe Salzmann [EMAIL PROTECTED] Scott Hannahs [EMAIL PROTECTED] Urs Lauterburg [EMAIL PROTECTED] I've attached an example state machine (private E-Mail) which includes a method of saving all control values when it terminates and reads and restores them again on restarting. See the subVIs: Read Control Values File.vi and Write Control Values File.vi I believe this method accomplishes what you wanted to do by saving the default control values. Lewis Drake Process Automation Corporation Belle Mead, NJ 908 359-1011 www.processauto.com
Re: How to keep alignment in Windows LARGE and SMALL fonts
Claiming that NI does a bad job is really blaming the wrong guy here. Thanks for the vote of confidence. It is true that we don't have a solution. It isn't that we don't care, but the solution choices stink. Windows finally decided that their system dialogs ignore you and use small fonts anyway. I suppose that is the solution we will eventually implement, but it is nice to be able to make a change to the system or app and have it propagate throughout your VIs -- when that change makes sense for the spacing of the controls. As for fixing the size of the font, that may help a bit, but the way small and large fonts work is primarily to change the monitor's settings for dpi from something above 100 to something below. This affects all graphics using text measuring system, mostly text, and decides how many pixels they use to get one mm or one inch of screen. To redo the graphical layout of an arbitrary panel with as little information as is in the panels is like wanting a solution to any underspecified set of equations. It takes lots of heuristics and still gives unsatisfactory results. As for the labels, they should work by comparing their bounds to the master part's bounds. For numerics that is the frame. If they are already overlapping the frame, they will maintain their position according to the text justification. If they are outside the frame, they should preserve their distance between them and the frame. This is called keep-away behavior internally. It is what you will see when you type into the label or change the font interactively with Ctl-+ and -, and it should be what you see when font metrics change on load -- which either means a platform change, loading on a machine making font substitutions, a machine with a different version of the font, or on a machine with a different monitor dpi setting. If one of these is missing, it is a bug. The hard problem is when you have the controls bunched up and it isn't sufficient to keep the label of the control, but the controls off one another. How much do you move things and in which direction, and which relationships were relative, which were fixed, and which were incidental. There just isn't enough information without a complex set of relationships specified by the designer of the panel. This specification would take quite a bit of thought and makes the panel much harder to modify as specs change. Greg McKaskle
Re: how can I tell which subVI changed?
When I look at the changes using File/VI Properties... under Category: General, by clicking on the Current Changes button, it says: VI recompiled SubVI call(s) modified. I understand that this means something changed in a subVI, but I don't always know what changes prompted this, and I would like to be able to investigate further. One easy way to investigate it is to click on ring at the top of the Explain Changes dialog. This will list the other VIs with changes. One of these is the subVI, and selecting it from the ring will list its changes. It is likely a version or platform change. Greg McKaskle
Re: NI-IMAQ 1394 image display
I use Labview 7.0 and NI-IMAQ IEEE 1394 1.1. Thank you for your answer, I,m going to see if there is a newer version for the NI IMAQ.
Print Front Panel to PDf file error
Previous subject matter dealt with Acrobat Distiller for writing PDF files. I have used successfully, in other programs, pdfFactory but I get the following error message when using it with Labview 7. Labview:Print driver error. Unable to print. Make sure you have installed and selected a default printer. pdfFactory is selected as the default printer. I have also selected the LaserJet as default then selected pdfFactory for a specific file write but the same message is written to the screen. This is a nice and easy way to write to a pdf format if it can be made to work. Has anybody already solved this problem on the XP operating system? RL
Re: How to keep alignment in Windows LARGE and SMALL fonts
Well, I'm not blaming NI for all bad things in the world...However I do think people expect a better workaround than the one NI has chosen in LV7. As it is now it's much too easy to end up with LV menus completely unusable. As Greg indicates in his answer as well; ignoring the font choice and sticking to the small fonts would e.g. be better.
Re: Print Front Panel to PDf file error
Hi While this may not answer your question, check Jack Hamilton web site at: a href=http://www.hamiltondesign-consulting.com/labuseful.html;Lab-Useful: LabVIEWamp; Tips, Tricks and Downloads/a He has a Print to PDF.llb that: Allows you to programmatically control the destination and filename for PDF printing in LabVIEW. You must use the report functions to print and have Adobe Acrobat writer installed on the machine - PDF writer does NOT need to be the default printer Eventhough it was made for LabVIEW 6.1 and Tested on Windows 2000 Professional, you might be able to figure out what's not working on your system by looking at Jack llb. PJM
Print Front Panel to PDf file error REVISITED
Previous subject matter dealt with Acrobat Distiller for writing PDF files I am seeking a better solution.=A0 I have used successfully, in other programs, pdfFactory but I get the following error message when using it with Labview 7. Labview:Print driver error. Unable to print.=A0 Make sure you have installed and selected a default printer. pdfFactory is selected as the default printer.=A0 I have also selected the LaserJet as default then selected pdfFactory for a specific file write but the same message is written to the screen. This is a nice and easy way to write to a pdf format if it can be made to work.=A0 Acrobat Writer and/or Distiller is not only more expensive it is also more cumbersome to use and apparently has to be accessed through the Report Functions. Has anybody already solved this problem on the XP operating system? RL
Re: Function or method not supported error at IviRFSigGen InitializeWithOptions.vi
It looks like you are using the NI IVI Class Drivers, and have configured them to use the Agilent IVI-C driver under the hood. For some reason, it looks like the class drivers aren't happy with the Agilent driver, and that's the cause of the error. You should first confirm your IVI configuration in MAX. You should make sure IVI Logical Name is pointing to the right Agilent driver, correct instrument address, etc. That name is what you pass into Initialize with Options. If this doesn't pan out, it looks like you'll have to debug things. First of all, do you need to use IVI? If not, then I'd recommend you download our LabVIEW instrument driver for this instrument, so that you can get LabVIEW source code. It's available on http://ni.com/idnet/ at a href=http://zone.ni.com/idnet97.nsf/9b2b33e1993d877786256436006ec498/539916348394adc7862568ab005fbb33?OpenDocument;this link/a. If you do need IVI, then I'd suggest you try NI's IVI-C driver for this instrument, also on http://ni.com/idnet/ at a href=http://zone.ni.com/idnet97.nsf/9b2b33e1993d877786256436006ec498/112f13696873175686256bff00584c89?OpenDocument;this link/a. This includes LabVIEW Wrapper VIs for the driver. If you want to use Agilent's driver, did they provide LabVIEW support with their driver? That is, did they include LabVIEW wrapper VIs? If so, you might try just calling the AGE4437B InitializeWithOptions.vi directly and see if you get an error. If they did not provide wrapper functions, I'd call them up and ask if they can give them to you. I hope this helps. Let us know what you figure out. Brian
Re: how can I tell which subVI changed?
Sometimes, you duplicate your subvi and save in several location. Thats why you faced this problem. One way to solve is use library to save all your sub vi including your main vi.
Re: How to keep alignment in Windows LARGE and SMALL fonts
i the way small and large fonts work is primarily to change the monitor's settings for dpi from something above 100 to something below.=A0 This affects all graphics using text measuring system, mostly text, and decides how many pixels they use to get one mm or one inch of screen. /ip Sorry, but that's way off the mark. Try it yourself: place a STOP button, and use the new SET WIDTH and HEIGHT to 200 pixels. The result is a button 4.5 x 4.5 mm on my screen. Save it. Change from LARGE to SMALL fonts or vice versa. Open the thing and measure it again. It's still 4.5mm by 4.5 mm - of course.
Re: How to keep alignment in Windows LARGE and SMALL fonts
iignoring the font choice and sticking to the small fonts would e.g. be better./i Well, what I don't like about that is that it doesn't respond to the user's settings. Presumably, he switched from SMALL to LARGE fonts so he could maybe see larger fonts. If the text on MY program doesn't get bigger when he does that, guess whose fault it is? Mine.
Re: How to keep alignment in Windows LARGE and SMALL fonts
Sorry, but that's way off the mark. Try it yourself: place a STOP button, and use the new SET WIDTH and HEIGHT to 200 pixels. The result is a button 4.5 x 4.5 mm on my screen. Save it. Change from LARGE to SMALL fonts or vice versa. Open the thing and measure it again. It's still 4.5mm by 4.5 mm - of course. This is because not all objects are based on text measurements. There are several different measurement systems in play here. The LV graphical objects use pixels where possible, but then text sizes are in logical points. A 12 pt font can map to different pixel sizes depending on dpi and large/small font sizes. This larger font size in pixels may cause the LV button to change pixel sizes to adapt, but if the button is already large enough to contain the text, the button will stay its 200x200 pixel size while the text within changes pixel size while staying the same point size. Greg McKaskle
Re: how to put a control at forcus so I can always change the value
fanl wrote: How can I keep the control on forcus even after the value is updated? Thanks. You use the control property Key Focus to set it back to true, whenever you detected some user events in your event structure. Rolf K
Express vi in Labview 7.0 missing in 6.1 package
I tried to convert a labview 7 vi to labview 6.1 format and got several error messages. When I open the vi in 6.1, I found that there was 1 vi missing? The error message in the diagram read: The object Express vi does not exist in this version. Can someone send me this vi in 6.1 format? Thanks
how to keep a control value being always selected
Please help. I want to keep a control in the front panel being selected all the time. So when I need to update it, I can just type in new data without delete old data. Thanks.
Re: how to put a control at forcus so I can always change the value
Thanks Rolf. I finaly get the control property work for me. I have to extract a reference from that control to set it's key focus. but I saw other examples setting property without reference number. What did I do wrong?
output to parallel port using labview
i have been trying to output a digital value using parallel port. i know there are two ways to do that. one is to use visa and the other is portin and portout function. The labview version i am using is 6.i student edition, so it doesn't support portout with the accessHW function. therefore i am left with only visa. i have some difficulty in getting it work. i grounded pin 11 and pin 12, and tried to use a multimeter to measure the voltage between the one of the data lines and ground. i thought when i ran the program and adjust the value that i output to the port, the value i read from the multimeter should change between 0v and about 5v according to the value i give. but i never changed, always stayed at 3.3v. could anybody tell me the possible reasons?
ploting new plot in xy graph on button click
hi all experts i need your help. i want to plot multiple graph, on a single xy graph i want --if user want to plot a new plot user will place new button,give value of parameter using control,do needed operation . then press button name as plot. on button click user must see all previous and new plot.
Re: excel version at VI start
there should be some examples of using registry keys. Help - Find Example. -Joe
Re: counting consecutive events
Are you wanting to know how many times that your pulses cross a certain value after the index array or are you wanting to know how many times before index. where exactly are you trying to count the pulses. if after the index then are you saying that as long as it is between the upper and lower limits that is considered a pulse. Let me know these specifics and I will help you get this running cause it is not that hard and you will probably not even need the trigger VI. Joe
Where is this file?
I tried to download a patch from your FTP site last Thursday, then again today. The file is not found on the FTP server at this URL: ftp://ftp.ni.com/support/labwindows/cvi/runtime/7.0/win32/cvirte70.zip Can someone please tell me where this file really is located? I need it to patch my product.
Re: How to manage different instrument models with one driver?
Hi Freddy, I just wanted to see if you had completed the update of your driver. If so, please submit it at http://zone.ni.com/idnet97.nsf/instrumentdriversubmit so that we can include it on the Instrument Driver Network (ni.com/idnet). Let me know if you have any questions. Jason
Calling a LabVIEW built dll
We have a LabVIEW built dll for analyzing and displaying data generated in a C# program. We can call this dll anc pass data to it once and it works properly and displays the graph. However, when we try and call it a second time when interactively running the C# program, the panel fails to appear, and we are not sure if it is working or not. Does anyone have any idea if this related to the LabVIEW run-time engine or th a thread problem?
Re: Has anybody been able to develop labview vi's for the...
If you are going to write the LV code yourself, you should read Using External Code in LabVIEW. You can find it by opening LabVIEW help search the LabVIEW bookshelf. This is the best source of information concerning calling dlls. You may also want to look at a LabVIEW 7 shipping example, call dll.vi. You can find it by opening LabVIEW help find examples Communicating with External Applicaitons Using External Code integrating dlls. It is very helpful.
Re: Express vi in Labview 7.0 missing in 6.1 package
Express VI's were introduced in LabVIEW 7.0. So they cannot be converted to 6.1 directly. You MIGHT be able to do it if you first convert the Express node to a subvi by right clicking and selecting Convert to SubVI, then try to save that back to 6.1. Depending on what the node does, this may or may not work. 7.0 has many new features that just did not exsist in earlier versions, so not everything can be saved to a previous version. Ed
1/3 octave analysis
hi, does anyone have a VI/DLL for doing 1/3 octave band spectral analysis and is willing to share? thanks. tim
Re: how can I tell which subVI changed?
I need to use a directory structure, not a .llb, because I have literally 1000s of VIs that I have created, and a .llb-type organization is far too flat. I could use many .llbs, but it gets me back to the same situation.
Re: output to parallel port using labview
Depending on the parallel port and the driver, the output would only be a momentary change in the output. Parallel ports were designed for sending data not latching and holding a data value. Can you put an oscilloscope on the port and see what the data looks like? Rob
Re: output to parallel port using labview
Depending on the parallel port and the driver, the output would only be a momentary change in the output. Parallel ports were designed for sending data not latching and holding a data value. Can you put an oscilloscope on the port and see what the data looks like? Rob
Re: SCXI Strain Null.vi throws -10005 error
Hello, Thank you for contacting National Instruments. The 10005 error is usually the result of wiring the wrong device number or incorrect channel SCXI string to the SCXI Strain Null.vi. Ensure that the device number you have connected is the same as the device number that appears in MAX for the RDA DAQ Board that is connected your SCXI chassis. Most importantly, ensure that you have connected the correct SCXI channel string to the SCXI Strain Null.vi. For example, sc1!md1!0 , would null channel 0 of module 1 of chassis 1. Please verify that both the device number and channel string that you have connected are correct. Regards, Bill B Applications Engineer National Instruments
RE: Setting control default value
At the request of Michael Aivaliotis, I've posted a link to my State Machines example (which also contains a method to save and update control values to a file). The link is: http://forums.lavausergroup.org/index.php?s=058648e260336cbb7936be152564371d showtopic=309 Lewis Drake Process Automation Corporation Belle Mead, NJ 908 359-1011 www.processauto.com
Re: SubVI Connection Description is the Caption?
LabVIEWers, I wrote: ...Before LV6.1, even setting an already invisible caption to be invisible (no change) would move the label. Actually, just reading the caption visible property is enough to cause the label to move to the alternate position when the panel is redrawn. -- EnWirementally, Paul F. Sullivan SULLutions (781)769-6869 when a single discipline is not enough visit http://www.SULLutions.com
Re: System Exec.vi Error 2, Memory Full
I ran into a similar problem and the support notes helped alot. Try the following: cmd /c executable arg1 arg2 Jack
System Exec.vi Error 2, Memory Full
I am receiving an Error 2, Memory Full error when using the System Exec.vi. Althought there is a support note for a similar issue, it doesnt really apply to the situation I am seeing. I am calling a single program, in the form of: executable arg1 arg2 This is working for a while, and then eventually will generate the above error on a XP box, and never runs on a NT box. After I saw the note that arguments are not supported, I tried running them without any arguments, i.e. just: exectuable and still run into this problem on the NT system. Any suggestions? Brian
Re: When i run position measurement vi using 6602 continuous...
Hello Nimal, Thank you for contacting National Instruments! The reason that you are experiencing this problem is because the Traditional NI-DAQ driver is single-threaded. Your Cont handshake input VI has a DIO Read VI inside a while loop with no wait. When this VI runs, the DIO Read VI will wait until it has acquired all of the Scans to Read and then will release the driver to be used by your position measurement. The VI will either read the number scans in the backlog or the number of scans to read. Since you do not have a wait, it is likely that the scan backlog is alway nearly zero. This means that the DIO Read VI will almost always be waiting for the total number scans to read before it releases the driver. You can do a couple things to alleviate this problem. 1. Place a delay inside your Cont. Handshake input VI's while loop. This will cause your backlog to grow. Do not use too large of delay for your scan backlog will grow out of control and overflow the buffer. 1 - 10ms should work fine. 2. The best way to solve this problem is to combine the two VIs into a single VI. This way, you can use the error cluster to control when things execute. You can have both sets of code in parallel and then snake the error cluster from the first set of code to the next. This will cause the DIO code to get configured first then the counter code and then in the loop, you would run the error cluster to the DIO Read and then to the counter get attribute to read the position. This would ensure that both measurements had equal time. The easiest thing to try is to decrease the scans to read in the Cont Handshake input and insert a delay in the while loop. Let me know if you are successful. Regards, Bill B. Applications Engineer National Instruments
Re: System Exec.vi Error 2, Memory Full
Jack, Thanks, that resolved the memory error (for now anyway). However, now I am get no standard output from the call. I assume that an easy work around would be to pipe to to a file, then read that. Not the most efficient, but should work. I suppose the calling of a new command.com somehow nukes that link. Brian
Re: Print ot MS Word
If I understand your problem correctly, you are trying to create a Word document that only has an image of your VI's panel, scaled to fit your page. pUnfortunately, the VI's fit to page property only applies when LabVIEW is working with the printer. When creating a Word file, LabVIEW has no way to know what the page size will be - you can setup your page size and margins in Word to anything./p pYou can probably achieve what you want by getting the VI's panel image (via the VI's bGet Panel Image/b method), saving it to an image file (using a function from the bGraphics Formats/b palette), and using Word's ActiveX interface. Word's ActiveX interface varies between versions, so I can't say exactly how you could create a document and insert your image. Also, I'm not sure how you would fit the image to the page - perhaps if Word supports a way to resize the image to a certain size./p pIt's possible that the a href=http://sine.ni.com/apps/we/nioc.vp?cid=5769lang=US;LabVIEW Report Generation Toolkit for Microsoft Office/a might make this easier, but I'm not sure if it handles scaling the image to fit the page./p
Re: How to read MPEG with Labview 6.1
Apologies; Correction. The _launchURL_ method does not play embedded, or at all. I can press the play button in the control container, whether or not the VI is running, and have the chosen media play, minus the video.
Re: How to read MPEG with Labview 6.1
Hello Jeff, I apologize for the confusion, that was my fault. I renamed the control WMP because it had the name of the older Media Player control from a previous example that was not compatible with my version. Your WMPLib.IWMPPlayer4 is the version of the WMP control on your system, and you should be fine with using that one. The one on my system is called simply MediaPlayer which calls the IMediaPlayer2 class, as you noticed. If you have access to the same class and properties, I would suggest giving my example a try. Please let me know how it goes and I would be happy to further troubleshoot. Thanks! Liz F National Instruments
Re: Trying to control a car using the Digital Control Unit
I have no idea what you are asking and I suspect that I am not the only poster in this situation. I surmise that Vernier has software for their new digital control unit and that it is written in vb.net. They have not created LabVIEW VIs for the new hardware yet. Are their dlls you can access or an activeX interface? LabVIEW 7 has rudimentary support for .net constructors. Look in the user manual for specific information on this. You may also want to search NI's advanced a href=http://search.ni.com/?col=alldocslayout=TechResourcesql=a;search/a. This is the best way to search NI's site.
Re: Where is this file?
ftp://ftp.ni.com/support/labwindows/cvi/runtime/7.0/win32/
entering a matrix in a fomula knot results in variable not defined error
if i enter a matrix in a formula code, the program keeps telling me i have a undefined variable. usually, matlab does work with code like M=[123 456]; just fine. the manual states, that in a formula knot code just works like it works in matlab. what's my mistake?
Re: output to parallel port using labview
nightlight wrote: i have been trying to output a digital value using parallel port. i know there are two ways to do that. one is to use visa and the other is portin and portout function. The labview version i am using is 6.i student edition, so it doesn't support portout with the accessHW function. therefore i am left with only visa. i have some difficulty in getting it work. i grounded pin 11 and pin 12, and tried to use a multimeter to measure the voltage between the one of the data lines and ground. i thought when i ran the program and adjust the value that i output to the port, the value i read from the multimeter should change between 0v and about 5v according to the value i give. but i never changed, always stayed at 3.3v. could anybody tell me the possible reasons? Well, I guess the student edition does not have support for the Call Library Node, does it? Otherwise you could go to http://cvs.sourceforge.net/viewcvs.py/opengtoolkit/portIO/ where you will find the files to do what the accessHW library is supposed to do. It works for me for NT4, W2K and XP, but I haven't tested it on W9x although it should work there too. That about the logic levels of the parallel port: don't expect to good voltages on a notebook computer and even desktops do have some problems. 0.8 V for logic 0 is sometimes already quite low and 3.3V for logic one can also often be the max you can expect. Rolf K
Re: Calling a LabVIEW built dll
when you built the dll di you make it reentrant. if not this could possibly cause what you are seeing.
Re: System Exec.vi Error 2, Memory Full
As a follow up, I resolved this issue (the standard output issue): /C command Executes the specified command and returns. /K command Executes the specified command and continues running. using /K allows labview to capture the the standard output, and apparently the application terminates cleanly, despite the suggestion that command.com will continue running indefintely. Brian
Error in LabView.exe after each start
--5962671.1081805840441.JavaMail.quiq.tekken Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit I installed LabView 7.0 in an older computer (Pentium III, 500 MHz, 512M RAM, Windows 2k sp4) along with GPIB and E-series PCI cards. Each time I open LabView it crashes and says LabView.exe has generated errors and will be closed by Windows. An error log is being generated. The error log is attached, but means nothing to me. It crashes with regularity within 30 sec of opening LabView but I seem to be able to run .vi's during that time. I've tried: 1) Reinstalling 2) updating video card driver and ActiveX 3) installing on a different drive none of these help. Any help you may have would be appreciated. --5962671.1081805840441.JavaMail.quiq.tekken Content-Type: text/plain; name=LabVIEWlog.txt Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=LabVIEWlog.txt Content-Description: LabView error log [LabVIEW] IsFirstLaunch=True NewDlgRecentMainTemplates.pathList= NewDlgBounds=800;600 NewDlgRecentTemplates.pathList= NewDlgLastSelected=0 NewDlgSmall=False NewDlgCollapsed=Frameworks Other Document Types prefDlgTestData=1234 SnapGridDrawAsLines=1 postScriptLevel2=False saveFloaterLocations=True --5962671.1081805840441.JavaMail.quiq.tekken--
cin node and c++ code
Hi. I need to make a LabVIEW program to call and use c++ code. Not only calculate numbers using the c++ code, the LabVIEW program needs to send boolian signals and be able to talk to the c++ code. Such things possible? Any good article or information to teach how to do it? Thank you. Airo
Re: cin node and c++ code
I'm not sure why it shouldn't be possible. At least as long as you are somewhat C savy and know how to configure your C compiler and linker to create specific output. However to be honest I think CIN programming has had its days. It does not really have that many advantages anymore but definitely some disadvantages above calling an external shared library through the Call Library Node. As a reference about CIN or DLL usage in LabVIEW I recommend the online help documentation Using External Code in LabVIEW accessible through Help-Shearch the LabVIEW Bookshelf. Rolf K
Re: How to add visa usb support to the application builder?
I'm afraid you can't do that. The LabVIEW 7.0 application builder only supports adding the VISA serial port driver to the application builder installer. You will have to install the VISA support for USB separately by using the VISA 3.0 runtime installer.
Re: LabVIEW crashes after using ActiveX with Excel
It is critical when using ActiveX that all references be closed when they are no longer needed. When left open, these references create pointers from LabVIEW into the ActiveX application that neither program can properly deal with. The temporary solution should be to reboot. If a ref cascades into another method or property, close it afterward it's last use. This includes the refs for Application, Workbook, Sheets, Sheet, Range, Cell1, Cell2, etc. If the ref does not leave a subvi, then close it in there. You will know that all references are closed only when this problem goes away. Michael Munroe Certified LabVIEW Developer www.abcdef.biz
Re: AI single scan and PWM
Hey Rich, I only modified pidcontrol_pwm.vi. I used the original pulse width modulator.vi. a href = http://sine.ni.com/apps/we/niepd_web_display.display_epd4?p_guid=B123AE0CBC05111EE034080020E74861p_node=DZ52305p_source=External PID_control_pwm.llb /a program configures and arms the counter again while switch cycle is used to change the frequency specs on the fly. Here's a link to a document that discusses switch cycle in more detail. a href = http://digital.ni.com/public.nsf/websearch/7B1B0427C39FE33086256CEE00752133?OpenDocumentHow Do I Change The Frequency Output Of My Pulse Train On The Fly?/a I hope this helps. Sarah Miracle National Instruments
IMPORTANT ADMINISTRATIVE NOTE - LIST CHANGES
As we informed you awhile ago, the Info-LabVIEW is moving. We hope that this will be accomplished with very little disruption. The new list is up and functioning and we only need to move the addresses. On Wednesday (April 14) we plan to do the following. There may be some outages and subscribing and unsubscribing may be a problem. Do NOT subscribe now to the new machine since that list will be erased for the transfer. I will send a second reminder on Wednesday. 1. Shut down subscriptions on Tom's machine at k-whiner. pica.army.mil to freeze the subscriber list. 2. Transfer that list to the machine at the National High Magnetic Field Lab at Florida State University and install it there. 3. Announce the new email addresses and activate the lists at FSU. The new list addresses will be [EMAIL PROTECTED] Please UPDATE your address books. Note, replying to old messages will stop functioning at some point. Also note that you will need to update any filters that you use for mail to reflect these new addresses. 4. Set the old machine at k-whiner. pica.army.mil to forward list mail to the new addresses (probably active for 30-60 days or so). 5. Bonus question (what does k-whiner reference?) -- To send messages send email to: [EMAIL PROTECTED] To subscribe to info-labview, send an email to: [EMAIL PROTECTED] To subscribe to the digest version of info-labview, send an email to: [EMAIL PROTECTED] To unsubscribe to info-labview, send an email to [EMAIL PROTECTED] To contact me (the list manager) send email to [EMAIL PROTECTED] (NOTE: the slightly different domain for this address!!) Scott Hannahs - Dr. Scott Hannahs, Head of User Research Instrumentation - - http://sthmac.magnet.fsu.edu - - National High Magnetic Field Laboratory, Florida State University- - 1800 E. Paul Dirac Dr., Tallahassee FL 32310, (850)644-0216/FAX 644-0534 - and Tom Coradeschi Tom Coradeschi, Info-LabVIEW List Maintainer [EMAIL PROTECTED] http://www.info-labview.org/
LabVIEW 6.1 failure: image.cpp line 4336 using Win98 SE
When I open a .vi containing a graph or attempt to add a graph to a new .vi, I get a LabVIEW 6.1 image.cpp Line 4336 error, after which LabVIEW exits. I am using the standard VGA driver supplied with Win98 SE. I have tried all possible Hardware Acceleration settings. My 6.4 display only supports 16 colors and 640 x 480 resolution.
How to add visa usb support to the application builder?
Is it possible to add VISA USB drivers to the application installer?
Re: Profibus ?
br Hi Herbert, br You can use the Applicom PF1500 card to talk Profibus. This is an OPC Server, so you can either use DataSocket or use the DSC Module as the OPC Client. Here's a KB article related to this, though it uses Lookout as the client example: http://zone.ni.com/devzone/conceptd.nsf/webmain/5913E03F551DE3F786256A32005B4586?opendocument Hope this helps. iKhalid/ibr
Possible Bug or just weirdness in Build Text Express VI
I've just run across a possible bug in the Build Text Express VI. Drop the VI and at first configure an input to accept a numeric by selecting Number under the Variables Properties section, and check the =91Use Specified Precision=92 checkbox and set the precision to 4. Then create a variable named %Header% and hit OK. Now you realize your Header variable should have been a String instead of a numeric. Double click the Express VI to open the properties and just change from Number to Text in the Variables Properties. Notice the =91Use Specified Precision=92 checkbox is now disabled and grayed so you cannot deselect it or change the precision. Click OK, and now any string you try to pass through the =91Header=92 input will only output the first 4 characters. The only way to get it to the proper operation is to change it back to a Number so you deselect the =91Use Specified Precision=92 checkbox, and then change it back to =91Text=92. Seems the =91Use Specified Precision=92 checkbox should deselect itself when =91Text=92 is selected since LabVIEW doesn=92t let you use the =91Use Specified Precision=92 checkbox for Strings. Ed
RE: SubVI Connection Description is the Caption?
I don't know if it was already mentioned, but there is a setting in the Tools-Options-Block Diagram to Use control caption on subvi tip strips Turning off this option is among the first things I do when I start working on a new computer. It affects both the block diagram tip strips and the context help. Captions are great for the user interface, but on the block diagram, a programmer is interested in the labels. It's puzzling to me why this option exists, much less defaults to ON. Jason Dunham SF Industrial Software, Inc. -Original Message- From: Rolf Kalbermatter [mailto:[EMAIL PROTECTED] Sent: Friday, April 09, 2004 12:51 AM To: [EMAIL PROTECTED] Cc: Info LabVIEW (E-mail) Subject: RE: SubVI Connection Description is the Caption? [EMAIL PROTECTED] wrote: When I created a VI recently, I noticed that a control's label in the context help did not match the control's label. I had copied the control from another VI and didn't realize that it had a caption set different than the label (only the label was visible). When I wired the VI as a SubVI, the terminal showed a different description than the label. After a few moments of confusion, I realized that it was using the caption. Shouldn't a control's label be used as the connector label or am I crazy? I guess there is still new things to learn about LabVIEW even after using it for 11 years. It is a little more tricky. When you are in edit mode, and hover with the mouse over a control you will see in the context help window both the label and caption if they are set, one of them being in []. In run mode however you will only see the caption if it is defined at all and otherwise the label. I find that a nice feature. As to the floating tip showing up when you wire I thought this would be the label actually. Never noticed what you seem to say, but I never really checked that one as I'm only concerned about captions for VIs with visible front panel. Rolf Kalbermatter CIT Engineering Nederland BVtel: +31 (070) 415 9190 Treubstraat 7H fax: +31 (070) 415 9191 2288 EG Rijswijkhttp://www.citengineering.com Netherlands mailto:[EMAIL PROTECTED]
Re: cin node and c++ code
Airo; Check these application notes: a href=http://zone.ni.com/devzone/conceptd.nsf/webmain/B26A875ACA51C567862567CA0055FF24?opendocument;An Overview of Accessing DLLs or Shared Libraries from LabVIEW/a a href=http://zone.ni.com/devzone/conceptd.nsf/webmain/3A1F4B7CBC68B636862567CC004D5CCA?opendocument;How to Build a DLL with Visual C++/a a href=http://sine.ni.com/apps/we/niepd_web_display.display_epd4?p_guid=B45EACE3E78F56A4E034080020E74861p_node=ZONEp_source=external;Passing a Variety of Data Types from DLL to LabVIEW/a Also, NI prepared a special page with all the links and references you need about switching to LabVIEW. Check it out. Probably you can do what you want without the C++ code: a href=http://ni.com/labview/switch.htm;Considering a Switch to LabVIEW?/a Regards; Enrique Vargas www.visecurity.com
Re: how to keep a control value being always selected
hi whether it is the conventional CASE structure or the EVENT structure, the working code (within the CASE) is valid. To learn about how to use Event Structure, you might wanna look at the examples provided.
Re: how to keep a control value being always selected
thanks for the vi. can i use an event of control change instead of the switch? I am new to the labview and not quite understand the event structures here. Please help
RE: IMPORTANT ADMINISTRATIVE NOTE - LIST CHANGES
5. Bonus question (what does k-whiner reference?) I believe it refers to the 1985 BMW K100RS motorcycle that Tom owns. BMW K series bikes are nicknamed K-whiner's for the sound they make. Michael Aivaliotis
Re: Ploting graph on button click
hi juilion i have a problem i need your help. i want to plot multiple graph, on a single xy graph i want --if user want to plot a new plot user will press new button,give value of parameter using control,do needed operation . then press button name as plot. on button click user must see all previous and new plot. For plotting a whole set of observation we use array with feedback node. Is there is any same method... so that we can use bunddle feedback node to achive my task. help me please..
Re: CIN code
Kalyanramu Vemishetty [EMAIL PROTECTED] wrote: I am starting to learn about CIN codes. I downloaded a program from NI website which had a CIN. How can I get the code written in CIN. If you know the author of the CIN you might ask him if he wants to give you the C source code. A CIN is a compiled and binary object file without any direct reference to the source code. The only other possibility like disassembling is illegal at least in the US. Rolf Kalbermatter CIT Engineering Nederland BVtel: +31 (070) 415 9190 Treubstraat 7H fax: +31 (070) 415 9191 2288 EG Rijswijkhttp://www.citengineering.com Netherlands mailto:[EMAIL PROTECTED]
Re: Trying to control a car using the Digital Control Unit
No No. The problem is, is that since VB.NET came out Vernier software has told me that they have to rework the coding and the code for VB.net will come out this summer. I was jsut wondering if anyone had tried to control two DC motors using Labview, and if so, do they have any advice or know of any VI's to help me along with this. My problem at the current time is controlling the speed of the DC motors. So any help on that would be great
Re: a question about for loop
Hi G=E9rard, you have two main options either replace the for loop with a while loop (N needs to be determined programatically) or place the contents of the FOR loop in a case statement, leaving one case empty. By pressing a button linked to the case statement, the calculations for the remaining iterations can basically be skipped. The current iteration will still execute to completion though. Hope this helps Shane.
Re: Regional settings date format
John Brohan [EMAIL PROTECTED] wrote: I am having a struggle with date formats and LabSQL. One big problem is the regional preferences date format. If I can read the setting then I can generalize the LabSQL date treatment. Does anyone know how to read the regional settings for the date format? You will have to call the Windows API. (well maybe it's in the registry actually but I only know about the Windows API. Chances are that even if it is actually in the registry it may be at different locations for the different versions of Windows.) Checkout the description on MSDN (msdn.microsoft.com) and what tokens you can use. int GetProfileInt(intl, CStr token, int default); GetProfileString(intl, CStr token, CStr default, CStr buffer, int bufLen); One warning though. The information you get from there is not really much better than what you can get from smart parsing of the localized LabVIEW string. Rolf Kalbermatter CIT Engineering Nederland BVtel: +31 (070) 415 9190 Treubstraat 7H fax: +31 (070) 415 9191 2288 EG Rijswijkhttp://www.citengineering.com Netherlands mailto:[EMAIL PROTECTED]
Re: calibration of the voltage
I understand thanks a lt. Since i am using an LVDT which measures the displacement and gives out the voltage signal for the corresponding displacement. Is it possible to find out the resolution in terms of the displacement. What would i need to do this. thanks
hi!!!How can I change the options in a VI express?
I want to scale a signal, and I am using the vi express Scaling and Mapping. ButI want to control the differents options that I can choose, linear scale, slope...How can I do it? I don=B4t know if it is possible in a vi Express. I know that I can change the properties of controls and indicators using properties nodes, but I thing that it doesn=B4t work in this case, but I am not sure Thank you!!! Graci
write labview measurement file vi appends file when overwrite selected
I am using the Write Labview Measurement File Express VI in a subVI with the overwrite file option selected. The first time I call the subVI it works fine. Each call thereafter the file is appended rather than overwritten. I am having similar problems with the Read Labview Measurement File VI. It works the first time called. Every call after the first results in error 4 (EOF error) as if the pointer never gets reset to the beginning of the file.
Filter Express vi building appllication problem.
Hello! I have a problem with Filter express vi or I think it's the reason for my problem. My application runs ok, but after I compile an exe it won't. When I run my exe, it shows open dialog and says (Please find the VI namedInstance6 20Saved WFA_08042004 .vi). WFA_08042004 is my applications name. And this not the only program all those were I have used filter express vi have the same kind of problem. Notice Instance6 20Saved WFA_08042004 .vi differs if I use different application. I have Dell latitude C640,labview 7, win xp servicepack 1, sc-2345 (Module FT01), DAQCard 6036E. Neuvos
Re: Get all control references of a panel returns different things on different PCs
Hi, normally the use of the property node of the front panel to get an array of references to the controls is not really common. This could be the reason for the different behavior of the two computer. You can find here a link which describes the normal way of use tab controls. http://digital.ni.com/public.nsf/websearch/D7A289CB44CD1EAB86256DC0007E4195?OpenDocument But if you want you can attach your solution here because normally it is not possible to use just the property node of the front panel so easily. Regards Thorsten R. NI Germany (SRQ 198152)
Re: Ploting graph on button click
Your wish is my command !
Re: Ploting graph on button click
hi jumarion thank you very much you always give me a perfect ans. as i want one graph to be display as you use 2 graph. to achive my requirment we can hide one graph. we have to use 2 graph it's not possible with single graph is it so. thanks once again
Plantage Labwiew 7.0 mdtmgr.cpp ligne 445
Suite =E0 l'ajonction de graphe dans mon application, labview plante avec le message : Erreur interne fatale 'mdtmgr.cpp' ligne 445 ... Quelqu'un sait pourquoi ?
Re: Possible Bug or just weirdness in Build Text Express VI
Hi Ed This is a known bug which should be fixed in LV 7.1. Your workaround is the right one: At the moment you've to go back to the number format and uncheck the checkbox from the Use specified precision setting. Then go back to the text format. Regards, Luca
Re: Ploting graph on button click
then it's great.. it means i can trouble you any time with any difficuilty thanks shital
Re: Run time TCPIP instrument searching
I don't think this can be done. AFAIK, the VISA functions rely on instruments already found (either by MAX or otherwise). However. Sometimes when using VISA with a control, I'm only presented with a certain choice of COM-ports. Editing the values to an instrument I KNOW exists, but isn't listed generally works. Maybe this works for TCPIP also? Hope this helps. Shane.
Re: Removing files from Source Code Control
I think it could be possible if you try to get all files from the SCC server to your local machine and then you copy all the files (in check out state) to your desired destination. Then, with the new folder, create a new project in the SCC and add all files. This will allow you to control two projects separately that are the same but with different versions. I hope it help you.
measure phase difference between two pulse trains or an encoder A-B phases
I want to measure the phase difference or shift between the lines A-B of an incremental encoder to check that is 90=BA as a test to another purpose. I've tried with Extract single tone measurements.vi and other vi's like this but it doesn't work. Please, could you help me? Thank you very much.
PowerFocus, PF3000 Open Protocol
hi all, I am posting this hoping that someone dealed with PF3000 Open Protocol using LabVIEW can send me demo codes/ information to kick start. Thanks in advance ian
Change the selection of tree control with a right click
How is it possible to change the item selected in a tree control (LabVIEW7) with a mouse right click ?
Re: Get all control references of a panel returns different things on different PCs
Hi, I just changed my code to return ball/b refnums as this: * use the property node of the front panel to get an array of references of the controls of the front panel * test each refnum, if it refers to a tab control * if it refers to a tab control retrieve the refnums to all controls inside the tab using the property node for the tab control and attach them to the original array * by using a shift register in a while loop I do this recursively to fetch the controls inside a tab control inside another tab control... too. So far it works good. Thanks for your comment. Cheers, Carsten PS: I don't want to use an explicit property node of a control! Doing it this way, I don't have to change banything/b of my code if I add another control that has to be considered in my initialization procedure -- it just has to have the right name. And I don't want to change my code if I decide to reorder my controls (e.g. to group them using tab controls).
Re: Removing files from Source Code Control
Ok I found a solution that may help others in a similar situation. What I did was to make a local copy of the Vi's in SCC. This local copy is still governed by SCC. Then I wrote a little LabVIEW code to simply go through every Vi in the local directory and alter the Edit property to True and the Locked property to False, this effectively gives me a local copy that isn't governed by SCC whilst also retaining the copy in SCC , just what I wanted to do
Re: Ploting graph on button click
What I wanted to show you in my VI is that Feedback nodes are doing the same job as shift registers but use less wire thus increasing the legibility of your code. I don't know enough yet about feedback nodes to see the difference(s) between both. Happy to see that I can help you ! Julien
Re: SubVI Connection Description is the Caption?
I Captions are great for the user interface, but on the block diagram, a programmer is interested in the labels. It's puzzling to me why this option exists, much less defaults to ON. I think that this is set this way so that when vi.lib is localized to German say, the tip strips will show up with a German name and not an English one. As you say, sometimes captions are verbose and not the best thing to show in a tip, but so often they are the same until the VI gets localized. I expect the default setting work fine except on popup panels when the panel serves as more than an interace to the function and the caption and label may be different lengths. Greg McKaskle
Re: vi doesn't work when called,but works if opened
Ok, i feel styupid now, it was a format thing all along! I had gave it decimal instead of Hex, sorry. Cheers for the reply though.
Re: calibration of the voltage
Well, we know that the VOLTAGE resolution is 20 V divided by 2^11 steps = 0.009766 Volts per step. Suppose your LVDT produces 0-5 V for a displacement of 0-10 inches. That's a factor of 10 inches divided by 5 Volts = 2 inches per volt. Multiply 2 inches per Volt times 0.009766 Volts per step, and you get 0.019532 inches per Step - that's your displacement resolution. If you can possibly configure the DAQ card to use a 0-5 V range instead of +/- 10V, you're better off doing that. That will get you 5-mil (.004883 inches) resolution instead of 20-mils (.019532). In any case just remember: Inches VoltsInches --- x -- = --- Volt Step Step p
This is simple???
I just tried to load an executable I built. In addition to loading the executable (which is thankfully very easy) I had to load VISA drivers, GPIB drivers and IVI drivers. All this for a relatively simple program that controls one GPIB power supply. Oh for the good old days when you just had to load one thing. Fortunately all this work is in-house. I'd hate to have to send this to someone and have them install it. Sorry for the rant. I just hope someone at NI is listening. George
Re: Driver Templates
Scott Remington [EMAIL PROTECTED] said: I am gearing up to build an instrument driver for one of our newest instruments per NI's LabVIEW Plug and Play model. I just downloaded the driver templates from their website but found out they were written in version 7. In my LV5 installation the instrument driver templates are in examples/instr/insttmpl inside the LabVIEW program folder. Is this what you're looking for, or are these some other templates we're talking about? Tom Dr Tom Hawkins High Throughput Screening Analyst, Associated Octel ltd PO Box 17, Ellesmere Port, Cheshire CH65 4HF, UK +44 (0)151 355 3611 [EMAIL PROTECTED] - Email provided by http://www.ntlhome.com/
Re: ploting new plot in xy graph on button click
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: Possible Bug or just weirdness in Build Text Express VI
Thanks Luca, I searched for about an hour last night before posting trying to see if this had already been reported, but couldn't find anything. Is there a list of known bugs we can browse? Ed
Serial VISA UART-related errors
All, As long as I'm composing email to the list, here's a question for the group (and maybe Dan M is listening?) I had occasion to replace a couple of PCs on the factory floor which continue to run a LV5.1-developed application. The app uses serial VISA on one of the PC's COM ports and on two RS-485 ports (an NI-485i/2 card). When setting up the new PCs, I installed VISA 2.6.0. I've had troubles with those positions since - and it seems to be comm-related, though I haven't (so far) gone back to installing the development environment to troubleshoot it and determine the nature of errors, etc. Last night I removed VISA 2.6 and installed VISA 2.01, and preliminary reports are that things ran more smoothly overnight. Wasn't it VISA 3.0 that introduced serial parity/framing/overrun error reporting? Has anyone had any experiences with older apps running into problems with updated VISA releases? Thanks for replies, Dave David J Boyd Senior Test Engineer Respironics 175 Chastain Meadows Court Kennesaw GA 30144-3724 (V) 770-429-2809 (F) 770-423-2300 CONFIDENTIALITY NOTICE -- This message, together with any attachments, may be legally privileged and is confidential information intended only for the use of the individual or entity to which it is addressed. It is exempt from disclosure under applicable law including court orders. If you are not the intended recipient, you are hereby notified that any use, dissemination, distribution or copy of this message, or any attachment, is strictly prohibited. If you have received this message in error, please notify the original sender and delete this message, along with any attachments, from your computer.
Re: creating source code in C++ .NET for CIN's
But a step by step description (like those for the VS 6 - environment) would be very helpful for those who aren't very familiar with the .NET environment they have to use!!!