Re: A baffling File delete problem under LV 6.1 - solution

2004-03-25 Thread E. Blasberg
Well, it turns out that my strange LabVIEW 6.1 bug where I couldn't 
delete a file created by a dynamically launched VI until all VIs 
stopped running was due entirely to a corrupted VI.  For those who 
saw my post 2 days ago (and care), I used an older version of my 
Acquire.vi and re-did the exact same changes I had made since the old 
version and everything worked fine.

Still, very strange behavior.

Oh well. As the Bard once to so aptly put: All's well that ends well...

-E. Blasberg
iDAQ Solutions Ltd



Re: seperate window example

2004-03-25 Thread Thorsten24
I do not get along with the data socket server.
When I cklick right on the control panel I can take a data socket
connection. But then? I cklick on public and then in the upper right
search. And then there is Browse Measurement data and Browse file
system. What will i have to do? take browse file system and then the
path to the subvi?



PID values during autotuning

2004-03-25 Thread Blore
To start the autotuning process using labview PID tool kit what should
be the initial value of P,I and D? And also does the tuning duration
required depends on initial P,I and D values?



Detect Motion in Camera-Images

2004-03-25 Thread Marco Tedaldi
Hello G-Community :-))

I've had the chance to gain some expirience with programming in LabView. 
But now I have to solve a Problem in a field that's completeley new for 
me (i really love this job, something new everytime).

I have a Camaera from which I grab an Image every second (with 
single-image acquisition I could got up to 10 per Second, but that's not 
necessairy). I'm savint every 60th Image. The Camera points to a cage 
where rats are livin in. Now I want to save the Images at a higher rate, 
when movement is detected in the Image.

At the moment I'm just substracting the last image from the actual one 
(funny to look at the resultign pics). I'm looking at the mean value of 
the result of the substraction, which seems to be a good indicator of 
changes. The Problem is now, that the mean also rises, when the ambient 
light changes. To lower this effect I thought about just substracting 
the linear value from the (quadratic) mean. Would this be a way?

Are there functions exactly for this in IMAQ eventually? (I have LabView 
6i and IMAQ 6.0).

Thank you and bye

Marco




RE: join synchronization methods

2004-03-25 Thread Rolf Kalbermatter
SPRINTER [EMAIL PROTECTED] wrote:

May be someone knows the way to join different synchronization methods ?

In other words I would like to use the queue and occurence with one while
loop. Desired effect is that while loop waits for one of these events
(element in queue or occurence).
In my case, dequeue function was being blocked by the wait occurence
function.

Event controlled objects in a data flow language will have to wait for both
objects to return before the code can continue. Not much to change about that.

You have two options.

1) Separate those two in different loops. Let them do whatever they need to
do. Eventually communicate the event from one loop (occurrence) to the other
loop (queue) if the code to perform for the occurrence is the same as for one
of your queue events.

2) Even better: instead of using an occurrence generate directly the according
queue command element in the place you would normally trigger the occurrence.
Or add a specific dummy occur queue command to send to the queue from where
you want to trigger the occurrence. Queues really are just very sophisticated
occurrences with queueing of the events as well as data storage with each event.
So there is no problem in using a queue as an occurrence at all here other than
the queue being a little more expensive in resource terms but as it is there
already anyhow you really loose nothing. 

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: Waveform graph legend

2004-03-25 Thread Rolf Kalbermatter
[EMAIL PROTECTED] wrote:

I have waveform graph of 48 plots.  The first 16 plots are the actual data.
The last 32 plots are the upper and lower limits for the first 16 plots.

I have the legend visible and only expanded to for the actual data (first
16 plots).  So there are only 16 plots in the legend.  If the color one of
the plots in the legend changes the color of the limits needs to change
accordingly.  I do this by using a property node (set active plot, plot color).
But since legend is not expanded to include the limits an error 1077 Invalid
property type is given.  If all 48 plots are included in the legend I do not
get the error.  However I would prefer to not display all 48 plots in the
legend.

Has anyone else seen this?  What are some ways to work around this?

The legend or the plots defines what plot channels are available. So if you
want to be able to change plot attributes you need to either make sure there
is according data for that plot or the legend is expanded to show that channel.

It is as simple as writing a single NaN value for each channel you want to be
able to change plot attributes for.

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: [W] Data link Serial port

2004-03-25 Thread Tom Hawkins
R. Glenn Givens [EMAIL PROTECTED] said:

Fortunately, I don't have to worry about the funny 
protocol  bad documentation because I get to decide all 
this myself.

This being the case, my top tips would be:

- Have the remote device send a data block in response to a query from the PC, rather 
than spewing out the data continuously. The only serial communication task in LabVIEW 
that's ever given me a real headache was dealing with a meter that sent continuously, 
and I never completely fixed the intermittent error that would occasionally pop up and 
halt a three-hour test. The query-response format is far more predictable to deal 
with: you don't have to worry about data piling up in the buffer, chopping messages in 
half by reading/flushing at the wrong time, etc etc.

- Make use of VISA's termination character feature: have the remote device append a 
unique character such as LF to the end of each message it sends, wire a number bigger 
than the message length to 'bytes to read', and VISA Read will just return the message 
up to and including the termination character - or time out if it didn't arrive. No 
need for flaky time delays or polling the number of bytes at the port!

If your current VISA version is less than 3.0.1, it might be worth upgrading - search 
the NI site for visa 3.0.1 (with the quotes) to find the installer.

Good luck, and once you're converted to the VISA way feel free to evangelise! ;-)

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/





How do you convert labwindows programs to labview programs?

2004-03-25 Thread mishca
Is it possible to convert a labWindows/CVI developed program into a
LabView program?



How can I obtain a reference to a global variable?

2004-03-25 Thread MartinManscher
I wish to change the contents of the columns in a global multicolumn
listbox. As far as I can see, the only way to access the columns in a
multicolumn listbox is to create a reference to it and access the
ItemNames property. But how can I create a reference to a to a global
variable?



Re: Use default if unwired buggy?

2004-03-25 Thread Nirmal Sharma
Hello Oliver,

As you mentioned that you have case with several outputs, there might
be one or more output for which you have not enabled use Default if
unwired option. This happens incase your wiring arrangement is not
proper i.e. improper alignment, arrangement or clumsy. Just check
thoroughly by putting the proper alignment of all the output wires.

Hope this helps. Your feedbacks are welcome.

Best Regards,
Nirmal Sharma



Re: HELP!!!What is TIME LIMIT parameter in triggered acquisition???

2004-03-25 Thread Nirmal Sharma
Hi,

I think, try giving -1 to Time limit parameter in AI read Vi or give
the maximum time limit not to occur the time out operation.

See the example program at below mentioned path in your computer:
C:\Program Files\National Instruments\LabVIEW
7.0\examples\DAQ\anlogin\anlogin.llb\Cont AcqGraph (buffered) Hard
A-Trig.vi.

If u r not able to find, open LV-goto Find examples- Hardware Input
and Output - Traditional DAQ - Analog Input - General - Cont Acq 
Graph (Buffered) Hard A-Trig.vi.

Hope this helps. Your feedbacks are welcome.

Best Regards,
Nirmal Sharma



Re: How can I obtain a reference to a global variable?

2004-03-25 Thread Nirmal Sharma
Hi,

For changing the contents of any gloabal variable, you have to access
that global variable in a normal vi. Open a new vi, go to Block
diagram - Function Pallete-Structure- Global variable. Then right
click on this global variable- replace by your global variable vi or
create a new global variable vi. By doing this, u  can access the
value and can change it.

Hope it helps. Your feedbacks are welcome.

Best Regards,
Nirmal Sharma



Re: Calculating statistics from an array with intervals

2004-03-25 Thread Sander Vader
Victrick,

I am sorry to create so much fuzz, hopefully my explanation below is
better to understand. So I hope you can help me.

Your understanding so far is correct: =93Every time an element in the
first column satisfies some value, it corresponding value in the
second column is set aside in an array to be used later.=94

The original array contains two columns; the first column contains a
time stamp, the second column the actual measurement. I want to split
this array into portions based on the values of the first column.
Initial it should check if the value in the first column starting at
index 0 satisfies condition X and put the corresponding value from the
second column in a split array, it should continue (continuing from
index 1,2,=85,n) to do so until the value from the first column does not
satisfy condition 1 anymore. Then it should calculate some statistics
over the split array (summation, number of samples, etc).
After this the process should begin all over again starting to check
if the value from the first column (starting at index n + 1) satisfies
condition X +1 , and so on until there are no more values in the first
column.

I managed to create a VI (attached to first post) that does all of the
above without any problem as long as for all subsequent conditions at
least one satisfying value from the first column can be found. E.g if
for condition 10 no satisfying value from the first column can be
found the first value from the next condition (in this case 11) is
considered to belong to condition 10 and from that value the
statistics are calculated. Instead it should consider that for
condition 10 the value from the second column is 0.



Re: The Future of Igor and Info-LabVIEW Lists

2004-03-25 Thread kwhite


Thank you very much, Tom. It has been a wonderful run.

-k








Re: switching of analog measurment signals

2004-03-25 Thread Nirmal Sharma
Hi Johannes,

why do u require switcher??. As u mentioned u are using the
optocoupler which will take digital TTL o/p from DAQ card  switch the
respective analog channel, you dont require any other switcher. Also
switching 100 mV through TTL outputs should not be any problem.

Hope it works. Your feedbacks are welcome.

Best Regards,
Nirmal Sharma



Re: How can I obtain a reference to a global variable?

2004-03-25 Thread MartinManscher
Thank you for your answer.

I know how to use global variables in general, but the problem is that
a Multicolumn Listbox (MCL) referred as a global is just the number of
the selected line(s). I would like to access the icontents/i of
the MCL, which I perceive as a table. If this is a MCL in a normal VI,
I can create a reference (and by this I mean a reference, not a local
variable), and use a property node to access the ItemNames property,
which gives me the contents of the table (I could of course also have
created the property node directly, but the reference can be passed to
subVIs).

However, if the MCL is a global variable, it is unclear how I can
create a reference or property node to access the contents. Is this
impossible, or is there something that I overlooked?

Martin



USB Labview

2004-03-25 Thread Jojo5
Hello,
I would like to communicate with a USB device via Labview. Please, can
you give me a exemple of communication (between USB Device and
Labview) and how I can install USB devices in MAX(Measurement 
Automation eXplorer)
Thanks very
Johan



convertir un rapport Html en rapport texte

2004-03-25 Thread Denzel
convertir un rapport Html en rapport texte



can I use any simple VabView7 code vi in ver 5 labview?

2004-03-25 Thread SteveGerads
can I use any simple VabView7 code vi in ver 5 labview?



Re: How do you convert labwindows programs to labview programs?

2004-03-25 Thread Dennis Knutson
No. Maybe once NI releases the LabVIEW scripting tools, someone will
create such a tool but for now, the only thing you can do is create a
DLL from the CVI code and use the Call Library Function Node. This is
done all the time with CVI/IVI instrument driver and there is a tool
to do this type of conversion.



Re: socket programming

2004-03-25 Thread jackolim
thanks



Intergration of Sine wave without constant added

2004-03-25 Thread Dermo
I am inputting a  positve /negative sine wave and I want to find the
integral of the wave. When I integrate it becomes all positive. I know
this is because of the integration constant being added. Is there a VI
out there that integrates purely scientifically and gives the output
in terms of positve negative. That is to say I wasnt to be able to
integrate an acceleration signal to give velocity and displacement
without addition of the constant in the Integral x(t)vi. that offsets
the waves.



How can i see if a exe is running?

2004-03-25 Thread Seppdudepp
I need to see the termination of a running program to restart my
Labview application. The Program was started from my Labview program.



Transfer and coherence function with Labview.

2004-03-25 Thread Roustan
Please send me a Labview code with transfer function (gain vs
frequency) and coherence function of 2 signals: stimulus signal (1024
pts) and response signal (1024 pts). Thanks.



Re: seperate window example

2004-03-25 Thread jhoskins
this is where you put the path to the main VI.
like this dstp://localhost/mainvi. where MainVI is the name of your
application that is calling the subvi. you must start this path with
dstp.



Re: Vi's text file..editing?

2004-03-25 Thread Chris Labview
Shan [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]...
 Can you provide more information on what you are trying to do?  What
 do you mean by a VI's text file -- a text file of data generated by
 a vi?  Or do you mean something akin to the equavilent line code of
 a block diagram?  If your looking for line code, it doesn't exist.
 
 Tim

The equavilent line code of  a block diagram ...

Edit that ..re-save it ...and run the VI..

If I display an HPVEE program as a text file...

Modify the line code in Word (Much quicker that going to the Block
Diagram and making

alot of changes..)...If it's alot of the same changes in a big program
(VI..in our case).. (  1MB)..lets say..

Thanks
Chris



Re: Inverse FFT's

2004-03-25 Thread LocalDSP
You are right, there is a problem. The problem is caused by a bug in
the FFT VI in LabVIEW 6.1. It does not compute correctly when the
number of input samples is a big prime number (in your case 59981
samples).

The work around is to add a dummy sample at the end of your time
signal before you perform the FFT and remove that last sample at the
output of the IFFT.



Re: Inverse FFT's

2004-03-25 Thread Blackj
That solved the problem. It was just a coincidences that the number of
data points was a prime. Adding another data point resolved the
problem.
Thanks



Re: Inverse FFT's

2004-03-25 Thread CoastalMaineBird
imaking my real set of data complex by adding an imaginary part
equal to zero./i

Not sure why you're doing that instead of usinig REAL FFT and INVERSE
REAL FFT.

Are you sure you're generating the imaginary array the same length as
the real array?



Re: switching of analog measurment signals

2004-03-25 Thread Marcus G
Hello Johannes,
It sounds like you're setting up a system that requires four analog
inputs (two voltage and two current), and you would like to use an
analog trigger to switch between which signals are measured. There are
several options of how you can set up such a system.
In terms of measuring the four analog inputs, you should be able to do
this with a DAQ card alone. Many of our cards, including the
AT-MIO-16E-10 (also called a 6020E), have 16 analog input channels
that have an input range of +/-10V. I'm not sure exactly what you
meant when you said that the 6020E isn't sufficient for measuring your
analog inputs, but if you clarify that, we may be able to find a way
use a DAQ card alone. As for the analog triggering, the 6020E only has
digital triggers, so you are right in saying that you can't do the
digital triggering with that card. Most of the other full featured E
Series cards (ex. 6030E, 6031E,...) do have analog triggers, so
depending on the type of triggering you'd like to do, you could
potentially use a DAQ card.
This leaves us with several options for the final system:

1. You could upgrade to a better DAQ card that has analog triggering
capabilities. This is contingent on what you meant by not being able
to do the analog measurement on the 6020E.

2. You could use the 6020E in conjunction with a relay device to
switch signals on the Keithley instrument. You can find available
national instruments relay devices in the digital signal conditioning
accessories section of the NI catalogue.
While this is certainly a viable solution, I don't think it would make
best use of your tools.

One thing that I'm confused about is why you have to have analog
triggered signals. Would it be possible to use digital triggers? If
so, then you could use the 6020E alone. Regardless of which system you
decide to implement, you should be able to use LabVIEW to interface
with the hardware.

Hope this helps!

Marcus G.
National Instruments



Re: Inverse FFT's

2004-03-25 Thread CoastalMaineBird
I just ran your problem waveform through REAL FFT and INVERSE REAL
FFT, subtracted the difference and got an error of 7 e-11 on the DC
term, and all other errors are on the order of e-14.

LabVIEW 7 Mac OS X



Enum as drop-down box

2004-03-25 Thread Eric Scott
Hi all,

First a little history: 
I am using an Enum as a drop-down box in a user-interface on a touch screen computer. 
There is no mouse or keyboard used. There are around seven items in the enum, and when 
the user 'clicks' (touches) the enum box, the list opens up and displays all of its 
contents. When the user selects, say, the fourth item, the drop down list disapears 
and the fourth item is diplayed in the box. Now when the user touches the box again, 
the list drops-down, the fourth item is highlighted, the third item is displayed above 
it, but you have to scroll up to see items 1  2.
 
Now the question:
Is there a way to have the list, when clicked, always display the entire list, no 
matter what item was previously chosen? (i.e no scroll up arrow)? It is very difficult 
to navigate the scroll arrow with a finger unless the font is very large. To see what 
I mean, create an enum with several items in it, and place it at the very top of the 
screen.

Thanks in advance!

Eric Scott




Re: multiple strings and case structure

2004-03-25 Thread JoeLabView
Hi,

It looks as though you want to parse the data 1 and use part of the
string to index a case statement, then pass the value to it.

Did you really want to have multiple data with special index in each?
Or do you have four (4) active data strings and you want to send the
data to the appropriate case?

An easy way is to truncate the first 2 or three letters and feed it to
the case structure.  I would recommend having a default case,
typically 0.  The identifiers within the case would simply be those
first 2 or 3 characters.

In the situation where you have multiple entires, such as Data1...
Data4, then, you may have to put them into a loop (while?) and
manipulate them in the manner that you want before sending it to the
case statements... In this situation, you would need multiple Case
Statements, one for each Datax... but this is unlikely, right?

Let us know more details of how you want the data to be evaluated, is
it inparallel, or could you use a single DATA and type in any of the
selections, and so on..

Regards,

JLV



Re: How can i see if a exe is running?

2004-03-25 Thread JoeLabView
Sorry for answering a question with a question...

How are you running your program? Are you using System Exec.vi?

If so, you can set the wait until completion to true and feed the
output error cluster to some sort of indicator.  Usually, some
programs will return a value, especially an error code.  This can be
used as an automatic way to indicate that the program terminated and
may even indicate if it completed successfully or not.

Can you provide more details of what type of program is running and
how it is executed?

Thanks,

JLV



Loading *.llb first loads to folder view

2004-03-25 Thread Gorelick
When I first load a llb file it doesn=92t go directly to the top level
vi.  What I get is windows explorer view with all the sub routines
which then I have to select the appropriate top level vi. I was able
to load directly by setting the top vi in Labview 6.1 but I don=92t seem
to be able to find a solution for labview 7.0

Cheers,
Mark



Re: How can i see if a exe is running?

2004-03-25 Thread john_c_m
Seit wann programmiert Hans S=F6llner?



Re: Why does a strictly Typed Control cause error 1082

2004-03-25 Thread Ken S
Hello,

I think a similar issue has already been reported to our Research and
Development department, and they are currently working on it.  Could
you post your code so that I can make sure this is the same issue that
has been reported?

I can also take a look at your code and see if I can find a workaround
for you.  The important thing here is to have the Main VI, the sub VI
and the strictly typedef=92ed control.

Thanks,
Ken S.
National Instruments



Re: LabVIEW PDA

2004-03-25 Thread Marcus G
Hi AK,
Here are the answers to your questions:

1. The execution target you choose depends on where you want the VI's
to run. If you want them to execute on your computer, then choose
Windows as your target, and if you want the VI's to execute on the
PDA, then chose that as the target. More informtion about this is
available in chapter 4: Building PDA VIs in the manual that you
found and linked to this post.

2. There is no workaround for these VI's. They are not supported by LV
PDA mostly due to the hardware limitations of processing on a PDA.

3. LabVIEW PDA is only compatible with LV Express, version 7.0 and
higher.

Thanks for contacting NI!

Marcus G.
National Instruments



2D Interpolation of Irregular Grid Data

2004-03-25 Thread Jin Xuesong
I have 2D data of f(x,y) at irregular grid points and
I wanted to do some interpolation so as to get this
data on a regular(and denser) grid, so that I can
further manipulate it with available packages.
Is anyone aware of any package/software/code
that can help me do this.
(i.e. the mathematica and matlab functions
only work with regular grids)

Thanks for the help.






Re: interrupt timer driven

2004-03-25 Thread Ken S
Hello Kai,

Unfortunately we aren=92t able to support other manufacturer=92s data
acquisition cards.  Interfacing to an interrupt on your Wasco card
really depends on the driver and programming interface that was
created by the card=92s manufacturer.  National Instrument's data
acquisition cards include a driver called NI-DAQ which installs the
card drivers, VIs to interface to the card from LabVIEW, and example
programs to do many common measurement tasks.

I can give you a general idea of how to access your DIO card.  First
you would need to install drivers and any development tools that are
included with the card.  Next you would need to determine from the
manufacturer=92s documentation how to access the interrupt.  After that
you can either call VIs directly (if the VIs were provided by a
manufacturer), or you can make calls to a DLL (which would also need
to be supplied by the manufacturer).  The DLL functions can be called
by using a =93Call Library Function Node=94.  This VI is located on your
Function Palette at the following location: =93All Functions 
Advanced=94.

If you need any other help or clarification, please let me know.  Have
a great day!

Ken S.
National Instruments



Re: simple image processing sample vi ?

2004-03-25 Thread Michael Noll-Hussong
Especially if you own IMAQ Vision there are a lot of examples you can
find at

http://zone.ni.com/devzone/devzone.nsf/webcategories/7D6146D8C67A832E862567F1006C29EE?opendocumentnode=DZ52422_US

Hope that helps ...

Michael



Re: Loading *.llb first loads to folder view

2004-03-25 Thread Dennis Knutson
You've have turned on Enable Windows Explorer for LLB Files. This
setting is on the OptionsNew and Changed in 7.0 or
OptionsMiscellaneous page. Uncheck it and restart Windows to get the
old behavior.



Re: How can I obtain a reference to a global variable?

2004-03-25 Thread Jean-Pierre Drolet
Hint: an excellent answer provided with a working example certainly
worths a ! (it's four stars rating... not censored =A6=AC)
It may not be the solution you expected but it is not the poster's
fault after all...



Viewing processor utilization within the application?

2004-03-25 Thread marcw
I need to view the processor utiliation from within my application.
Is there a call I can make to the operating system or does LabVIEW
have the capability to do it?  Thanks in advance.



Re: How to input a 64 -bit word ???

2004-03-25 Thread ocrts
LabVIEW can only handle unsigned integers up to 32 bits.  Therefore,
you need to split the 64 bit word into a 32 bit hi word and a 32 bit
lo word.  For the 24 bit word, use a 32 bit unsigned integer and
ignore the top 8 bits or split it into an 8 bit hi word and a 16 bit
lo word.

If you attach a vi explaining exactly what you are trying to do, I may
be able to help more.

Dave.



Re: exemple de VI pour commander un appareil USB

2004-03-25 Thread Michael Noll-Hussong
This links could help you:

http://zone.ni.com/devzone/conceptd.nsf/webmain/67E175B2AF9AA10286256A9D0078E2E7?opendocument

http://zone.ni.com/devzone/conceptd.nsf/webmain/6792BAB18242082786256DD7006B6416?opendocument

http://digital.ni.com/public.nsf/3efedde4322fef19862567740067f3cc/42b604435e3f9604862565e20043cd30?OpenDocument



Re: multiple strings and case structure

2004-03-25 Thread kmoorthy76107
Thank you for the response, but I was wondering how I would do it for
the other sets of data. That is, I have data 2 and diag info 2 and so
on.. Does that mean I have to have individual cases for each set of
strings or can I wire more than one set of strings to the same string?

Thanks in advance.



Re: LabVIEW PDA

2004-03-25 Thread software enigineer
Thanks Marcus for your help.



RE: AnalogOutputs info

2004-03-25 Thread Bookwalter, Dan
Richard

You need to set the number of buffer iterations to 0 in AO Start.vi to get
it to generate the buffer continuously until you clear the generation..

Dan Bookwalter N8DCJ
Hi-Stat a Stoneridge Co.
345 South Mill St.
Lexington, Ohio 44904

(419) 884-1219 Phone
(419) 884-4172 Direct
(419) 884-4195 Fax

[EMAIL PROTECTED]


 -Original Message-
 From: Mahoney, Richard C [mailto:[EMAIL PROTECTED]
 Sent: Thursday, March 25, 2004 1:43 PM
 To: [EMAIL PROTECTED]
 Subject: AnalogOutputs info
 
 I'm not really new to LV but I've always used Commercial Function Gens,
 and I know that I can use an MIO
 Bd. I'm trying to load a buffer with a sinewave (1.5Khz) and run the VI
 and get out a wave form. Most of the
 example programs show how to do this. But I want to just run the VI, let
 it complete, and then move on. But
 when I stop writing the output, the signal goes away. Isn't there a way
 to load the buffer (circular Buffer)
 on the MIO bd and let the HW take over and just keep outputting until I
 run a Stop analog output VI?
 
 I know I can just run the output code in parallel with the other code
 I'd like to execute, but, I'm thinking I
 should be able to let the HW just do this. I'm relatively sure there is
 a way, but the solution escapes me.
 Has anyone have info on this or have this type of code they would be
 willing to share?
 
 Also, What is the highest output Frequency with pretty good resolution I
 could possibly expect from this type
 of a config? I am using a PCI 6070E E series PCI bd. in a Win2k setup.
 Thanks in advance
 Rick
 


_ 
This electronic mail transmission contains confidential information 
intended only for the person(s) named. Any use, distribution, copying 
or disclosure by any other person is strictly prohibited. If you 
received this transmission in error, please send an electronic mail 
message to [EMAIL PROTECTED] 





Are there any good ActiveX samples calling into WMI?

2004-03-25 Thread MSchuetze
Greeting LabVIEW citizens. I am a LabVIEW 4.1/5.1 expert who sadly
hasn't touched LV in two years. I'm trying to get my head around
LabVIEW 6 and, for the first time ever, learn how to call into ActiveX
objects. I'm specifically trying to call into Microsoft's WMI
Scripting Host Object to get at performance metrics (memory, CPU,
disk, etc.) of my Windows box itself. I have several VBScript examples
of how to load and use the WMI Scripting Host Object, but I'm having a
devil of a time figuring out how to layout the ActiveX Invoke and
Property nodes in an equivalent manner. Has anyone ever tried this
before? Does anyone have example VIs that invoke the WMI objects? The
docs on WMI that I have are pretty thin. You wisdom is appreciated.



Can you set samples per trigger for sound vi?

2004-03-25 Thread Tia
Hi,

I've been looking at both Matlab and LabVIEW for acquiring sound
through a PC sound card. In Matlab you can change the sampling rate
(8000, 11025, etc), the buffer size and the samples per trigger. In
LabVIEW I noticed you can only change the first two using the SI VIs.
How would I go about changing the samples per trigger?



Clearing a local variable after each read

2004-03-25 Thread ssmith490D
I want clear the value of a local variable(in this case a string)
right after it's read. In this case the local is reading an indicator
that's in another part of the VI.Can anyone help. Thanks in advance.

S



Re: RS 485

2004-03-25 Thread Mads
RS485 is used by thousands of different units. Normally it will look
just like a standard serial port to the application and you can use
the serial VIs to communicate.

The scan for device, acknowledge etc. that you describe is not part of
the RS485 standard, it must be something specific for the device you
have. What type of device are we talking about?



Re: Viewing processor utilization within the application?

2004-03-25 Thread Mads
If you have LV7 and have installed the .Net framework there is an
example included with LV called SimpleTaskMonitor.vi, it does just
that - using .Net



Re: USB Labview

2004-03-25 Thread Randall T
This is a good starting point. Take a look it may answer this question
and others that may come up later.


http://zone.ni.com/devzone/conceptd.nsf/webmain/6792BAB18242082786256DD7006B6416?opendocument



Re: Clearing a local variable after each read

2004-03-25 Thread ssmith490D
The VI is generating a polling command for multiple 485 devices. The
responses are received via TCP/IP. The receive WHILE loop continuously
listens fro the responses. Using a LOCAL is the only to get the
responses out of the loop while they're being received. Thanks for the
help. Now I have to figure out how to get an empty string to the
indicator between responses.

S



Re: Clearing a local variable after each read

2004-03-25 Thread Mads
Clearing a local is the same as writing an empty string to the
indicator (or another local of it in write mode). Use data flow (may
need the help of a single-frame sequence e.g.) to ensure that you have
read the local before you write an empty string using another local...

If you have an indicator there must be a value going to it, most
likely from a wire. Why do you use a local to read the value of the
indicator instead of wiring the value to whereever you need it?



Programmatically Raising a Mousedown or key down event

2004-03-25 Thread NIBOUND
How can I raise an event pretaining to a listbox such as mousedown or
keydown in LabVIEW 7?  I read that something like this is possible but
I am struggling to find an example



How can i add more terminals to a SubVi without compiling it again?

2004-03-25 Thread Silverio
I usually create Subvi's in my programs but sometimes i need add more
inputs to my subvis but i need to make a new subvi to make that imput
available in the subvi icon, is there other way to do this?



DAQ Configuration problems in LabView: Error message -10401 AI Group Config

2004-03-25 Thread SwankSpike
I recently installed LabView 6.1, NI-DAQ 7.1, and my A/D board
PCI-MIO-16E-4. Everything went smoothly, but every time I try to run a
VI, I am greeted with Error -10401 occurred and AI Group Config.

I have tried every different combination of configurations I can think
of, but I can't shake the error message. Can someone please help?



Re: how do you split the output of a waveform chart into seperate channels

2004-03-25 Thread jawalk01
I have LV 6.0.1 do you happen to have the program in that version?  If
not could you attach a picture of the LV 6.1 program as a word
document?  Thank you.



Re: How can i add more terminals to a SubVi without compiling it again?

2004-03-25 Thread tbob
To add more terminals to a vi, right click on the vi icon in the top
right corner.  Click on Show Connector.  Right click again on the
connector icon.  The list of actions contains Add Terminal, Remove
Terminal, Patterns, etc...  You can choose either Add Terminal or
Patterns to add one or more terminals.  Assign your control/indicator
by clicking on the newly created terminal and then clicking on the
control/indicator you want to connect.



Re: dinamically reading load cell

2004-03-25 Thread Conseils
My initial reaction to looking at the data is

  1) It is undersampled
  2) Why are the synce pulses different amplitudes
  3) The raw data contains little or no information

It appears, although not clear from your comment, that there was an
existing system which weighed the trays. If this is the case what I
would do is connect in parallel and record the data.

I would send say 100 sets of trays through with known weights in. Say
10 with minimal and 10 with maximal and so on. Then keep a note of
what you sent and when.

Now you have a representative data set to create a logged file at say
44100Hz sampling rate and use that as a reference or perhaps use the
WAV recorder to create a simple raw record. Most importantly it has no
processing at this stage.

You can then use this to refine your processing technique. Later in
the projects life it acts as a system validation check. Some of the
ones I have created are the most important parts of the projects I
have worked on. From damage limitation (that's what the customer was
actually doing when I was called in). To, 'I can prove you have
changed something'. To 'Ops missed that!'

In summary
==
I would suggest at this point you don't appear to have valid data.
Wether that's a result of hardware or undersampling is impossible to
say with the amount of information here.

Put some 'calibration' weights on and make sure the static levels are
what you expect from 0 to typical. Then move to dynamic at increasing
speeds.

You will no doubt need a calibration section in the design anyway!



Re: How to set background color to black for PCI-1407 on 2nd target machine with LabVIEW 5.1

2004-03-25 Thread dmp
The background color of your picture should not be changing if your
image environment, video monitor, etc. are the same for both systems.
Do you see the problem if you use the camera from the first machine on
the target machine?  What if you use swap out the PCI-1407s between
the two systems?  Also, are you running the same version of the
NI-IMAQ driver on both machines?

Best regards,
Dawna P.
Applications Engineer
National Instruments



Re: How can i add more terminals to a SubVi without compiling it again?

2004-03-25 Thread Dennis Knutson
If you want to add a new terminal to an existing VI, just right click
on the connector pattern and select add terminal or go to patterns and
select what you want. Your existing connections will be saved. You
will probably have to re-link the subVI in the main or move some wires
because of the pattern change. In the future, it's alwasy a good idea
to select a connector pattern with more terminals than you initially
require. Then, when you do add something, your changes in the main are
minimal.



RE: AnalogOutputs info

2004-03-25 Thread Mahoney, Richard C
Dan and Blair;
Thanks for the quick replies, but I did set num of iterations to 0, and
my 
buffer length is set to an integer multiple of sinusoid length (I
actually
found that after I did find discontinuity glitches). 

But still, stop (complete) the VI and the output stops. Is there some
thing else
I'm missing?

Also, I would like to know if there is a maximum frequency I can create
with
reasonable resolution.

Thanks all.
Rick


-Original Message-
From: Bookwalter, Dan [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 25, 2004 1:53 PM
To: Mahoney, Richard C; [EMAIL PROTECTED]
Subject: RE: AnalogOutputs info


Richard

You need to set the number of buffer iterations to 0 in AO Start.vi to
get
it to generate the buffer continuously until you clear the generation..

Dan Bookwalter N8DCJ
Hi-Stat a Stoneridge Co.
345 South Mill St.
Lexington, Ohio 44904

(419) 884-1219 Phone
(419) 884-4172 Direct
(419) 884-4195 Fax

[EMAIL PROTECTED]


 -Original Message-
 From: Mahoney, Richard C [mailto:[EMAIL PROTECTED]
 Sent: Thursday, March 25, 2004 1:43 PM
 To: [EMAIL PROTECTED]
 Subject: AnalogOutputs info
 
 I'm not really new to LV but I've always used Commercial Function
Gens,
 and I know that I can use an MIO
 Bd. I'm trying to load a buffer with a sinewave (1.5Khz) and run the
VI
 and get out a wave form. Most of the
 example programs show how to do this. But I want to just run the VI,
let
 it complete, and then move on. But
 when I stop writing the output, the signal goes away. Isn't there a
way
 to load the buffer (circular Buffer)
 on the MIO bd and let the HW take over and just keep outputting until
I
 run a Stop analog output VI?
 
 I know I can just run the output code in parallel with the other code
 I'd like to execute, but, I'm thinking I
 should be able to let the HW just do this. I'm relatively sure there
is
 a way, but the solution escapes me.
 Has anyone have info on this or have this type of code they would be
 willing to share?
 
 Also, What is the highest output Frequency with pretty good resolution
I
 could possibly expect from this type
 of a config? I am using a PCI 6070E E series PCI bd. in a Win2k setup.
 Thanks in advance
 Rick
 


_ 
This electronic mail transmission contains confidential information 
intended only for the person(s) named. Any use, distribution, copying 
or disclosure by any other person is strictly prohibited. If you 
received this transmission in error, please send an electronic mail 
message to [EMAIL PROTECTED] 





Re: How to get a Pause and un-Pause function into my vi

2004-03-25 Thread Dennis Knutson
This is easily done with a state machine architecture. There is a
simple example written in LabVIEW 5.0 that can be found A
href=http://sine.ni.com/apps/we/niepd_web_display.DISPLAY_EPD4?p_guid=B123AE0CB989111EE034080020E74861p_node=DZ52076p_submitted=Np_rank=p_answer=p_source=External;here/A.
The state machine is a very powerful way to write programs. There are
numerous examples on NI Developer Zone and a couple examples that ship
with LabVIEW. Do a search in either to find them.



xygraph axis number fonts

2004-03-25 Thread Greg Shipley
using LV6.1 and Win2000.  I need to set the font of the axis numbers
on a printed graph programmatically.  Any knowledge of what property
node does this?



Configuring NA display for multiple plots with Labview.

2004-03-25 Thread greenhorn
I'm new to labview.  I'm trying to figure out how to get labview and
an Agilent network analyzer (E8803A) to work together.  I've gotten
some of the basics to work.  I can set the frequency range, number of
samples, etc. that I want the NA to test over.  I need to figure out
how to get Labview to set the NA display so that it shows 2 windows
stacked on top of each other.  I would like two plots, one of
Magnitude and one of Phase.  Right now I can only generate one display
window on the NA with my VI.  I downloaded the  Agilent NA drivers
from the NI website.  I'm sure the functionality is in one of those
files somewhere, but I don't know which one.

Any help would be appreciated,
Thanks.



Re: xygraph axis number fonts

2004-03-25 Thread Jonnie 5
Property node properties- X (or Y) Scale - Marker - Font

Then just wire a string to the property node w/ a valid font name (eg
Comic Sans MS or Arial).



Re: DAQ Configuration problems in LabView: Error message -10401 AI Group Config

2004-03-25 Thread Jonnie 5
Have you run Measurement  Automation Explorer (MAX) yet?

In windows, it'll likely be on the desktop or Start
Menu-Programs-Nat'l Inst

You need to do this at least once with the device properly installed
before using labview to control it.

See:
http://digital.ni.com/public.nsf/3efedde4322fef19862567740067f3cc/46f78edd19ba0cc386256cee007201fc?OpenDocument



Re: How to set background color to black for PCI-1407 on 2nd target machine with LabVIEW 5.1

2004-03-25 Thread LabVIEW 5.1
It has nothing to do with video monitor, video card,  NI-IMAQ driver
version. When I use NI-MAX 3.0.2 to get picture, the picture is black
 white. The problem is related to Windows 98 kernel. The LabVIEW 5.1
application exe file use kernel to get new setting for black color
during running LabVIEW 5.1 application exe file. It may be related
windows 98 kernel, LabVIEW 5.1  API. Or it may be related to driver
setting because it has color from blue to red

Thank you for your support.



xy graph axis number font sizes.

2004-03-25 Thread Greg Shipley
sorry see my earlier xy graph axis font post for the details but what
I really want to do is change the size of the font.
thanks.



Re: How can i add more terminals to a SubVi without compiling it again?

2004-03-25 Thread Silverio
Thank you Tbob, very useful.



Re: iotech ditgital write

2004-03-25 Thread Greg McKaskle
 the first while loop checks as fast as it can, if there is any change
 in the array reference and if so, it sends the new array-data to
 digital write.
 the other whileloop simulates a 2Hz signal by setting array(0) to
 true/false and waits 250 ms.
 
 and now the problem occurs. the while loops are very systemperformance
 depending and as soon as i just move the mouse over the screen, the
 signals become incorrect. (between 50ms and 300 ms uptime).
 
 has anyone any idea how to solve this problem?
 

As the other response pointed out, you probably want to place a delay in 
your loops.  And this seems odd at first, but if you can't afford to 
wait a whole ms, wire up a zero to the wait.  This will cause the 
scheduler to rotate the round-robin execution queue and will cause 
smoother interleaving of tasks.  Without this, the loops will often 
interleave at around 100ms increments, which has less overhead actually 
runs somewhat faster, but is more jerky.

Greg McKaskle




Re: Frequency...

2004-03-25 Thread Greg McKaskle
 I have an image acquired with a pulnix digital camrecorder and this image
 is in fact an array of striates. I draw a line on my striation image and i
 take the line profile. Now I want to find the frequency of the striation,
 i tried with Extract Single Tone Information.vi and it works but only
 for the most important tone of my signal... I need to detect all the
 frequencies of my signal. not only the most important... How can I do that
 ???
 

The other VIs on that row may be appropriate, or you could use the 
Extract Single Tone and set the export signals to give you the residual 
after the strongest tone is removed.  You could then loop through and 
extract several more until the amplitude drops below your noise floor.

Greg McKaskle




Illegal Analog Output Name in MAX

2004-03-25 Thread aeroguy
Hi, I am trying to create a traditional analog output channel, and it
is telling me that the name is illegal.  This has not happened before,
and the software was just updated to the new version with tasks etc..
I was wondering if that, or the fact that I don't have admin
permissions could be a problem.   Thanks



Re: Programmatically Raising a Mousedown or key down event

2004-03-25 Thread NIBOUND
I mean programmatically raise this event.  I know that if I actually
click on this list box that this event will be raised, but lets say I
want the event to be raised first thing when the front panel is ran?
Or at any other time I want?  How would this be done?



Re: how do you split the output of a waveform chart into seperate channels

2004-03-25 Thread jawalk01
thanks