Re: Taking Measurement from DAQmx Device
Hi, If you create virtual channels, you can use virtual channels directly in your software program to get the engineering values for strain, temperature etc. If you dont make virtual channels then in your software program, u need to perform all the setting which becomes sometime difficult. And you get voltage for each channel & then u need to convert into engineering values. So to omit programming burdens, better is to go for virtual channels. Hope it gives a clear picture. Your feedbacks are welcome. Best Regards, Nirmal Sharma India
Re: Using UNDO (ctrl-z) in Built applications
I also just found what Michael has noted re the Application Edit menu undo and redo items not working in a LabVIEW runtime when they are made part of a custom menu. Selecting the menu item tag to be APP_UNDO or APP_REDO doesn't help. It all works fine from the development environment.
sir i want to synchronize 3 vi's using occurence fn but i am not getting how to use occurences
i have no. of variables,in multiple vi's and if value of any bariable changes in any vi other vi need to do something.i know i can use occurences but i do not know how to implent them
Re: labview 7 SubPanel Container Question
I believe that the Front Panel of the VI which is to be inserted into a SubPanel Container cannot already be opened (or already inside another SubPanel Container). To solve this problem, you can set VI.Panel.Open = FALSE just prior to inserting the VI into the SubPanel Container. I hope that works for you.
Re: daq down counter example for pci-mio-16e-4 wanted
Hi, there are numerous examples which you can find at this path: C:\Program Files\National Instruments\LabVIEW 6.1\examples\daq\counter or Goto Find examples in Labview launching Panel -> Hardware Input and Output -> DAQ -> Counters If you are using DAQ card, Goto ->Count buffered edges or count Edges. Hope this works. Your feedbacks are welcome. Best Regards, Nirmal Sharma
Taking Measurement from DAQmx Device
I want to measure different parameters such as Strain,Temperature & if iam using DAQmx vi's,Do i need to create the "DAQmx Create virtual Channel.Vi" for configuring each parameter i measure separately and use the same number of DAmx read vi's or is there any other way?
Re: Disable subvi on the web
Hi, I think there are some misunderstanding, I think I am not clear enough. Actually I wanted the front panel of the subvi to appear on host side. But on the client side (through web-publishing) the front panel of this subvi will not appear. Thank you Best Rdgs, Sky
labview 7 SubPanel Container Question
I have multiple threads - in one thread (Thread A) I want to show the front panel of another thread (Thread B) using the SubPanel Container - Thread B is already running prior to Thread A starting. It appears from the examples of using the SubPanel container and my attempts that when using the SubPanel Container the VI inserted in the container needs to be started when inserting and cannot be running prior to inserting - is this correct or can someone please explain if what I am trying to do is correct?
How can I call resource manager in my labview program?
How Can I call resource manager ,and save my visa resource name sets in my labview program?
daq down counter example for pci-mio-16e-4 wanted
Hi! I am searching for an example vi of a down-counter for ttl pulse trains. thnx, Holger
Re: communication
Hello, First it is necessary to have both devices properly configured in MAX or T&M. Remember that the User Manual of your VME device will let you know what are the allowed Base Addresses that you can use, and then you need to enter those numbers in MAX. Some VME devices will require for you to set the base address that you want to use in a set dip-switches, and some other VME devices not let you choose and will give you a specified base address that you need to use. Please follow the links below for more information: * http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RPAGEID=135&HOID=50650008002AB5&UCATEGORY_0=_49_%24_6_&UCATEGORY_S=0";>"how can i configure my vme device?" * http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RPAGEID=135&HOID=5065000800B0B4&UCATEGORY_0=_49_%24_6_&UCATEGORY_S=0";>"add a fictitious VME device?" Now, when writing and reading from your device you can use either VXI or VISA function calls. VISA uses relative addressing, and VXI uses absolute addressing. So what does this mean? When using VISA calls (such us viIn or viOut) you will need to provide the offset of your register respect to the base address. As explained in the link http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RPAGEID=135&HOID=506500080075B4&UCATEGORY_0=_49_%24_6_&UCATEGORY_S=0";>"address", if you need to write data to register 0x3804, you will need to call the function viIn with offset 4, because VISA already knows that the base address is 0x3800 (because that's what you entered in MAX or T&M). When using VXI function calls, if you need to write data to register 0x3804, you will need to enter the absolute register address to the vxiIn function call. Hope this helps, Claudia Lorente Applications Engineer National Instruments http://www.ni.com/ask
Single Sweep command issue on FSP7 Spectrum Analyzer
I try to initiate a single sweep command using the following code "INIT:CONT OFF". The R&S FSP7 does not seem to except or recognize this command. Can you help as to why this is the case. I want to use single sweep mode and average my signal with the average count of 10. Manual it is fine but thru labview the command does not seem to function.
Re: how can i configure my vme device?
The User Manual of your VME device will tell you what are the valid parameters for your device. The configuration in T&M Explorer or in Measurement & Automation Explorer (MAX) is completely manual. You need to tell T&M or MAX all the information of your board, as explained in exercise 2 in the PDF document attached to the following below: http://digital.ni.com/public.nsf/websearch/97b8441ebf716dbd862569ee00562083?OpenDocument";>Using MAX to Configure VXI/VME Devices. It seems you need to add your card in the A16 space starting at 0x3800, instead of 0x. Otherwise, can you change the state of the "Base Address" switch so it corresponds to 0x? Hope this helps, Claudia Lorente Applications Engineer National Instruments http://www.ni.com/ask
Re: I have Time problem when I launch VI configured on PC computer (P 2.6 GHz), on MacOS (500 MHz).
You might try moving the "Saving Data" led off the graph. I know in Windows that when you have controls overlapping it can slow things down quite a bit. I also have found WinXP to be slower than older Windows versions, especially if you don't have at least 500 MB of memory.
Programmatic Windows Title Bar
Hello, I would like to Programmatically change the display of the windows title bar of my application so that it reads the name of the file I currently have open inside of it. I can not find any documentation for dynamic changes, only static ones using the VI properties window. I know this completely possible because I have used LV programs in the past that do this. Is there a vi property that I am missing or something? Thanks, Glen D
Re: Copy Excel sheet to another workbook
You will need to use the Worksheet.Copy Invoke node and wire the Before or After input with a reference to a worksheet in another workbook. If you are already accessing both workbooks, just create a reference to a sheet in the target workbook using the Workbook->Sheets Property and Sheets->Item Invoke nodes. Use Variant to Data to convert that variant into a _Worksheet reference. Use a _Worksheet->Copy Invoke node with the source sheet as the input reference. Then wire the target reference into the Before or After input and you are done. Michael www.abcdefirm.com
Re: I have Time problem when I launch VI configured on PC computer (P 2.6 GHz), on MacOS (500 MHz).
If you do not have VI profiler, edit your code to use the tick count. This way you can have the program itself tell you the timing statistics.
Re: I have Time problem when I launch VI configured on PC computer (P 2.6 GHz), on MacOS (500 MHz).
I could not see anything that would explain why the code is slower on the Mac. This is not to say that there is no problem--I just could not see it. Does the Mac have a lot of memory? I recommend running the VI profiler (if you have pro) to see what is taking so much time. You should also disable the graph to see if its updating is taking the time.
Re: Is it possible to pick a point in a graph and drag/move it to another position using the mouse?
Thanks! I didnt realize that it is possible to have more than one cursor! This means I need to generate as many cursors as points in my array and just make it look like an ordinary point. Then I can use this cursor to move the point to any position within the graph. I hope my guess is correct! Thanks again for your help Thomas
Re: Is it possible to pick a point in a graph and drag/move it to another position using the mouse?
Yes, this should work.
Re: Unable to read from AI Read
p.s. If you want to give someone the best rating, it's four stars. One star is a lousy rating.
Re: open thermocouple detection on the 1120
The problem is that this module doesn't have open thermocouple detection. That's why I asked the question to begin with. But when I read your comment about the resistance measurement I was curious to the details of how exactly to do this.
Re: unexpected error - why ?
right! really nice - I hate it ! thanks
Re: open thermocouple detection on the 1120
As Matt stated, that particular module has .5 Volts tied to it to give open circuit detection. In that case I would not attempt to measure its resistance. I'm more familiar with DMM & switchboxes. For those, the configuration is all in the programatic commands sent to the DMM - so changing from "Thermocouple Measurement" to "Resistance Measurement" is done at the program level. But, as Matt stated, for the module given here, there should not be a need to do that. Open circuits should just go to a max reading. Les
Re: Unable to read from AI Read
The example that Nirmal posted is pretty much exactly the same as one of the shipping examples called Cont Acq&Chart (buffered). Looking through the examples that come with LabVIEW is the best way to get up to speed and should be the first place to look for help.
Re: ftp transfer works using Labview but when I look at the sent file on the server, it is empty
Hi Mike, I am using ftp transfer with LV7 and have used it with LV6.1 with no problem. What ftp server are you using? Give us more details. However, I did have an experience where at first I thought the files were dissapearing. I was sending the files to an embedded system running Linux. The files were going to a RAMDRIVE. At the end of my sequence, I was powering off the DUT... ...and of course the files were in volatile memory (thus "dissappearing"). I then transfered the files directly to FLASH.. :o) -JLV-
Re: open thermocouple detection on the 1120
Hi Les, how do you propose taking a resistance measurement on the channel if the channel has been configured in MAX for temperature? Can you reconfigure channels programmatically using LV?
Re: Unable to read from AI Read
Thanks very much Nirmal, i used this in my project, Now the continuous acquistion is working fine hemaa
Re: ASCII to decimal conversion function
Look under: Functions All Functions String String/Number Conversion [EMAIL PROTECTED]
Re: LabVIEW Web Server and GPIB-ENET/100
One thing that you didn't mention was whether or not you were using one NIC or two. If you are using two NIC devices, I would suggest connecting both to the default NIC. Do you have a separate IP for each NIC? If so are you pinging the one connected to the external network or the one connected to the ENET. Try reducing your system to one NIC and see how this affects everything. It=92s possible that you are pinging the NIC that is connected to the ENET device. In this case the ENET will be busy sending data while in operation and it will take time for the ping to come in one NIC to the other for a response and then back. I hope this helps, -Josh
Re: ASCII to decimal conversion function
Why not simply add another display which has the property "Hex Display" already set. You could put the display next to the ASCII one and see both as the vi is running. -JLV-
Re: ftp transfer works using Labview but when I look at the sent file on the server, it is empty
Mike, I have not seen this, however can you attach a simple program and file to transfer so that we can reproduce it. Maybe I can help you that way. Sorry I don't have an immediate response.
Re: pade approximant
For those who don't know, here is a link to http://www.mupad.de/schule/en/Documentation/eng/stdlib/pade.shtml";>pade approximation. I did not work out the details but it looks like you can use a couple of the fitting functions in LabVIEW. There is the rational fitting and the lev-mar fits. You can find them if you have LabIEW Full or Pro by going to functions >> analyze >> mathematics >> curve fitting. The help is pretty good and there are shipping examples as well as the developer's zone if you need an example.
Re: pade approximant
Oops, There is no rational fitting--it is rational interpolation.
Re: Events & Tab Control Navigation Buttons
Mads is correct in all respects. His usability suggestion is a valid one, but we still need to fix the bug (and will). Sorry for the inconvenience.
Copy Excel sheet to another workbook
I'm trying to copy an excel sheet to another sheet in another workbook (and save all formulas and formats). I'm using LabView 6.1 and win2000. can you help me with that ? Thanks.
Re: unexpected error - why ?
Probably because the Boolean is set to a "latch" mechanical action. Change it to a "switch" mechanical action and the error will go away.
Re: error in parsing data from instrument i/o assistant
James, this is a very interesting problem. I am trying to get my hands on an HP 53131 or something similar to see if I can reproduce what you are seeing. One option you can try is to right click on the Instrument I/O Assistant block and select "Open Front Panel". This will convert the Express VI to a SubVI, meaning you cannot pull up the Instrument I/O Assistant again from that block, but then you can see the LV code and maybe you can tell where the error is occurring in the generated LabVIEW code. I will continue to try to reproduce the problem from my end. Thanks for your feedback and help! -Tommy
Re: question on DAQmx
Jim, You can wire an array or strings indicator to the output of Channels property node. Zvezdana S.
Re: Is it possible to pick a point in a graph and drag/move it to another position using the mouse?
You can do this to a graph cursor. These look like points. You can programatically change the data in the graph, so what you want to do is possible, but it will take a little bit of coding.
Can the English version of LabVIEW 7.0 support Chinese text strings?
I have developed an application using LabVIEW 6.1 in English. I am expecting to upgrade to LabVIEW 7.0. Will I be able to handle strings in Chinese? I am using Windows 2000. Will I need to use the Chines version of Windows 2000? Will I need a Chinese version of LabVIEW? Will I still be able to use English text? What about input strings?
ASCII to decimal conversion function
I use LabVIEW 6.1 I'm reading an instrument using RS-232 and the "Serial Port Read.vi" The vi reads 3 bytes in ASCII format I need to convert it to decimal or hexadecimal in order to calculate the instrument output. It is possible to do it offline (when the vi isn't running) by rigth clicking on the indicator connected to the "string read" output of the "Serial Port Read.vi" and changing the display to "Hex Display" but i need to do it while the vi is running. Can someone help Thnxs a lot Danny
Re: What is the Algorithm Used by the LabVIEW Remote panels?
Thank you Mr. Greg McKaskle Can you help me for finding some technical note about "LabVIEW Remote Front Panels" because I used this feauter of "LabVIEW" in my thesis.
Re: i am caught in bizarre situation my labview programee takes...
You might try putting a 50 msec delay somewhere in your program loop to give the CPU time to perform other tasks. With no delays in a LabVIEW program, it *will* hog all the CPU time. Rob
Re: How can I import a large .wav file into LabVIEW for analysis?
The file read functions have a count and an offset input. Just tell it where to start in the file (offset) and how many elements of the given data type you want. Read the block, analyze it and then read another portion of the file. If you want to start where the previous read stopped just wire the offset output of the first read into the offset of the next one.
Re: labview 5.1.1 craches on Win2k
I would suggest trying to use GPIB Analyzer (http://www.ni.com/support/gpib/max/analyzer.htm) or NI-Spy (http://www.ni.com/support/gpib/max/nispy.htm) to see what the bus is doing. I would also reommend checking out the trouble shooting wizard at http://www.ni.com/support/gpib/gpib1.htm. I hope this helps out, Joshua
Tab control doesn't highlight when tabbing
I have to navigate through my application without a mouse, using the tab key, return key, etc. As I tab through the controls I've noticed that as a control receives focus it is outlined with a black box. This doesn't seem to be true, however, for the tab control. Is there someway I can get the tab control to be highlighted when it receives focus via the tab key?
Re: How do I talk through ISA bus in Windows 2K
I've not heard of anyone doing a device driver in LabVIEW though I suppose it would be possible using the Inport/Outport functions to read/write to the boards' registers. I did a little of this once and it was not a pleasant experience. Typically, these sorts of things are written in C because of the really low level i/o required and the availability of toolkits. What kind of driver did you use for Win95? Did you or someone else in your company make the board? If it was done by a vendor, are they still around and capable of providing an update? If you're stuck and have to do the work yourself, Microsoft has quite a bit of information on device driver development. One place to start is http://msdn.microsoft.com/library/default.asp?url=/library/en-us/gstart/hh/gstart/gs_intro_44iv.asp";>Windows Driver Development Overview".
Re: Compare 2 string's -> output boolean
This is where LV's polymorph functions make things very simple: just wire the strings into an Equal? function (from the comparison palette), if they are equal the output will be a boolean true.
Re: Why would I get different sized exe's if I build the same...
It will be a while before I can finish this up. So far the laptop does NOT have that ini file setting. I will check my tower when I get back to work. I will post here if I figure out why this is happening. Ben
Re: Changing slider maximum scale programmatically
You are correct! That gives you two options; 1) Right clcik and choose disconnect from typdef, or 2) Customize control and make it a normal typdef. Ben
Compare 2 string's -> output boolean
Is there any simple way to compare two strings. The output should be true or false. Thanks rutekp
event structure bug?
I'm not sure if this has been posted before (about 4400 hits came up for "event structure bug"): Start with a blank VI, drop an event structure, add dynamic registration terminals, add and wire register, unregister for events. Next, drop two "create user event" vis and wire a plain boolean constant to each (that's one per "create" vi), then name each (e.g. "bool1" and "bool2"). Wire the create event outputs to "register for events". Now, go to edit the events handled by the event structure (should be timeout by default), select the first user event (instead of timeout), then add (as a second event) the other user event. Click OK, then voila! The first user event you chose is listed twice in the event case heading (, for the naming above). Also, if you try to resize the Source, Time, Type terminal, the vi breaks (non-executable). If you try to re-edit the events for the case, only the first user event is listed. --Omar (I still think User Events are pretty cool!)
Re: Serial Communication Strategy Question
Because your LabVIEW program can't control when your hardware sends data, your first issue is going to be synchronisation with the incoming data and this will be determined by how the data is formatted. Is each item always terminated with a unique character (e.g. a carriage return) that never occurs elsewhere in the data? Then you can set the appropriate termination character in the properties of your VISA session and use a single VISA Read to return the data item as a string. On the other hand if it's a block of binary data terminated with a checksum or CRC, you may need to read one character at a time in a while loop and accumulate them in a shift register until you determine that you have a valid block of data. Once you have your data you can decide what to do with it. Does the data always come in a big block containing all the readings, or do the readings come individually in variable order, with some kind of identifier saying what each one is? In the first case you just need to split the block up into the appropriate chunks, in the second you might use a case structure to handle each type of data appropriately. Either way you'll probably find the Scan from String and/or String to Byte Array functions very useful. If your LV program does anything else besides displaying/logging the data you receive, you'll probably want to use independent loops for the other processes. If you need to send data from the serial read loop to the rest of the program, consider using queues, notifiers or functional globals (aka LV2 style globals). Looking at the examples in the LV installation and on this site will probably help, and you may get more help here if you can give us more detail about the format of the data.
Re: Questions on graphs and charts.,,,
Hi, 1. Charts takes sigle point value like plotting DC voltages, Graph takes set of values like arrays (1D) which are plotted on Y-axis with respect to x axis which is integer number like 0,1,2..etc.. , XY graph takes bundled array of X-axis & Y axis. 2. Charts are used where a single point value is to be presented/updated w.r.t. to time or x scale (x scale can also act an index). Also it supports update modes like sweep, scope & strip. 3. Graph are used to plot waveforms which does have no. of samples acquired from DAQ board or other source, which needs to be plot on Y-axis. Main inputs of waveforms are starting time (t0), time stpes(dt) & Y elements. 4.X-Y graphs are used where you want to plot Y elements w.r.t. to the defined X elements. For e.g. I want to plot as Y=10 when X = 0 Y=20 when X = 2 Y=30 when X = 3 etc. Here we have one array of Y elements & other array of X elements. So bundle your X & Y array & fetch to XY graph to plot it. Hope it clears you the concepts. Your feedbacks are welcome. Best Regards, Nirmal Sharma India
Re: Inclure un driver de port série dans
Excusez-moi que je ne reponds pas en francais... You also need to install the NI-VISA runtime on the target PC. If you don't have this already you can download it from the NI site (search for 'NI-VISA' in drivers & updates). It may be possible to make the installer for your executable run the VISA installer automatically but I'm not familiar with this.
Re: Questions on graphs and charts.,,,
Hi, 1. The graph interprets the data as points ont the graph and increments the x index by one starting at x=0. If you want a different starting point or increment, then use the bundle function. Check the graph examples in the "LV examples". 2. In this case you've to use a continous data acquisition (HW timed). If you're using a NI board, then check the countinous I/O examples in the "LV examples". 3. Use a XY-Graph which you'll find in the same palette as the chart and graph. The XY-Graph accepts a cluster which contains an x array and a y array. Hope this helps. Luca
how can i configure my vme device?
"I've got a VME-MXI-2 interface and a VME card connected to a VXI crate. I'm using the ni-vxi driver to access the VME cards with Labview in the crate. Using T&M Explorer, I have added this device and mapped it to A16 address space 0x0 to 0x03F.but The card has a switch that is set for "Base Address Select" =3800H.I am right for configuration it,isn't it?
Re: event structure bug?
User events seems to be a bit bug-infected, it's e.g. very sensitive to what and when you wire to the create user event function. When I tried to recreate your problem I was unable to, probably because I named the boolean constants before wiring them. Then I tried deleting the constants and wire an unnamed boolean constant to the first create function - and voila, LV crashed. I've seen similar behaviour earlier; LV often crashes if it does not like the inputs to the create user event function. Yes you need to name the constant correctly, but you should be able to do that *after* wiring it without LV crashing... Their cool though, I agree:-)
Is it possible to pick a point in a graph and drag/move it to another position using the mouse?
I have an array which contains sample points. I would like to be able to pick exactly one of those points in the graph (using the mouse) and move it to another position. Thanks Thomas
i am caught in bizarre situation my labview programee takes...
i am caught in bizarre situation my labview programee takes 100percent cpu time and creates a deadlock i am communicating with java programme through data socket but labview creates problem
Inclure un driver de port série dans u
Dans une application Labview, nous communiquons avec le port s=E9rie (VISA read/ write). Sur le poste de d=E9veloppement l'application fonctionne correctement mais lorque nous g=E9n=E9rons un ex=E9cutable (cr=E9ation d'un programme d'installation) pour l'insaller sur un autre PC, la ressource VISA S=E9rie reste en "gris=E9". Nous supposons qu'il faut ajouter =E0 notre programme d'installation le driver s=E9rie. Comment faire et quel driver utiliser?
How can I import a large .wav file into LabVIEW for analysis?
I need to import a 40MB .wav file for analysis and doing so at once takes up too much memory, can I import a bit of the .wav file at a time?
pade approximant
I want to fit numerically exponential signal with pade approximant. Help me please
Re: Serial Communication Strategy Question
What is the protocol? How much data are we talking about (KBs) and how often do you read the data? Is the data just spit out, or do you need to poll for it? If so do you have to poll for each value, or do you get all the values in one reply... Can you provide an example of the string you will receive from the unit?
Re: Changing slider maximum scale programmatically
An important note - I have the slider set up as a strict type def so I guess this is why I can't change the value...
Re: How do I make my USB to RS232 box ready light go on after my laptop comes out of suspension?
Chris, I've never reloaded the USB-232 software or attached the box to my laptop since your reply, so I don't know if this was the problem or not. Thanks for the information, and whenever I do get around to using this box with my laptop, I'll definitely let you know what the story is on this.
Re: error in parsing data from instrument i/o assistant
James - what does the response you are parsing look like? I know of one bug that exists in the Assistant that this could be; if you show me a sample response I can let you know if this is a known issue or a new one.
Changing slider maximum scale programmatically
Is it possible to change a slider scale maximum programmatically - it appears that this value is not a write value using property nodes?
Questions on graphs and charts.,,,
Hi , I have always been facing problem while working with graphs and charts. First of all let me be clear with the data these accept. further questions as under: 1. If I wire an array (1-dimention) to graph/chart , it plots it on Y axis. In this case, what are the values on x.axis? 2. If I want to acquire a voltage on Analog I/P channel for some specified time , say 2 sec., how to ensure that time span and data without missing anyone. 3. If I have to plot an I-V plot, how to make sure that V will come on Y-axis and I will come on X-axis. Plz clear these doubts... Regards GNS