Re: how to get the selected items from listbox

2004-03-09 Thread ian.f
In order to have the selected items line up in accordance to the
selection order, please do it one at a time. (That's the limit for
that VI)

If you need more than that (i.e. to regconize which item clicked first
and which one comes later), you may have to figure it out ya :)

Wish you good luck. Perhaps, someone else has a already made vi.

Cheers!
ian.f



RE: Hiding Main VI's Window in built application

2004-03-09 Thread Rolf Kalbermatter
Yonatan Tidhar [EMAIL PROTECTED] wrote:

Yes I thought so, but way should the execution should be depend
Were the front panel is open or not? No meter if I leave open reference to the VI
I was expect that the vi execution will continue until the code ends.

Simply because it is way to easy to close the top level front panel (x in
top right corner of window for instance) and if an open reference, which
was forgotten by the programmer, would keep the VI alive, you would end up
with zombie processes. Basically it is protection of the (not so innocent)
average LabVIEW programmer, who does not want to deal with proper resource
deallocation once he is done with what he wanted to do.

You can work around this by keeping a top level VI which starts up all the
rests and gets neatly hidden by moving it off screen.

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]
 




Serial instrument simulation of data

2004-03-09 Thread Uwe Frenz
Brett,

you asked on Wed, 3 Mar 2004 17:48:37 +0800:

I have been working with a vi witch connects to a serial port and reads load
and displacement, how can I simulate the type of data I would normally be
receiving , so that I can test  everything thoroughly, without actually
connecting to the instrument at work. There is a peak load detection and
clear indicator function as well as some  front panel indicators that blink
according to when a comparison has been made.
Thanks in advance, any help examples in V6 would be greatly appreciated.
I have been in your situation several times.
There have been many different architectures for serial drivers.
A key problem in all of 'em is a stage that handles messaging, say sending 
out messages to the device and receiving completely tested messages from 
the device.
What I often do is coding this level driver with an USR that holds any 
incomplete messages for the next call. At this level you can easily insert 
a string constant and fill it with data captured from a test run with your 
real instrument. Than insert a boolean control 'demo' that defaults to 
FALSE. If it is true your driver should take some (random number) of 
characters from the string constant rather than from the device. Sometimes 
I also added another peace of code that could copy all chars from the 
device to a string display or a file in order to look what the raw data 
REALLY looks like.
Device documentation is often not so clear or updated or exact. And 
debugging a running device's output stream can easily flood any system and 
program buffers. So with a file buffer one gets a chance to revisit the 
data and processing of raw data without the pushing device in the background.

Greetings from Germany!
--
Uwe Frenz
~
Dr. Uwe Frenz
Entwicklung
getemed Medizin- und Informationtechnik AG
Oderstr. 59
D-14513 Teltow
Tel.  +49 3328 39 42 0
Fax   +49 3328 39 42 99
[EMAIL PROTECTED]
WWW.Getemed.de



Re: Error while getting directory details.

2004-03-09 Thread anchovie
It's because of how you exit your smaller While loop. Your logic is
set up so that if the user double-clicks on the listbox OR clicks on
Save OR clicks on Cancel OR there is an error, the program exits
the loop. The next piece of the program to run is dependent on the
output of the Dbl-Click property - even if that isn't what the user
clicked on! So in those cases you get a value of 0 from Dbl-Click and
the program falls apart when it uses this 0 in the part that builds
pathnames and you end up with a bad path that it then tries to tack
the value of the Save As control onto.

I think your program would benefit from a bit more thought about its
structure. If it was based around an Event structure or a State
Machine, you would be able to know exactly what the user had clicked
on, rather than that they'd just clicked on *something* and be really
specific about what code gets run in each case.

Hope this helps,
James.



Re: API Serial Functions

2004-03-09 Thread Rolf Kalbermatter
C. Allen Weekley [EMAIL PROTECTED] wrote:

Has anyone written VI's to perform serial I/O using functions in
kernel32.dll?

Why would you want to do that? It's a pain in the ass, will only
work under Windows and be likely a lot of work before you even
can start communicating with your device. On the other hand using
VISA I communicate with all sorts of devices since days and years
and it has always worked for me, with the additional bonus that my
LabVIEW applications work under Linux just as much without rewriting
or even conditional VI code.

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: API Serial Functions

2004-03-09 Thread Rolf Kalbermatter
C. Allen Weekley [EMAIL PROTECTED] wrote:

Yes.  My company manufactures a variety of instruments that communicate
solely with serial.  We have been using NI-VISA and are happy with it,
but NI-VISA requires an installation that is often larger than the
application we supply to our customers, and there are licensing
restrictions for distribution. I was hoping to develop our own serial
functions in a much smaller package than NI-VISA.  This is why I am
interested in using the Windows API.  NI-VISA with its support for so
many kinds of instruments seems like overkill for our application. When
the customer installs the NI-VISA driver they end up installing features
to support GPIB etc. that are not needed for our application.

Well, I see. Just forget about my previous mail then, will you. I have
started some work on a VISA32.DLL replacement which I intend to release
as Open-G VISA library. It is far from complete and I have only worked
on Windows yet but intend to actually push the Linux version more. It is
structured similar as NI-VISA with VISA32.DLL as top level API and low
level plugin DLLs which provide support for particular VISA resource
types.

The first I have started with is serial of course, but it is as I said
not functional at all yet. I still need some common infrastructure
libraries as well.

I was intending to get something working before putting it out, but it
is geoing slow and it will take quite some time before I get there. If
you would be interested in working on that as well I could create an
Open-G subproject and put up what I have so far so that you could take
a look at it and work yourself on it as well.

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: Language Independence on Serial Output of .

2004-03-09 Thread Rolf Kalbermatter
Holland, Guy [EMAIL PROTECTED] wrote:

I have an application that outputs a string with numbers via the serial
port.  Ex. SG1.23,4.56,7.89.  I developed the application in English
but when the application was installed onto a Non-English say Holland
language, the output string turns into SG1,23,4,56,7,89.  The periods
are replaced with commas.  I believe it might happen with all languages
that use commas ($1,00) rather than periods ($1.00).  How can I get around
this problem so that my application can be language independent?

You have a couple of options:

1) Change the International Settings in your Control Panel (will affaect
   all applications on that computer)
2) Change the LabVIEW global settings (disable Options-Misc-Use
   localized decimal point) (This will affect all string formatting
   functions in your application. You can also add the according setting
   useLocalizedDecimalPoint=False to your application INI file.)
3) Define with each formatting command what format to use by prepending following:
   %.; use decimal point
   %,; use decimal comma
 

This is great information.  I think I will have to use both yours
and Richard Mahoney's advice.  Your suggestion will work for the
mean time but I think the solution is to use Richard's format
specifier %.; suggestion. Actually, I think the ultimate solution
would be for NI to transparently do this formatting so I don't have
to. If I send a . why would I want it to be anything else other
than a .? 

Not sure what you mean. Mind reading software hasn't been developed yet ;-)

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]




Time delay in while loops

2004-03-09 Thread Sam Chillingworth
I am using a while loop with a task in it involving the serial port. I
only want the task in the loop to run for a certain amount of time
(~10s).  I have tried putting the 'wait' function in but this doesn't
seem to work. Does anyone know what would work best.
Thanks



Re: Error while getting directory details.

2004-03-09 Thread anchovie
Ah yes, the property value is -1, not zero like I said.

I knew I should have had that extra hour in bed! :)



How to create a 'circular' 30 day file in LabVIEW....

2004-03-09 Thread saj
--7250537.1078830524114.JavaMail.quiq.tekken
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

How do I create a 30-day circular data (text) file in LabVIEW, the
file will contain data including the date for 30 days worth, then on
day 31, day 1 will be erased and day 31 shall be appended to the file,
on Day 32, day 2 shall be erased and day 32 appended to file.
Therefore file will be updated each day after 30 days, but will only
contain 30 days worth of data.

Your help is greatly appreciated.  I have attached some sample data
(.csv file).

Regards,

Saj
--7250537.1078830524114.JavaMail.quiq.tekken
Content-Type: text/comma-separated-values; name=Results.csv
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename=Results.csv
Content-Description: Sample Data File (.csv)


Machine_ID:,Wheelco
Item:,item1
Tracking_No:,tr1
Date:,22/01/2004
Belt_No:,Mean_Value:,Range:,
1,0.00,0.00
2,0.00,0.00
Machine_ID:,Wheelco
Item:,item1
Tracking_No:,tr1
Date:,22/01/2004
Belt_No:,Mean_Value:,Range:,
1,0.00,0.00
Machine_ID:,WHEELCO
Item:,4
Tracking_No:,0
Date:,22/01/2004
Belt_No:,Mean_Value:,Range:,
1,-9.94,2.28
2,-3.89,1.79
3,-5.92,3.42
Machine_ID:,WHEELCO
Item:,M
Tracking_No:,2
Date:,22/01/2004
Belt_No:,Mean_Value:,Range:,
1,-9.44,1.96
2,-1.28,2.94
Machine_ID:,WHEELCO
Item:,L
Tracking_No:,L
Date:,22/01/2004
Belt_No:,Mean_Value:,Range:,
1,-0.68,2.20
2,3.42,2.45
3,-4.08,1.79
4,-1.05,1.79
Machine_ID:,WHEELCO
Item:,P
Tracking_No:,P
Date:,22/01/2004
Belt_No:,Mean_Value:,Range:,
1,-2.46,1.79
Machine_ID:,WHEELCO
Item:,O
Tracking_No:,P
Date:,22/01/2004
Belt_No:,Mean_Value:,Range:,
1,4.44,3.42
Machine_ID:,WHEELCO
Item:,TS
Tracking_No:,G
Date:,22/01/2004
Belt_No:,Mean_Value:,Range:,
1,-2.79,2.94
2,-4.22,3.34
Machine_ID:,WHEELCO
Item:,KK
Tracking_No:,GGG
Date:,22/01/2004
Belt_No:,Mean_Value:,Range:,
1,5.48,2.85
Machine_ID:,WHEELCO
Item:,9207-50031
Tracking_No:,769057002
Date:,22/01/2004
Belt_No:,Mean_Value:,Range:,
1,9.88,1.88
2,8.00,1.79
Machine_ID:,WHEELCO
Item:,9207-50031
Tracking_No:,769057002
Date:,22/01/2004
Belt_No:,Mean_Value:,Range:,
1,10.37,2.04
2,6.24,1.63
Machine_ID:,WHEELCO
Item:,9207-50031
Tracking_No:,769057002
Date:,22/01/2004
Belt_No:,Mean_Value:,Range:,
1,-0.03,1.96
Machine_ID:,WHEELCO
Item:,POP
Tracking_No:,POPI
Date:,05/02/2004
Belt_No:,Mean_Value:,Range:,
1,NaN,0.00
Machine_ID:,WHEELCO
Item:,L
Tracking_No:,Z
Date:,05/02/2004
Belt_No:,Mean_Value:,Range:,
1,-0.12,0.29
Machine_ID:,WHEELCO
Item:,L
Tracking_No:,U
Date:,05/02/2004
Belt_No:,Mean_Value:,Range:,
1,-0.12,0.29
Machine_ID:,WHEELCO
Item:,O
Tracking_No:,V
Date:,05/02/2004
Belt_No:,Mean_Value:,Range:,
1,-0.12,0.29
,0.00,0.00
Machine_ID:,
Item:,
Tracking_No:,
Date:,08/03/2004
Belt_No:,Mean_Value:,Range:,
1,0.00,0.00

--7250537.1078830524114.JavaMail.quiq.tekken--




How to create a 'circular' 30 day file in LabVIEW. the file...

2004-03-09 Thread saj
--2799187.1078830524917.JavaMail.quiq.tekken
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

How to create a 'circular' 30 day file in LabVIEW. the file will
contain data including the date for 30 days worth, then on day 31, day
1 will be erased etc...

How do I create a 30-day circular data (text) file in LabVIEW, the
file will contain data including the date for 30 days worth, then on
day 31, day 1 will be erased and day 31 shall be appended to the file,
on Day 32, day 2 shall be erased and day 32 appended to file etc...
Therefore file will be updated each day after 30 days, but will only
contain 30 days worth of data.

Your help is greatly appreciated.  I have attached some sample data
(.csv file).

Regards,

Saj
--2799187.1078830524917.JavaMail.quiq.tekken
Content-Type: text/comma-separated-values; name=Results.csv
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename=Results.csv
Content-Description: Sample Data File (.csv)


Machine_ID:,Wheelco
Item:,item1
Tracking_No:,tr1
Date:,22/01/2004
Belt_No:,Mean_Value:,Range:,
1,0.00,0.00
2,0.00,0.00
Machine_ID:,Wheelco
Item:,item1
Tracking_No:,tr1
Date:,22/01/2004
Belt_No:,Mean_Value:,Range:,
1,0.00,0.00
Machine_ID:,WHEELCO
Item:,4
Tracking_No:,0
Date:,22/01/2004
Belt_No:,Mean_Value:,Range:,
1,-9.94,2.28
2,-3.89,1.79
3,-5.92,3.42
Machine_ID:,WHEELCO
Item:,M
Tracking_No:,2
Date:,22/01/2004
Belt_No:,Mean_Value:,Range:,
1,-9.44,1.96
2,-1.28,2.94
Machine_ID:,WHEELCO
Item:,L
Tracking_No:,L
Date:,22/01/2004
Belt_No:,Mean_Value:,Range:,
1,-0.68,2.20
2,3.42,2.45
3,-4.08,1.79
4,-1.05,1.79
Machine_ID:,WHEELCO
Item:,P
Tracking_No:,P
Date:,22/01/2004
Belt_No:,Mean_Value:,Range:,
1,-2.46,1.79
Machine_ID:,WHEELCO
Item:,O
Tracking_No:,P
Date:,22/01/2004
Belt_No:,Mean_Value:,Range:,
1,4.44,3.42
Machine_ID:,WHEELCO
Item:,TS
Tracking_No:,G
Date:,22/01/2004
Belt_No:,Mean_Value:,Range:,
1,-2.79,2.94
2,-4.22,3.34
Machine_ID:,WHEELCO
Item:,KK
Tracking_No:,GGG
Date:,22/01/2004
Belt_No:,Mean_Value:,Range:,
1,5.48,2.85
Machine_ID:,WHEELCO
Item:,9207-50031
Tracking_No:,769057002
Date:,22/01/2004
Belt_No:,Mean_Value:,Range:,
1,9.88,1.88
2,8.00,1.79
Machine_ID:,WHEELCO
Item:,9207-50031
Tracking_No:,769057002
Date:,22/01/2004
Belt_No:,Mean_Value:,Range:,
1,10.37,2.04
2,6.24,1.63
Machine_ID:,WHEELCO
Item:,9207-50031
Tracking_No:,769057002
Date:,22/01/2004
Belt_No:,Mean_Value:,Range:,
1,-0.03,1.96
Machine_ID:,WHEELCO
Item:,POP
Tracking_No:,POPI
Date:,05/02/2004
Belt_No:,Mean_Value:,Range:,
1,NaN,0.00
Machine_ID:,WHEELCO
Item:,L
Tracking_No:,Z
Date:,05/02/2004
Belt_No:,Mean_Value:,Range:,
1,-0.12,0.29
Machine_ID:,WHEELCO
Item:,L
Tracking_No:,U
Date:,05/02/2004
Belt_No:,Mean_Value:,Range:,
1,-0.12,0.29
Machine_ID:,WHEELCO
Item:,O
Tracking_No:,V
Date:,05/02/2004
Belt_No:,Mean_Value:,Range:,
1,-0.12,0.29
,0.00,0.00
Machine_ID:,
Item:,
Tracking_No:,
Date:,08/03/2004
Belt_No:,Mean_Value:,Range:,
1,0.00,0.00

--2799187.1078830524917.JavaMail.quiq.tekken--




Re: How to set the correct time scale of VI ?

2004-03-09 Thread nayisoe
Change the Scaling factors to 2004 or whatever date you want which
is under X Scale formatting option.



Re: clearing the cursor legend programatically

2004-03-09 Thread bfeddeck
Problem solved. Thanks for the help.
Bert



Re: Extract value in last cell of spreadsheet Excell

2004-03-09 Thread skegsy
Is this number special in any way , ie , the highest or lowest number
or unique in some way to the rest of the data ? If so,this should this
will be very easy to do.



Re: backward compatibility problem V6.1 - V7

2004-03-09 Thread Ben
Could you post an example?

I switch back and forth between LV 6.1 and 7 regularly and I have not
experienced any issues.

I have even used LV7 to invoke a LV 6 VI and all of the clusters
worked fine.

I do beleive there was a change to the Waveform data type and of
course the new time format.

Trying to help,

Ben


a
href=http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101RPAGEID=261HRedirected=TrueHUserId=101_3529RFORMNUMBER=6;Ben
Rayner/a
a href=
http://volt.ni.com/niwc/common.jsp?page=products_certification_cldnode=10638;
Certified LabVIEW Developer /a
www.DSAutomation.com

Why do I feel like I am talking to myself?



Re: How to create a 'circular' 30 day file in LabVIEW. the file...

2004-03-09 Thread tmh
If the file is as small as your example, or even if it's several times
bigger, I would just read the whole file into a string, convert it to
a string array using Spreadsheet String to Array, use the array
functions to strip off the unwanted data and append the new data, then
convert and write the whole file out again.

If it's megabytes in size but you have plenty of spare disc space, you
could read the file in one line or block of lines at a time until you
reach the start of the part you want to keep, then open a new file and
start writing the lines/blocks out to the new file as you read them
in, then append the new data, then delete the old file and rename the
new one you have created. There may be a better solution in this case,
but this will certainly work.

I would be interested in others' comments though, because I once
wanted to maintain a rolling buffer like this for audio data (i.e. a
much faster data rate) and I didn't find any simple solutions on
offer.



Re: How to connect front panel items as before?

2004-03-09 Thread Ben
Aaaarrghhh!

Just my opinion of the auto-tool selection.

Ben



Re: How to connect front panel items as before?

2004-03-09 Thread Randall T
Thanks, I have tolerated the auto selection tool but find myself
hitting the space and the tab constantly. I agree that it can be
handy. Yet often it is like dragging fingernails across a chalkboard.



Re: Changing the brightness and contrast of an image displayed in a picture control

2004-03-09 Thread tmh
Pretty much, yes.

If you want to play around with image analysis, have a look at the
free ImageTool software from http://ddsdx.uthscsa.edu/dig/itdesc.html
- the brightness  contrast adjustment tool in this program
illustrates the idea very neatly.

(Mac users of course should get NIH Image from
http://rsb.info.nih.gov/nih-image/ )



Re: Dialog color that matches tab in the XP theme too

2004-03-09 Thread Ben
What is the 01 in the upper byte for?

I did not know that was used for anything.

Ben



I need to defend Labview from some co-workers previous experience.

2004-03-09 Thread James Bennett
I had a co-worker state the following
Labview does not have revision control nor compile function, which are
essential for a multi-site
utilization.  Is this true?  How do I defend Labview to ensure him
that Labview will work for our application?  He based his comments on
Labview 5 years ago.  What version was he using?



Re: Dialog color that matches tab in the XP theme too

2004-03-09 Thread Greg McKaskle
 What is the 01 in the upper byte for?
 
 I did not know that was used for anything.
 

The color format is xxrrggbb where xx means the uppers are reserved.  If 
xx is 00, then the lowers form the 24 bit rgb value.  If nonzero, then 
something else is going on and either the color is invalid or it has a 
symbolic meaning, which is what the 01 indicates.  And the other upper 
byte values are still reserved for future use, like alpha channel for 
example.  Anyway, 01yy means we can have 2^24 symbolic colors, and 
so far Apple and MS have used about fifty and the most common six are in 
the color picker.

Greg Mckaskle




Re: VI Link

2004-03-09 Thread Chris_de
Ich habs mir gerade noch einmal angeschaut. Wenn man das xy_Test.vi
mit einem Texteditor l=E4d steht eindeutig ein Verweis auf Setup.vi
drin. Nur voher der kommt und wie man in weg krieg...R=E4tsel
Vielleicht weiss ja Waldemar noch eine L=F6sung.



Re: How to connect front panel items as before?

2004-03-09 Thread Greg McKaskle
 Thanks, I have tolerated the auto selection tool but find myself
 hitting the space and the tab constantly. I agree that it can be
 handy. Yet often it is like dragging fingernails across a chalkboard.

The analogy I use at work is that when purchasing a car, some people buy 
an automatic transmission, some buy a standard.  Some people are lost 
without their choice, and some can switch effortlessly between them. 
Luckily you bought a car (LV) with both.  The switch for choosing is in 
the ToolsOptions dialog, and if you have it set for auto, you can 
shift-right click or use the palette to get to the manual ones 
temporarily, then shift tab to get back to auto.  Just a tab may work also.

Anyway, it is left up to the consumer to decide which they want to use. 
  Also, if you have suggestions about how to make the automatic less 
clumsy, please suggest them on the web site.

Greg McKaskle




RE: API Serial Functions

2004-03-09 Thread Lewis Drake
I am interested in having the capability (of not using VISA) for the same
reasons as you.  Please let me know if you are able to find a substitute for
the VISA serial functions.


Yes.  My company manufactures a variety of instruments that communicate
solely with serial.  We have been using NI-VISA and are happy with it,
but NI-VISA requires an installation that is often larger than the
application we supply to our customers, and there are licensing
restrictions for distribution. I was hoping to develop our own serial
functions in a much smaller package than NI-VISA.  This is why I am
interested in using the Windows API.  NI-VISA with its support for so
many kinds of instruments seems like overkill for our application.  When
the customer installs the NI-VISA driver they end up installing features
to support GPIB etc. that are not needed for our application.

Allen 

Lewis Drake
Process Automation Corporation
Belle Mead, NJ
908 359-1011
www.processauto.com





TCP/IP driven event / Interrupt

2004-03-09 Thread Toni
Hi all,

I thought about a better way of detecting the change of a value of a
data socket connectin (OPC) than a loop with 50ms delay which
continually polls the opc-server.
Is there a way in LV to react on events which are not induced by a
frontpanel input but by a change of a value  of a data socket
connection?
Or is there another way to react on a change of a value of a data
socket connection like an interrupt?

Best Regards,

Toni



Re: I need to defend Labview from some co-workers previous experience.

2004-03-09 Thread jhoskins
I went through the same thing were I work at. All the programmers here
work with visual basic 6. .NET and visual C++ to do a lot of hard core
coding simply because they have been doing it for years. I am the lab
manger here now and i purchased Labview 7 express. Now when it comes
to building test for production and other projects they come to me
because i can do them faster in labview than they can in any form of
coding. do this find something simple that you can do in labview (ie
connect to GPIB) have your coworker do the same and see who gets done
faster with same results.

HAHAHAHA you'll be drinking coffee for at least 30 min. before he
does.

god bless have fun (Isn't this exciting)



Re: I need to defend Labview from some co-workers previous experience.

2004-03-09 Thread BJD1613
Ok here we go I think you will get alot of replies but I guess I will
start

1.  LabVIEW does have source code control and can integrate with
probably one of the most powerful source code control programs Visual
Source Safe by Microsoft.

2.  As far as revision history, there is a setting to enable a popup
window to enter comments every time the vi is saved, closed, etc.
This revision history is kept on a vi basis.  So the history goes
wherever the vi goes.

3.  LabVIEW does its own compliling and doesn't burden the user with
the problems of syntax.  Ask your co worker how easy it is to make a
window with 3 buttons?  Actually ask them how long it will take?
Compare it to LV and there should be the real answer.

4.  So far I have not found 1 think that LV cannot do that C++ can.
The biggest benefit is the development time or lack of development
time when in LV.

I am just opening the can of worms I am sure others will reply and
pick up where I left off.

By the way I started as a C++ and Assembly programmer... :)



Re: Does LabVIEW support Shared Memory File created by VC++?

2004-03-09 Thread dirtyb15
--1813850.1078843123492.JavaMail.quiq.tekken
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

I am having trouble trying to do this also. I have a c++ program that
is creating and writing to a shared memory location.  I know that it
is working correctly becuase i read off that memory with several other
apps. I tried writing a dll with the same read code, but Labview
Crashes Everytime I run it.
Attached is a simple dll example i tried to trys to read one element
out of and array.(The arrays has 40 elements.)  Anyone have any
suggestions? (This is just the read mind you.)
--1813850.1078843123492.JavaMail.quiq.tekken
Content-Type: text/plain; name=sharedmemopen.txt
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename=sharedmemopen.txt
Content-Description: dll code for labview

#incl/* Call Library source file */

#include extcode.h
#include cvilvsb.h
#include fundtypes.h
#include hosttype.h
#include platdefines.h
#include windows.h
#include fcntl.h
#include sys/types.h
#include stdio.h
#include process.h
#include memory.h
extern C{
_declspec(dllexport) void SharedMemoryInit(float *x1);}

_declspec(dllexport) void SharedMemoryInit(float *x1)
{

HANDLE hMapObject;
float *MapView;

//share memory file init

hMapObject=OpenFileMapping(FILE_MAP_ALL_ACCESS,FALSE,rstk_shared_memory);

MapView=(float*)MapViewOfFileEx(hMapObject,FILE_MAP_ALL_ACCESS,0,0,0,0);


*x1=MapView[3];

}
--1813850.1078843123492.JavaMail.quiq.tekken--




Removing duplicates from string

2004-03-09 Thread Jim from DME
I have a string of comma delimited characters and I want to search and
remove any duplicate strings (i.e. John,Sally,Joe,John,Fred,John to
John,Sally,Joe,Fred). What is the easiest way to do this with LabVIEW?
Has something already been written that will do this?



Re: Errormessage, please help explain

2004-03-09 Thread Robert Cole
The most likely cause of that error is calling a function in a DLL
with the incorrect number of parameters. Too many or too few
parameters can mess things up quite well (trust me on this one - been
there, done that). Usually, no damage is done. Check the function in
your DLL and reproduce the parameter structure EXACTLY.

 Rob



Re: Fatal internal error:memory.cpp,line 593

2004-03-09 Thread wewe
typedef struct {
long dimSizes[2];
double Numeric[1];
} TD8;
typedef TD8 **TD8Hdl;

TD8Hdl *spec_map;

DSSetHandleSize(*spec_map, sizeof(int32)*2 + 100*10*sizeof(double) );

Greg could you please explain what is wrong with this because i am
still getting an exception error.



Re: I need to defend Labview from some co-workers previous experience.

2004-03-09 Thread Dennis Knutson
Five years ago, LabVIEW did have source code control and the ability
to create executables but only if you bought the professional version.
I use Visual Source Safe for my revision control and I'm not that
familiar with LabVIEW's built-in one. The application builder is and
was available separately but it' worth buying the pro version because
then you also get the diff tool to compare either VI's or hierarchies.



Re: How to create a 'circular' 30 day file in LabVIEW. the file...

2004-03-09 Thread Greg McKaskle
 I would be interested in others' comments though, because I once
 wanted to maintain a rolling buffer like this for audio data (i.e. a
 much faster data rate) and I didn't find any simple solutions on
 offer.

I didn't look too close at the sample data, but it is possible to use 
random access and do this without copying the contents of the file.  If 
the data collected over a day is fixed size or bounded, lets say that it 
fits in 1MB, then you right up front make your file contain 30 1MB 
chunks.  To read in a given day, you compute where in the file it will 
be, then read 1MB of info, which could be one record, N elements of an 
array, a flattened string, or N lines in a text file, just as long as 
you know what it takes to read the day's 1MB of info.

To overwrite a day, you seek to the same spot and do a write that 
corresponds to the read's parameters.  If you can't compute the position 
in the file without additional info, you place a header record either at 
the front or end of the file and put the info you need in there, even a 
full table of contents stating which date is in which record.  To use 
the header, you first read the header record, then compute the location 
(adding the header size to the position), then do the read or write like 
before.

And if the data isn't fixed or bounded, you can do this more generally 
by putting more info in the table of contents such as an array of record 
locations and putting more than 30 records in the file.  When a day is 
overwritten, you first overwrite the records belonging to that day, then 
append to the end of the file.  If the new record is smaller than the 
old one, you add the records to the Available list in the table of 
contents.  If the table of contents is no longer fixed size, you store 
it at the end of the file and possibly relocate it each time the file is 
updated.

Anyway, my point is that file I/O can be very efficient with the right 
approach, but it takes a bit of thought and some programming to achieve 
it, which is why with small files your suggestion is right on the money. 
  But when the files get large enough, play with the seek and offset 
fields on the file I/O blocks and you can make almost anything out of them.

Greg McKaskle




Re: Extract value in last cell of spreadsheet Excell

2004-03-09 Thread masterryo
The last row of the spreadsheet can vary from 01 to x hundreds or x
thousands and it is not possible to know it in advance, but when I
intend to work on the spreadsheet, the spreadsheet is created for some
days and is present on the computer.



Re: I need to defend Labview from some co-workers previous experience.

2004-03-09 Thread Greg McKaskle
 Labview does not have revision control nor compile function, which are
 essential for a multi-site
 utilization.  Is this true?

There are more detailed documents on the NI site.  You might want search 
there and forward the links to the coworker.

The short answer is that LV is compatible with numerous revision control 
systems, Source Safe, Perforce, etc.  If you purchase the professional 
edition, the revision control will be somewhat more integrated into the 
LV menus, but you can use the revision control client app without this.

All LV VIs are compiled, but I don't know what is meant by having a 
compile function.  Perhaps the Dr. VI article on the LV compiler will 
answer his question, or perhaps he wants a make system.

And of course, feel free to ask more detailed questions or have him post 
the questions here directly.  LV has been used for quite large projects, 
and often hearing of other people's usage is better than an analytical 
listing of features.

Greg McKaskle




RE: Detecting Lurking VIs

2004-03-09 Thread Paul F. Sullivan
LabVIEWers,

Prodded by Dan Bookwalter and assured by Rolf Kalbermatter that I was 
not overlooking the obvious, I have upgraded Ghost Buster to launch 
different code for different versions of LabVIEW. The new release 
warns of minimized VIs in LabVIEW 7 and up. Visit
http://www.sullutions.com/LabVIEW.html to read about the improvements 
and download the new version (royalty free for personal or company 
internal use).

In LabVIEW 7.0 on my Mac, the launcher stays in memory, even though I 
think I have killed all references to it. In 6.02 and 6.1, the 
launcher leaves as soon as Ghost Buster 6 is running, as I expect. If 
you know what I am doing wrong,  please let me know and I'll fix it 
in the next version.

--
EnWirementally,
Paul F. Sullivan


SULLutions  (781)769-6869
when a single discipline is not enough
	visit http://www.SULLutions.com






How to save output image after IMAQ-FFT to the file

2004-03-09 Thread nelup
When I apply IMAQ FFT on monochromatic image and display complex
destination image by IMAQ WindDraw, I get picture which I am not able
to save to the file. I tried various conversions from complex image to
bitmap (array), but result was everytime different from that got by
IMAQ WindDraw.

I thank for any help.



Re: Extract value in last cell of spreadsheet Excell

2004-03-09 Thread Chris_de
You can use the UsedRange property of excel. This will give you the
last cell used in your excel worksheet.



Re: Removing duplicates from string

2004-03-09 Thread Chris_de
I would transfer the whole list in an array, sort it compare each item
with the item before, if it is equal than delete it.



Re: Dialog color that matches tab in the XP theme too

2004-03-09 Thread Robert Cole
We got away from using system colours on all of our GUIs for just this
reason. Explicitly stated colours allow us to have a consistent
looking GUI on whatever OS. Might be an idea so that whatever scheme
the OS producers come up with, the GUI will still be usable. BTW, we
had some comments in the code with system colurs and they disappeared
against the background on Windoze XP.

 Rob



Re: I need to defend Labview from some co-workers previous experience.

2004-03-09 Thread Robert Cole
Five years ago that should have been LabVIEW 4 or 5. But then, as
we've seen here, some people keep versions around forever. I have
always worked with the professional packages, so I've always had
access to compilers for LabVIEW.

Where I work now, we use Perforce for revision control. It works
great. I've also used Visual Source Safe and I'll stick to Perforce,
thanks. You can even set the client to automatically sign out the code
if you change to edit mode on the diagram.

AS others have said - LabVIEW excels at equipment connectivity. An
example from my past: a C programmer had spent 2.5 days building a
terminal type of program to talk to our equipment. He gave me the DLL
that he was using for communications and watched as I built the same
program in LabVIEW and completed in 15 minutes. His comment was that
he was probably going to be relegated to supporting the old code while
I made the new code and for the most part he was right.

 Rob



Dlls working fine in LabVIEW 6.1 dont do so in LabVIEW 7.0

2004-03-09 Thread MKris
We are using the following dlls from Microstar Labs for one of our
Microstar DSP boards :


a.  DAPIO32.dll : DAPcell client I/O library

b.  Diostub.dll

We use these in the main Vi  called DAPControl.vi
We currently run this VI in LV 6.1 - its working fine for the last
several months. When we open this VI in LV 7.0 the VI loads (i.e.
there is no problem reported by LV as far any subvi/dll is concerned),
but during run time it gives an error. Specifically the Function
DAPLinePut does not work - when trying to input offset values  set
display.



Re: create all combinations elements 1D array of cluster of arrays

2004-03-09 Thread Chris_de
Could you please post the input structure. I am not quite sure if I
understand what you want.

Chris



indicator not updating from global file on network

2004-03-09 Thread mec1
A labview program is running locally but accessing a global variable
on a shared network.  If I view the diagram with the lightbulb
turned on, the variable value on the diagram is changing, but the
variable value on the front panel does not change.  Any suggestions?



How I pass a cluster with array of various data type (double, I32, string)

2004-03-09 Thread Filippo
I have to pass from a VI to a Microsoft Visual C++ DLL, a cluster with
some arrays of various data type. The problem is with Double array,
that during Visual C debug is incorrect:the dimension is correct
passed, but not array data. In the DLL I have inserted the C code
genereted by LabVIEW. I tried to pass a cluster of only one array of
double, and the results is the same. Then, I tried to pass a cluster
with scalar number and the result is correct in only one case. If the
double data is the first in the cluster, the result is correct; if the
first is another data type, such as integer or boolean, the double
data is incorrect during the debug of the DLL.
This is the code of my DLL:

// LabViewParam.cpp : Defines the entry point for the DLL application.
//

#include stdafx.h
#include LabViewParam.h
#include extcode.h

BOOL APIENTRY DllMain( HANDLE hModule,
   DWORD  ul_reason_for_call,
   LPVOID lpReserved
 )
{
switch (ul_reason_for_call)
{
case DLL_PROCESS_ATTACH:
case DLL_THREAD_ATTACH:
case DLL_THREAD_DETACH:
case DLL_PROCESS_DETACH:
break;
}
return TRUE;
}


typedef struct {
long dimSize;
double elt[1];
} TD2;
typedef TD2 **TD2Hdl;

typedef struct {
TD2Hdl elt1;
} TD1;


// This is an example of an exported variable
LABVIEWPARAM_API int nLabViewParamPass=0;

// This is an example of an exported function.
LABVIEWPARAM_API int LabViewParamPass(TD1 *pparam)
{
double parametro;
int i;
for (i=0;i(**(*pparam).elt1).dimSize;i++)
{
parametro=(**(*pparam).elt1).elt[i];
}
return 42;
}

// This is the constructor of a class that has been exported.
// see LabViewParam.h for the class definition
CLabViewParam::CLabViewParam()
{
return;
}


I use LabVIEW 7.0 and Windows XP.
Sorry for my english.
Thanks to every one for your suggestions.

Filippo



control exe from labview

2004-03-09 Thread pshuk
I was wondering is there a way that I can run and pass parameters to
exe file from the labview program. If yes then please enlighten me..

In anticipation of reply

cheers
Priiyank



Re: How do you clone propety nodes?

2004-03-09 Thread john_c_m
Great, Thanks!

(Wish I would have asked this one a long time ago!)



What to install for office/desktop use only?

2004-03-09 Thread AGokce
I'd like to write Labview programs on my desktop, which does\will not
have any DAQ hardware attached to it. Therefore, I think I do not have
to choose 'complete installation', but I do not know what components
to leave out. Any advice?



Re: create all combinations elements 1D array of cluster of arrays

2004-03-09 Thread MattI
Thanks for even looking at my vague question.

Basically, what I am trying to do is create all possible combinations
of values of data from different sets.
Let's say I have
set1 contains the values 1,2,3,4
set2 contains the values a,b,c,d
set3 contains the values A,B,C,D
set4 contains the values X,Y,Z
My desired output, all combinations of the above sets, is a set of
data with the values:
1aAX
1aAY
1aAZ
1aBX
1aBY
1aBZ
..
1aDZ
..
1bAX
1bAY
..
4dDZ

I want to write code that can handle any # of sets of any size each.

I think I have figured out a way to do this.  (After giving up at work
last night, it came to me while falling asleep.)
I am sort of flattening the data by treating everything (even if #s)
as a string, and merely concatenating the combinations exactly as
shown above.  (Well, I have to do this repeatedly -- I'm still working
on the code for that.)
That way, my output data retains the same dimensionality (1D, that is)
regardless of the # of sets or their size.

I'll let you know if I fail at this, but I think I am on the right
track now.



Prompting user input in LabVIEW

2004-03-09 Thread Arrington
We've written a number of VIs that require user input, and we'd like
for the user to be able to begin typing right away, rather than having
to use the mouse or the Tab key to move the cursor to the first text
field.  What's a good way of doing this?  Thank you very much.
-Dan



Re: when I press install in the autorun page it doesn't work

2004-03-09 Thread Craig H.
college student,

In this case it would be really helpful to know which operating system
you are attempting to install LabVIEW on. Make sure that you are
installing your LabVIEW CD on a compatible operating system.

You may also navigate to the setup.exe file on the CD itself. You will
want to open a file browser and open the LabVIEW CD within the file
browser to find setup.exe. You can also click on =91Explore CD=92 link on
the autorun page, navigate to the setup.exe file, and run it.

If you are still having problems please post back with more detail on
the system you are attempting to install LabVIEW on (OS, LabVIEW
version, etc.) Good luck!

Craig H.
National Instruments



Is there a LabView(6.1) VI for Hameg HM 8130 serial interface

2004-03-09 Thread harbouch
HM 8130 is a function generator



Re: Vi Text Modification?

2004-03-09 Thread DD
Just change the foreground and background colors of the indicator to
transparent.

With the brush tool, right click on the indicator.  In the pop-up, select T
for transparent.  If necessary, use the space bar to switch between
foreground and background to change both.

jpo [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 Hi

 I am looking for some direction in how to modify the appearance of a
 string indicator in my vi's front panel.  I would like to remove the
 rectangular box that surrounds the text to make it appear as it is a
 just regular text on the front panel.  The reason I want to do this is
 that I would like be able to modify the text and its position
 dynamically in the program.

 Thanks
 John






Re: Can't control the HP3325b (error code:Hex:BFFA0010)

2004-03-09 Thread Shea C
MusicLive,

Sorry for the long delay! You can make sure that LabVIEW is using the
instrument driver correctly before you even connect it to your device.
Specifically in the Getting Started.vi you can set the simulate
field equal to one in the options string of this VI. Below is a great
tutorial that should get you started using this IVI driver. I wish you
the best of luck! Let me know if you need any more assistance with
this issue.

http://zone.ni.com/devzone/conceptd.nsf/webmain/d839bfb01c77d8ca86256a450063e9b0?OpenDocument

Shea Clymer
Applications Engineer



collect and buffer position information from sinusoidal encoder

2004-03-09 Thread pjr
I need hardware that would allow me to collect and buffer, then
display, position data from a encoder with a sinusoidal output.



Re: Who used Protection Plus system?

2004-03-09 Thread BeckyB
Hello -

Are you trying to use the Protection Plus System to protect an
application built out of LabVIEW?  If that is the case, a
href=http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101RPAGEID=135HOID=50650008000E1BUCATEGORY_0=_49_%24_6_UCATEGORY_S=0USEARCHCONTEXT_QUESTION_0=protection+plusUSEARCHCONTEXT_QUESTION_S=0;this/a
discussion forum post provides a few suggestions for protection
methods.  As for specific use of the Protection Plus System, I am not
aware of anyone in office who has tested with that.  Hopefully another
customer will reply.

Good luck with your project.  Have a great day!

Becky B.
Applications Engineer
National Instruments



Re: indicator not updating from global file on network

2004-03-09 Thread Dr. Imad
If you set the vi property-execution to user interface, it may help

Right click on the vi icon,
select vi properties
execution- preffered execution system



Re: Is there a LabView(6.1) VI for Hameg HM 8130 serial interface

2004-03-09 Thread Dennis Knutson
Yes there is. The driver is available A
href=http://zone.ni.com/idnet97.nsf/9b2b33e1993d877786256436006ec498/ce4b7203e9468141862568ab005fbb1e?OpenDocument;here/A.
For future reference, the A
href=http://www.ni.com/devzone/idnet/;Instrument Driver Network/A
is the place to start searching for drivers.



Re: Error code -2146827284 when trying to programmatically...

2004-03-09 Thread Robert M
Hello Gavin,

You are probably getting this error because you are trying to access
cells outside the maximum range in Excel.  A Microsoft Excel
spreadsheet is limited to 256 columns and 65,536 rows.  This a
href=3Dhttp://digital.ni.com/public.nsf/websearch/23EF6DD43866726C86256D5C0=
0687E51?OpenDocumentKnowledge
Base/a has further information.

If you are interested in a more robust data tool for managing,
inspecting, analyzing and reporting test Data, check out a
href=3Dhttp://sine.ni.com/apps/we/nioc.vp?cid=3D5050lang=3DUSDIAdem/a.
It can handle data sets with over 1 billion values.

If none of these suggestions help, or if I=92m not correctly
understanding your issue, please post the software and versions you
are using, the applicable portions of your code, and any other
information that may help, and I=92ll be happy to look further into it.

Have a nice day!

Robert M
Applications Engineer
National Instruments



How do you keep track of a series of elapsed times in an array or file?

2004-03-09 Thread tod man
I have a digital output that turns on and off for different periods of
time. I am using the elapled time function to measure the time it is
on and I need to store this time value in an array or in a file
whenever the output goes off. I am having trouble getting my program
to store the value, does anyone have any ideas?



Re: Understanding the Pattern-Matching algorithm

2004-03-09 Thread Julie S
Most likely the failure is due to the fact that the pattern is faint
and there is a lot of noise which blurs the pattern even more.  For
more detailed information on the Pattern Matching algorithm, take a
look at the following resources.

How to Match Patterns or Shapes in IMAQ Vision?
http://digital.ni.com/public.nsf/websearch/862567530005F09C86256754005ED3D8

IMAQ Vision for LabVIEW User Manual, page 5-17:
http://digital.ni.com/manuals.nsf/websearch/CDEE235576535B2586256D3C005FBC98?OpenDocumentnode=132090_US

IMAQ Vision Concepts Manual, chapter 12
http://digital.ni.com/manuals.nsf/websearch/55A90080787F932586256D3C0065F4DA?OpenDocumentnode=132090_US

Hope this helps -
Julie S
Applications Engineer
National Instruments



Re: Prompting user input in LabVIEW

2004-03-09 Thread Dr. Imad
Use the Key Focus property   to set the focus on the input string.
The input string will be automatically selected



running exe files in labview (or alternatives)

2004-03-09 Thread gqstyle09
I am currently trying to make LabVIEW communicate with a DT3155 frame
grabber. It reads exe files programmed in c. I initially wanted to
call the dll libraries of the frame grabber and rewrite the code into
sub-VI's, but then realized it would be much too big for me to make.
Is there any way to call on exe files in LabVIEW, so that I can run a
program whenever I wanted to perform a function? And if not, what
other options can I consider utilizing? Sorry if this question is too
basic, I'm just starting to learn LabVIEW. Thanks in advance for any
help you guys can offer to me. ~Josh



How to manage different instrument models with one driver?

2004-03-09 Thread Freddy1
Hi,

I have a driver already developed for an instrument and want to
incorporate another model into it.  These instruments have the nearly
the same instruction set except one is a subset of the other. I would
like to know the standard way or the NI way of combining these
drivers.  Is there a way of storing global data?  I'm using LabView
6.0.

Thanks in advance.



Re: How to put signal in spreadsheet

2004-03-09 Thread Julie S
Ann - The VIs you mentioned are not provided by NI, but they do sound
like they use functions from the NI-IMAQ driver, which is used with
National Instruments image acquisition boards.
If you have the IMAQ Vision software, it will be very easy to take the
average signal of the images.  Here is an example program that will do
this for you:

IMAQ Running Average in LabVIEW:
http://sine.ni.com/apps/we/niepd_web_display.display_epd4?p_guid=BCF19BC556AA1487E034080020E74861p_node=DZ52511p_source=External

There are also examples that are shipped with LabVIEW and the IMAQ
driver to acquire and save images.  They are located in the folder
C:\Program Files\National Instruments\LabVIEW\examples\IMAQ .

Hope this helps-
Julie S
Applications Engineer
National Instruments



Re: Fire an Event automaticaly

2004-03-09 Thread John Rich
I agree that always was a little strong.  There are many instances
where the timeout could be avoided.  However, in my experience it is
good practice to include the timeout in most instances as it
eliminates the possibility that you get stuck endlessly waiting for an
event to occur and you don't want to trigger an event.  Certainly with
proper programming techniques this problem can be avoided (the event
could include the front panel stop button, e.g.), but since most event
structures are already in a loop so that they can handle more than one
event, including an empty timeout event results in very little
overhead. I can think of few instances where the timeout event is
detrimental.



Re: Dialog color that matches tab in the XP theme too

2004-03-09 Thread Mads
Thanks Greg!

The color I was looking for is 16777271,
works as expected (the color picker just shows it as black though).
Can we have more system colors on the palette next time...?:-)



Re: Need help hooking up Omega Vacuum Sensor?

2004-03-09 Thread Craig H.
HolzschuM,

You will find wiring information as well as other configuration info
at the a
href=http://www.ni.com/pdf/products/us/4daqsc253-265_194-196.pdfSCC
Configuration Guide/a.

Here is another link that discusses how to configure the a
href=http://www.ni.com/pdf/products/us/4daqsc251-52_266-69_194-96.pdfSC-2345
Carrier/a. If these resources fail to address your concern please
post back with more details (which feed-through module you are using,
etc.) Good luck!

Craig H.
National Instruments



Re: Vi Text Modification?

2004-03-09 Thread Dennis Knutson
The answer to your question is in my answer to the original post. If
you right click on the board with the color tool, you'll see the box
in the lower left corner with two different colors. One is grey and
the other has a T in it? These are the foreground and background
colors of the border (I don't know which is which). The T box has a
white line around it. This is the one that's currently selected. If
you hit the space bar once, the white box disappears and you can apply
the selected color to both foreground and background. Hit the space
bar again, and the white box moves to the left around the grey. The
selected color will then apply only to that area.



Read Key(String).vi and spaces

2004-03-09 Thread AstroMed Glen
Hello all,

   I am having some trouble with the Read Key(String).vi. One of
   the strings I am reading in ends in spaces. This vi seems to want to
   truncate any trailing spaces. I don't want it to do that. Is there
   anyway of modifing the vi to not truncate spaces? Or should I not
   allow spaces to be written?

Thanks in advance,
Glen



why do i see negative peaks when reading for bragg...

2004-03-09 Thread nebb
why do i see negative peaks when reading for bragg wavelengths from a
photodetector using a A/D indicators?

i dont understand why i see negative peaks on my A/D indicator when i
use it to read bragg wavelengths from a photodetector for voltage vs
time, yet no negative peaks will appear for a waveform graph, can
anyone explain? what exactly is this A/D value representing? thnks



Re: Error while getting directory details.

2004-03-09 Thread balajikasthuri
Thanks for your help.It worked fine.



Re: Changing the brightness and contrast of an image displayed in a picture control

2004-03-09 Thread Ben
THanks for the link I will chase it down.

I did mention that this topic interests me and did not claim to be an
expert, didn't I?

Thank tmh!

Ben



binary data from serial port?

2004-03-09 Thread nbort
I want to be able to read binary data from a serial port using
labview. The packets are of known length (in even bytes) but they are
not ascii. I am worried that if i read them as ascii first and then
try to convert, there will be problems such as with special characters
appearing



Re: Dialog color that matches tab in the XP theme too

2004-03-09 Thread Mads
We used to do that ourselves; but at a point we decided that it looked
better to follow the windows theme. It takes some time to ensure that
it looks OK on the most common themes, but it makes things look more
native for the users.



Re: Dialog color that matches tab in the XP theme too

2004-03-09 Thread Mads
I've overlooked the dialog label(!)...in this case we haven't used
separate labels so the coloring Greg helped with was nice to get, but
I'll use the dialog label in the future.



Re: I want an appended array (of Strings) to write to an excel file.

2004-03-09 Thread Michael Munroe
There are two things that need to be fixed.
1. You state that you are using the Write Character to spreadsheet,
but your code shows the write to spreadsheet file which requires an
array of numbers.  You need to replace it with the Write Characters
to File which will take only a single string.
2. Insert Array to Spreadsheet String to convert the array of strings
into a single string.  Specify a format of %s.

Michael Munroe
Certified LabVIEW Developer
ABCDEF



Re: Common Dialog Activex control not loading

2004-03-09 Thread Gavin Braithwaite
Wiebe,
yes the problem was pretty persistent even on executables generated by
the App builder.  Still not totally happy with the solution!



Re: Read Key(String).vi and spaces

2004-03-09 Thread Dennis Knutson
I haven't dug very far into the config file VIs but the easiest thing
to do is to enclose all of your strings with quote marks (). If you
do that, key values with trailing spaces are read correctly.



How to reset the main front panel?

2004-03-09 Thread lihui
Hi all,
My program contains many subvis and loops controlled by buttons in my
mainVI. Some of the subvis are use as display panel that will show
results. My Qn is this: Is there any way that by pressing a button on
my mainvi, i reset the FP of my mainvi and close the subvi? thanks.

further info: my mainvi FP contains some output string data, buttons,
enum buttons, and all this must be reset to default value.



creating a LabView VI from LabWindows application

2004-03-09 Thread [EMAIL PROTECTED]
What is the process of turning a LabWindows application into LabView
VI.



1000 Responses

2004-03-09 Thread Greg McKaskle2
I just wanted to congratulate Ben.  I understand he just passed the
1000 mark.  His responses are always helpful and well thought out.

If you make it to NIWeek, be sure to introduce yourself, or maybe the
enthusiasts should wear a special hat or something -- with a propellor
or blinking LEDs.  Anyway, congratulations and thanks for your time
and effort.

Greg McKaskle



Re: Fatal internal error:memory.cpp,line 593

2004-03-09 Thread Greg McKaskle
 typedef struct {
   long dimSizes[2];
   double Numeric[1];
   } TD8;
 typedef TD8 **TD8Hdl;
 
 TD8Hdl *spec_map;
 
 DSSetHandleSize(*spec_map, sizeof(int32)*2 + 100*10*sizeof(double) );
 
 Greg could you please explain what is wrong with this because i am
 still getting an exception error.

You are only giving a small snippet of code, but it looks like you have 
a variable, spec_map with an uninitialized value.  When calling 
DSSetHandleSize, you are dereferencing this variable and you are 
probably crashing right there, before you even make the function call. 
And if you get lucky and the value is able to be dereferenced, the DSSet 
function will be asked to resize a nonexistant handle and will hopefully 
return an error that the argument is invalid.

To allocate a handle, you use DSNewHandle which is used as *spec_map= 
DSNewHandle(size);

Normally you would be given a param where the handle is already 
allocated and just needs to be resized.  In that case, use the 
SetHandleSize.

Greg McKaskle




Re: signal conditioning

2004-03-09 Thread Process Systems
If you are intent on using thermocouples, then I would highly recomend
signal conditioning, as at room temperatures, the millivolt output of
almost all thermocouples is very low (depends on the type of
thermocuple). Thermocouple-specific signal conditioning will also
provide for the required signal characterization (thermocouples are
not linear devices).
The other problem you mention, calibration, is also critical with
thermocouples especially if you are operating in the room temperature
and lower ranges. You have to have a method of compensating for the
reference junction temperature (assuming that it remains constant,
which in an outdoor environment, is questionable).
Having said all of the above, I would highly recomend that you elect
to use RTD's to measure your temperatures. The first gain is that you
can calibrate them with a fixed value resistor substitution. There is
no reference junction ambiguity/possible-variable to deal with.
You will require signal conditioning with and RTD, but the cost is
similar to that for a thermocouple, and you circumvent all of the
problems of thermocouples. The second big advantage with RTD's is that
you can wire to them with ordinary copper wire. With thermocouples,
you must use specific thermocouple wire (read expensive) from the
thermocouple terminals to the point at which you measure your
reference junction. If there is some distance to your thermocouple,
the cost of wire can outstrip the cost of the thermocouple itself!
Which ever path you decide to take, NI has good signal conditioners
listed on their site/in their catalog.
Hope this is of some helpt to you.
Dave



Re: How I pass a cluster with array of various data type (double,

2004-03-09 Thread Greg McKaskle
 I have to pass from a VI to a Microsoft Visual C++ DLL, a cluster with
 some arrays of various data type. The problem is with Double array,
 that during Visual C debug is incorrect:the dimension is correct
 passed, but not array data. In the DLL I have inserted the C code
 genereted by LabVIEW. I tried to pass a cluster of only one array of
 double, and the results is the same. Then, I tried to pass a cluster
 with scalar number and the result is correct in only one case. If the
 double data is the first in the cluster, the result is correct; if the
 first is another data type, such as integer or boolean, the double
 data is incorrect during the debug of the DLL.

It is hard tell for sure, but you might have alignment problems.  The 
key symptom is that you can pass a cluster of big and small fine, but 
small big doesn't pass correctly.  You might also test this by seeing 
what the size of your struct is.  For Boolean and Double, sizeof() 
should return nine bytes no matter what order the array is in.  If you 
are getting different sizes, you have two options.  You can either order 
them such that the sizes work, or you can build the EXE or a wrapper DLL 
so that the alignment matches LV's native alignment.

Greg McKaskle




hide front panel when opened

2004-03-09 Thread WPS
I have a VI running as a back ground task (VI_A) to the main VI
(VI_B).  VI_B starts VI_A and the idea is that VI_A will be minimised
on startup.  There is a button on VI_B to restore the window and a
button on VI_A to hide the window and return to VI_B.

This is all working OK, I open VI_A front panel when called, VI_B
minimises VI_A straight away etc, I am using the WINUTIL.LLB functions
to perform this.  The problem I have is VI_A front panel is visible
upon start up for a couple of seconds (there is no real delay in my
execution to minimise).  I have tried setting VI_A to be at teh back
within VI_A but still it appears at the front for a couple of seconds.

Does anyone have any suggestions as to why this is occuring.

Cheers,
Wayne



convert hex string to ascii charactors

2004-03-09 Thread tomsch1
How can I simply convert a string 010A to the ascii charactors
reprsented by 0x01h, 0x0Ah??

my string could be of any length.



Re: 1000 Responses

2004-03-09 Thread Enrique
conbG/bratulations



How can I view an llb file, or vi file without LabView?

2004-03-09 Thread CenkCankCunk
I dont have Labview program. I want to open .llb and .vi files,
but I cant with microsoft word, notepad etc.
Thanks



Re: how to do a loop for controls

2004-03-09 Thread parimala
Its great.you have reduced many things.But why all the values are not
getting plotted in a single run as the previous one vi that i have
sent.In this it is plotting one by one for every run.



Stereo Microphone Sound Cards

2004-03-09 Thread Les Hammer
LabVIEW has a set of SI-Config/Read/etc VI's that take data from the
computer's microphone input.  A configuration option is
Mono-versus-Stereo.  Does anybody have a list (or even one example) of
Stereo sound input cards that work with these LabVIEW SI VIs?
(Including information such as: Microphone or Line level)

Thanks,

[EMAIL PROTECTED]



How does Pulse Params Vi determine pulse width

2004-03-09 Thread Lancer
I need to know how the PulseParams vi calculate pulse width, rise/fall
time? Is it based on the standard 10/90 method or something else? How
does it determine what is a valid pulse? What is the Delay
parameter and how do you use it?