Re: Datasocket, Linux, and C

2004-02-09 Thread George Gatling (Contractor)
These URLs are interesting reading... there is some confusion I think about 
datasocket buffering...  I think (not sure though) there were some 
significant changes in DS between LV5/6 and LV7 and maybe these changes 
contribute to the confusion.

I am running two DS apps now... one is simple and in a lab.  All the 
computers involved are even on the same switch and no buffering is even 
wanted... most recent value is all we want.

But the other app is more interesting.  It is based in Alaska.  I have 
antennas and spectrum analyzers spread over about 500 miles.  Each site 
uses a laptop to talk to the analyzer and functions as a data source.  The 
laptops connections to the Internet are all flavors... dial-up accounts, 
cable modems, lans, and dsl.

From a central location I have a controlling computer which subscribes to 
all the laptops data and publishes new settings for the analyzers.  I 
needed to catch all (or as many as possible) of the data from the 
laptops.  Using a queue on the laptop (to decouple data socket and DAQ) I 
can resent any data that didn't go the first time (ie datasocket 
error).  Then on the control side I uses datasockets buffered read.

With this I lose very few data packets.  My first pass at this project I 
wrote my own TCP client/server and experienced much higher loss 
rates.  TCP, after all, is not error free.  The DS based system is new (I 
am in Alaska now in fact) but should run pretty continuously over the next 
months... years..  so soon I will know exactly how robust DS is.  :)

Therefore I think much of the angst about buffering is probably 
misdirected.  BUT, I do think datasocket is missing some useful 
functionality and since I am all warmed up...

1.  are there any subscribers connected to the data I am publishing?
2.  are there any writers connected to the data I am writing?
3.  what URLs currently exist on the server?
4.  statistics on data transferred to and from the server by url. (just for 
fun)

the first three must exist because the datasocket server can display all of 
this information on its diagnostics panel.  When can we users get at it 
without resorting to crazy dll calls?

If anyone here is interested in datasocket, let me know.  I am happy to 
share my error handling and buffering code, which seems to work pretty 
well, for me at least.

George


Greg explains what DS is:
http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&threadm=3CB758BF.809%40austin.rr.com&rnum=1&prev=/groups%3Fq%3Dlabview%2B%2522data%2Bsocket%2522%2Budp%26hl%3Den%26lr%3D%26ie%3DUTF-8%26oe%3DUTF-8%26selm%3D3CB758BF.809%2540austin.rr.com%26rnum%3D1
Discussion of DS benefits and application:
http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&threadm=50650005002E110100-1042324653000%40exchange.ni.com&rnum=6&prev=/groups%3Fq%3Dlabview%2B%2522data%2Bsocket%2522%2Btcp%26hl%3Den%26lr%3D%26ie%3DUTF-8%26oe%3DUTF-8%26selm%3D50650005002E110100-1042324653000%2540exchange.ni.com%26rnum%3D6
Using DS through a firewall:
http://digital.ni.com/public.nsf/3efedde4322fef19862567740067f3cc/fcf8a1464bd2f6d686256b59007c9a6f?OpenDocument
-Kevin




Re: lvanlys.dll Real IFT function change from version 6.1 to version 7

2004-02-09 Thread LocalDSP
Could you please post your actual benchmark VI with your input test
data saved as default (or optionally embedded as constants on the
block diagram) and we will of course take a closer look at the issues.

Thank you



automatically changing min and max values in a colour ramp while the VI is running

2004-02-09 Thread lorry
Hello,

I am relatively new to LabVIEW and have the following question.

I am using a colour ramp within a VI to show a colour dependent on a
value I am measuring against defined minimum and maximum values.
However I need these minimum and maximum values to change
automatically based on other calculations within the VI whilst it is
running.

Does anyone know how to wire in these three inputs (minimum, maximum
and current value) into a colour ramp? From what I can see it is only
possible to wire in the current value and define the minimum and
maximum values by directly editing onto the front panel during use.

Any help on the matter would be greatly appreciated.

With thanks



How to determine the maxium value of scan backlog?

2004-02-09 Thread Jian
If the buffer size and scan rate is given, how can we determind the
maxium value of scan backlog allowed? Thank you in advance.



Re: menu ring

2004-02-09 Thread Les Hammer
Right click on the ring, and select "Create - Property Node."  Then on
the node, change it to "Write" and change the property to "Value."
Now, wire the default value into it, and set it to execute after you
have used the value that the user sets into the manu ring.

Don't know if it's "clean", but it should work.  :-)

Les Hammer



RE: Sub panel size

2004-02-09 Thread Jim Kring
John,

The SubPanel control has size and position attributes that can be set using
VI Server.  You can inspect the size of the target VI's FP/Controls and
adjust the SubPanel.

-Jim

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of John Brohan
> Sent: Monday, February 09, 2004 1:17 PM
> To: [EMAIL PROTECTED]
> Subject: Sub panel size
> 
> 
> Hello
> I want to use a SubPanel to hold different sized programs. 
> Specifically I'd like to put the program into the middle of 
> the subpanel. Any Ideas.
> 
> I am using a small vi with USR to communicate data between 
> teh sub-panel program and its caller. This seems to work 
> fine. The caller decides to stop teh sub panel program and 
> sets a value in a USR. Seems to work even when using build 
> application.
> 
> Yours Sincerely
> John Brohan
> 
> 




menu ring

2004-02-09 Thread baroque guitar player
Hi:

I am using a control called "Menu Ring" and I want after selecting an
item it reinitializes to default vaule.

How I can do it?

Thanks



Re: Image.ctl

2004-02-09 Thread Alex B
Hi,

In my case it doesn't.  I just upgraded Vision with development module
and deployment engine and my existing software can't find IMAQ
Image.ctl  I tried to install IMAQ 2.6 and it saying it's nothing to
install.  I'm wondering, should I re-install all over again or I
should discover a magic option (like Repair in old 2.5.x installer) in
2.6 installer, which will help me to re-install it.

Regards,
Alex B



Re: problem about datasocket and activex

2004-02-09 Thread Matthew C
Hello plainman,

Thank you for contacting National Instruments.

It appears that you are having problems displaying embedded ActiveX
controls in a web page on a remote client.

ActiveX controls embedded within an application do not display on a
remote client because they are dynamically linked to files that reside
on the local machine.  You may be able to work around this problem by
adding all of the applicable .ocx files to each client machine.

I hope this helps!  Let me know if you have further questions.

Matthew C
Applications Engineer
National Instruments



Re: How can I use DAQ Assistant Express VI to generate a ramp...

2004-02-09 Thread Chautap
Thanks Matthew C!
I found another way to generate ramp pattern by using Simulate
Arbitary Signal VI. I find the new LabView7 very interesting.

Dr. Tapas Chaudhuri
National Renewable Energy Laboratory



Re: LabVIEW 7 USB Camera

2004-02-09 Thread dmp
Actually, you will need a USB driver for the camera.  There are
several third party organizations which make such drivers.  For
example, Inventeering.com has an ActiveX Control that interfaces to
USB Cameras, as well as LabVIEW examples.  You might also check out
http://www.geocities.com/irene_he/IVision.html or Peter Parente's
webcam drivers (www.mindofpete.org).

For more information, you may want to post this question on the Vision
discussion forum.  Here's an example of a thread from that forum on
USB cameras:
http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RNAME=ViewQuestion&HOID=50650008009B7E&ECategory=Vision

I hope this helps!

Best regards,
Dawna P.
Applications Engineer
National Instruments



1D Array Search

2004-02-09 Thread shplinky
I am attempting to search a 1D array for a certain value... the
problem is that the value appears more than once in the array and i
need it to find all those values... unfortunately the 1D array search
template stops after finding the first item... anyone know a solution
to this?



Re: Does anyone know of LabView drivers for an axiomtek AX4810P (PCI-GPIB)

2004-02-09 Thread L S
thanks, will try.



Re: REQ: LABVIEW

2004-02-09 Thread crelf
RESPONSE: www.ni.com/labview



Re: running networked labview apps without root permissions

2004-02-09 Thread David Duffey
I found a defora core 1 release and verified your problem (on LabVIEW
7.0).  It's because the fedora kernel uses native posix threads
instead of pthreads.  This changes the behavior of signals.

If you recompile your kernel and use pthreads the problem should go
away.  (Although I have not done this myself).

We have fixed this for the next release of LabVIEW (I did verify
this).  It required a change in the architecture, and therefore there
is no patch available for it.

What I meant by usinc nc and telnet for testing (without LabVIEW) is
to "echo hi | nc -l -p 2000" in one window, and "telnet localhost
2000" in another.  If your networking is working, you should see "hi"
in the telnet window.  But, telnet and nc are not affected by the npt
kernel as LabVIEW currently is.

For now, use a non NPT kernel.



Re: running networked labview apps without root permissions

2004-02-09 Thread mike_lachaine
Hello,

I did flush iptables, (running on Fedora Core 1), I also used ports
over 1024 (8000, 10001, 5), telnet and nc are not of any help
since the app won't run at all. The app stop with "Error 42 at tcp
create listener - Generic Labview Error".



Re: running networked labview apps without root permissions

2004-02-09 Thread David Duffey
You should be able to use the TCP vis without being root.  This is
most likely a security / firewall(on your localhost) setting that is
hosing your networking.

You can use "telnet" and "netcat" (nc) programs to help debug what is
going on.  Make sure you are using ports over 1024, as traditionally,
only root can bind (listen) on ports below that.

Are you running solaris or linux?  This sounds like something SE linux
might keep from happening.

Do you get any useful error messages from using the TCP VIs?.



Re: Matlab "decimate" function

2004-02-09 Thread Andrew Madry
See also the link
http://zone.ni.com/devzone/conceptd.nsf/webmain/0AA71742871067A686256D55004B7A23?opendocument
titled "resample waveforms with one simple Express vi"



running networked labview apps without root permissions

2004-02-09 Thread mike_lachaine
I noticed that it is not possible to use the tcp vi's, i.e. tcp create
listener or tcp open (I even tried the supplied examples dataserver.vi
and dataclient.vi in tcp.llb) without running them as root, any body
has an idea, no one would like to let the end user use root to run the
application!. Is it a labview configuration or a unix one?.
Thanks,
mike_lachaine



Re: Datasocket, Linux, and C

2004-02-09 Thread Jim Kring
To the best of my limited knowledge on the subject, most or all of the C/C++ 
support for DataSocket is on Windows (but I could be wrong).  If your C 
programmer knows how to invoke Java(Beans) you can probably get the 
DataSocket JavaBean to work.



Good luck,

-Jim

"George Gatling (Contractor)" <[EMAIL PROTECTED]> said:

> I have a datasocket server (WinXP) that is currently handling six labview 
> applications (also WinXP) quite happily.  I want to add one more app, 
> written in C and running on linux, that will publish to the datasocket 
> server.  Being a simple labview programmer I don't know much about the ins 
> and outs of include files and all that stuff.  Beside me is a C programmer 
> that doesn't know diddle about Labview.  heh, what fun.  Can someone bridge 
> our knowledge gap and explain what we need to get a C app on linux talking 
> to my datasocket server?
> 
> Thanks,
> 
> George
> 
> 



-- 






Re: Ring Control displaying digital display when cleared on exit

2004-02-09 Thread Ben
I agree,

See my other reply to Rob.

It's a real drag when you find out a feature is really a bug that gets
fixed without much mention in the release notes (yes I read them).

Ben



Re: Ring Control displaying digital display when cleared on exit

2004-02-09 Thread Ben
Excelent point Rob!

The good news is the most recent app only uses 2 of them so it should
be easy.

My reply above sounds a little desperate I must admit.

If I had known this was going to be "fixed", I never would have used
it.

Quoting from Greg McKaskle from earlier today,
"
Why?  Accepting the past is smart.  Predicting the
future is really hard!
"

Ben



Re: Need help with the Matlab Scripting VI

2004-02-09 Thread Sean C.
Hello Medha,

Thank you for contacting National Instruments.


>From the information you have provided, I am not sure what is causing
your problem.  Make sure that you do not have an evaluation license
for LabVIEW.
What, if anything, was changed in your VI before it stopped working?
Will it run without the Matlab script?


If you continue having trouble getting your VI to work, please respond
with more information.  If you like, you can post your VI (along with
any necessary sub-VIs) and I will take a look at it.


Have a great day,


Sean C.
Applications Engineer
National Instruments



Re: I was trying to use the Matlabscripting VI, but it says it...

2004-02-09 Thread Sean C.
Hello Medha,

Thank you for contacting National Instruments.

>From the information you have provided, I am not sure what is causing
your problem.  Make sure that you do not have an evaluation license
for LabVIEW.
What, if anything, was changed in your VI before it stopped working?
Will it run without the Matlab script?

If you continue having trouble getting your VI to work, please respond
with more information.  If you like, you can post your VI (along with
any necessary sub-VIs) and I will take a look at it.

Have a great day,

Sean C.
Applications Engineer
National Instruments



Vision Builder 7.0(IMAQ) : Using fxs in subVIs with references to image control

2004-02-09 Thread DonRoth
When using IMAQ fxs (such as 'Write File') in subVIs, if one wanted to
use references to an image control, what property or method would be
used to feed into the image terminal in the imaq fx on the subVI?  Is
this possible?

What did work: I was able to directly use the image control on the
main feeding an image control on the subvi panel (which is then fed
directly to imaq fx)

What did not work: From a refnum control for the image on the main, I
used (within the subVI) the value property fed to a 'Variant to Data'
with type as image control, then feeding the output of this into imaq
fx.



Datasocket, Linux, and C

2004-02-09 Thread George Gatling (Contractor)
I have a datasocket server (WinXP) that is currently handling six labview 
applications (also WinXP) quite happily.  I want to add one more app, 
written in C and running on linux, that will publish to the datasocket 
server.  Being a simple labview programmer I don't know much about the ins 
and outs of include files and all that stuff.  Beside me is a C programmer 
that doesn't know diddle about Labview.  heh, what fun.  Can someone bridge 
our knowledge gap and explain what we need to get a C app on linux talking 
to my datasocket server?

Thanks,

George




Re: Getting access to logged data during acquisition

2004-02-09 Thread Sean C.
Hello RipGurl,

Thank you for contacting National Instruments.

To get immediate access to your data, it would be best to acquire
directly from Visual C++ (VC).  You can download an example for this
from the NI Developer Zone at:

http://sine.ni.com/apps/we/niepd_web_display.display_epd4?p_guid=B45EACE3E9EB56A4E034080020E74861&p_node=DZ52302&p_source=External

If you need to use LabVIEW to acquire and log your data, you will not
be able to access the data in VC until LabVIEW has finished writing to
the file.
If you wanted access to the data closer to its time of acquisition,
you would have to alter your data logger to write to multiple, smaller
files.  For example, you could have your data logger write separate
files for every 5 minutes of sampling.  VC could then read those files
as soon as LabVIEW has finished writing them.

I hope this helps,

Sean C.
Applications Engineer
National Instruments



Re: Open/Create/Replace fx question

2004-02-09 Thread DonRoth
I am answering my own question which is clearly addresed in the help
for the Open/Create/Replace fx. The items must be separated by
semicolons (not commas as I was doing).



run parts of a vi front panel in different windows

2004-02-09 Thread gasguy
I have a devicenet main vi.  I want to call up sub VI's and transfer
boolean arrays into the main vi.  I want the main VI and the sub VI to
run in separate windows.  I can't get the array data out of the sub
into the main.  I have the indicator of the array in the sub tied to a
icon terminal.  The icon terminal goes into the main vi loop and
connects to the d-net input.  Please help!!!



Re: PVCS version manager to control VIs version?

2004-02-09 Thread sni
I assume that you declared your VI's as regular text files for PVCS
purposes.
1.  Have you tried other file definitions, such as binary?
2.  Did you have to submit all NI dll's into PVCS in order to perform
baseline builds?

I am required to place my LabVIEW project under PVCS within the next
month and these questions have come up.



Re: lvanlys.dll Real IFT function change from version 6.1 to version 7

2004-02-09 Thread yrao
>From the input spectrum data (magnitude and phase), I can tell the
complex input data to the inverse FFT is not "DFT Symmetric". In order
to compute correct Real Inverse FFT, the input complex vector must be
even symmetric on the real part and odd symetric on the imaginary part
( it is in the "DFT Symmetric" sense, please refer to any text boot
regarding the FFT properties). For performance reason, the real
inverse FFT will not check the symmetry of the input data. If the
input data does not comply with the requirement for real inverse FFT,
the result is not defined. Different Inverse FFT implementations may
output different results in this case.



Re: How do I call another event from the current event in an event structure ?

2004-02-09 Thread Steve Parus
I don't believe though that the other event will actually execute
until the first one completely finishes.  Even if you use a sequence
to call the other event.  The other event's timecode will indicate
when it was called or placed in the queue to be executed.  Note this
behavior is different than other languages (Delphi for example) where
a second event can be made to execute at any point in time from within
another event.

Steve





Re: Any way to tell when an image display has been updated?

2004-02-09 Thread Warren Massey
Thanks for the reply, but moving the image or blanking it out prior to
displaying it won't work for us because we are looking for possible
subtle changes between subsequent images and doing this would make
that difficult (and it would also tend to introduce a considerable
delay in the update).



Re: Why does a vi not release memory even when arrays have been emptied?

2004-02-09 Thread Mads
Sounds like there is a copy of the arrays that is never deleted...but
it's not good to tell without the code. You could try stripping away
parts of the code and see if there is a certain part that keeps the
memory (try loading the VI dynamically and then unload it completely,
do you see the same efect?). Sometimes you can have memory
fragmentation that will prevent the memroy from being deallocated.



Re: How can I detect if a global bolean variable has changed

2004-02-09 Thread Mads
I would use a functional global to store the boolean, or skip the
boolean all together and just have the functional global store the
time. The global should have read and write funtionality, and when you
use the write method it should update the time...

You mention events and events do not need to be local. You can create
a user event and pass the reference to that event wherever you want.
By putting it into a functional global e.g. you can have an event
structure react to the event one place and have other parts of the
code fire the event by using the reference from the global...not many
limitations really.



Re: Time scale on 3D graph

2004-02-09 Thread alberto
Hi again,
I think I found a solution:
-right click on the graph, select CWgraph3D/property
- Click on the Format tab and select YAxis
- Select date format and the format that you want
Now you can input the time values in Y to be displaied on the graph.
The problem is that the 3D graph has a date/time start reference at
the date 12/30/1999 00:00.00;  while LV has 01/01/1904 00:00.00
Another important thing is that the format for the date/time input for
a 3D graph has to be expressed in days (NOT in seconds)since the
reference date.
Therefore you have to subtract from your time values in seconds the
number of seconds between 12/30/1999 00:00.00 and 01/01/1904 00:00.00
(use LV time functions for calculation); then divide all by 86400
(number of seconds/day).
Hope it helps, good job anyway!
Alberto



Re: Time Shareing One GPIB Spectrum Analyzer (HP6562A) Between Two VI's.

2004-02-09 Thread Dennis Knutson
I would suggest that you look at the shipping example called
Locking.vi. It uses the VISA Lock and VISA Unlock functions to control
access to a single resource. The example shows how it works in a
single VI but as the text mentions, it would typically be used in two
separate ones.



Looking for CATV measurement example

2004-02-09 Thread bhaggard
Are there any examples of CATV measurement for a Spectrum Analyzer
that includes Carrier level, Carrier Frequency, Aural level, Aural
Frequency, Aural Deviation, and Depth of Modulation.  I am using
LabView 7 and I am fairly new to the LabView world. I'm hoping to find
examples to help me learn the basics of acquiring these sigals from an
Agilent E4402 Spectrum Anaylzer.  I do multiple readings of Modulator
banks (ex. channel 45 through 60)and need to have just basic text read
out of each of the measurements stated above.



Re: Displaying files of custom pattern types specifying multiple types

2004-02-09 Thread DonRoth
Yes, thanks this works and I should have read the help for the
function more carefully.



DAQ+storage must happen independent of other screens OR user interaction

2004-02-09 Thread Sandeep
I have a problem here.
Program has 3 screens


screen 1
To save user entered parameters. Example - acquisition period value,
data storage location, averaging

screen 2
-data acquisition(DAQ) takes place
-graphs are displayed for user
-additional user parameter selection (user selected momentary
temperature acquisition)

screen 3:
Zoomed displays of graphs user has selected from screen2 graphs



Problem:
When I go from screen2 to screen1/screen3 , data acquisition should
not stop. It must continue.
And the user entered parametrs on screen1 must be immediately
effective in screen2 (DAQ + storage part)


What is the best Tree structure? How should be interdependability?
'tab' control won't work and I guess neither event structure would. I
have LabVIEW 7.0
Since this is basic part of program structure, once begun , it's hard
to modify the basic frame.

Thanks in advance for Inputs, Ideas,help.

Sandeep



Re: Looking for CATV measurement example

2004-02-09 Thread Dennis Knutson
Did you see the answer I posted http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RPAGEID=135&HOID=5065000800D2BD&UCATEGORY_0=_49_%24_6_&UCATEGORY_S=0";>here.
The driver available won't teach you about the instrument - you'll
have to learn that yourself, but it will provide the means to get
readings into your program. Because it's an IVI driver, the
measurements and settings are going to be common to the spectrum
analyzer class of instruments so you may have to do a little bit of
custom programming if there are specific features of the 4402 that you
need to access but you should get a good starting point with what's
there.



How can I detect if a global bolean variable has changed

2004-02-09 Thread Angel Olivares
I have a boolean global variable that change its value from time to
time. At hte beginning of my program I take the actual time, but
everytime this value change I have to reset this previous value and
take the actual one. I've tried to do this with the event structure
but it doesn't work because this is a global variable and not a
control in the panel. Some idea to solve this problem? Thanks in
advance,

Angel



Re: How can I run Isodat script language (ISL) script files from Thermo Finnigan in LabVIEW?

2004-02-09 Thread pbuerki
Thank you, Sean.
Naturally, I first checked the NI Instrument driver Network and
contacted the manufacturer, before I posted this message. As both
avenues turned out to be dead ends, I posted the message as a last
resort.
Thanks again for your reply.
Peter



Time Shareing One GPIB Spectrum Analyzer (HP6562A) Between Two VI's.

2004-02-09 Thread Kandrew
I have two test stations that need to share a Spectrum Analyzer.
I've set up a boolean flag to indicate when one VI is accessing the
equipment and the Second VI waits until the flag goes false.

My problem occurs evey once in a while when both VI's try to Accress
the test equipment at exactly the same time.
When this happens the Spectrum Analyzer freezes up.
Does any body have some example code that allows two VI's to Time
share one piece og GPIB eqipment.



Re: How can I run Isodat script language (ISL) script files from Thermo Finnigan in LabVIEW?

2004-02-09 Thread Sean C.
Hello Pbuerki,

Thank you for contacting National Instruments.

The Instrument Driver Network can be accessed at the following link:

http://www.ni.com/devzone/idnet/default.htm

There you can download instrument drivers provided by manufacturers
and customers.

I have searched our drivers and was unable to find one for your mass
spectrometer.  You might try contacting the manufacturer of your
instrument to see if they have a driver for you.

I hope this helps,

Sean C.
Applications Engineer
National Instruments



Re: How can I set one loop's frequency as a slave of another loop ?

2004-02-09 Thread Mads
The occurence halts all execution until it is set, no CPU load.



Re: Time scale on 3D graph

2004-02-09 Thread marymc
Hi
Thanks for your reply. Its not really what I was looking for but
thanks for the suggestion. I need to convert the array of seconds into
time and date and display it on the 3D curve. At the moment it only
displays seconds and won't convert to time/date. Any further
suggestions???



Re: Inizializzazione dell'asse dei tempi di una waveform chart.

2004-02-09 Thread alberto
Ciao Lucia,
per l'utilizzo dell'asse delle ascisse come base dei tempi dai
un'occhiata all'esempio Real-Time Chart.vi che trovi negli esempi di
LV.Come puoi vedere il tempo corrente convertito in secondi stabilisce
l'offset temporale del chart; tieni presente che la scala X =E8
impostata come scala temporale (vedi impostazioni in
Xscale-Formatting).
Per il secondo problema =E8 chiaro che non puoi madare nel buffer del
chart punti non equamente distanziati temporalmente, perderesti il
riferimento temporale. Quello che ti consiglio =E8 l'utilizzo di un
grafico XY; dove in X inserisci i valori di tempo. Con un p=F2 di lavoro
puoi creare un buffer di valori XY a lunghezza fissa: quando il buffer
=E8 pieno, il nuovo valore viene accodato e si toglie il primo valore
del buffer (valore pi=F9 vecchio). In tal modo si crea lo scorrimento
del grafico.
Spero di essere stato chiaro, comunque non farti scrupoli a chiedere
chiarimenti; eventualmente ti posso fare un esempio.
Tanti saluti,
Alberto



Open/Create/Replace fx question

2004-02-09 Thread DonRoth
Is there any way (certain syntax needed) to get all files of specified
types to display in files portion of dialog when specifying multiple
file types (egs. "*.png,*.bmp,*.jpg) for the pattern input in
Open/Create/Replace fx?  When one specifies just one type (eg.
"*.png") in the pattern input, all files of that type display in the
files section of the dialog as expected.



Re: Filtering out and sending data to the correct graph depending on data identifier

2004-02-09 Thread Dargar
Ahh! I see! Well, that removes the danger of missinterpretation at the
cost of increased bandwidth as you say.

Sampling only a couple of times a second means that the bandwidth wont
be a problem in and of itself, however, we are running the PIC
controller on at a very low clock rate (32.kHz) and thus it might be
an issue that we don't have enough overhead to do the other
processing. I'll keep it in mind though. (We run the PIC at such low
frequencies because every milli-watt of power matters in our
application. If we have any overhead time, we will sleep it too, to
reduce the power-consumption even further.)



Re: Ring Control displaying digital display when cleared on exit

2004-02-09 Thread Dr. Imad
The real issue here is if you convert existing code written in LabView
6/6.1, it should work in the same way without having to worry about
the little things, that makes you examine and rewrite some of the code



Re: Any way to tell when an image display has been updated?

2004-02-09 Thread Warren Massey
I've already tried something like this and it just does not work like
I want it to.

Enforced with a sequence structure I do this:
1) put up a message saying "Updating"
2) dump the updated data to the display
3) clear the message

What I see on the CRT is this:
1) a message saying "Updating"
2) the message quickly goes away
3) several seconds later the image changes.

My kludge/workaround is to add a variable delay before the message is
cleared. The delay is based on the image size and some
empirically-derived constants.



Re: interfacing LabVIEW 7.0 with VB.NET

2004-02-09 Thread BJD1613
Try using code similar to this:

Private Declare Sub FUNCTIONNAMEINDLL Lib "C:\TEMP\DLLPATH.DLL"
(Function Prototype)

This will allow you to call a specific function in the DLL.



Re: different frames

2004-02-09 Thread baroque guitar player
Hi:

thanks for your response, now I=B4m using a subpanel.

See you

Gabriel



Re: Help! Error in New Report.vi

2004-02-09 Thread uscmagz
I had already looked at that link. Thank you though. I don't have
Labview 7 Express. It's Labview 6.1. Any help for 6.1?



Re: OS compatibility

2004-02-09 Thread David Duffey
I know of several people using LabVIEW on embedded linux devices, as
well as RT linux.

LabVIEW actually doesn't depend on much.  It requires the  correct
version of libc (along with libm and libdl), and libpthread.

It also depends on X (libX11, libXext).  It requires an X server to
display to, but you should be able to use a dummy X server (with no
physical display) in it's place.

In order to run a VI, you'll also need a LabVIEW development system.
In order to run a LabVIEW built executable, you won't need the
developments system but you will need to install the LabVIEW run-time
engine (about 13 megs).



Re: "I've tried downloading the GOOP toolkit found at...

2004-02-09 Thread JoeLabView
You are right, the link to
ftp://ftp.natinst.com/support/labview/vis/windows/6.0/goop6i.zip
does not work.  I suspect the ftp server may be down temporarily.. I
doubt that it is discontinued ;o)

Check again later.

JLV



Re: "I've tried downloading the GOOP toolkit found at...

2004-02-09 Thread Jim Kring
Try ftp://ftp.ni.com/support/labview/vis/windows/6.0/goop6i.zip

Good luck,

-Jim



Re: interfacing LabVIEW 7.0 with VB.NET

2004-02-09 Thread BJD1613
Sure you can do this.  THe best way would be to create a DLL in LV
that you can call directly from VB.  You can pass inputs and outputs
to and from the DLL also.
You will need the application builder toolkit and be sure to define
your function prototype the same way you do in VB.  Hope this helps.



Re: Help! Error in New Report.vi

2004-02-09 Thread JoeLabView
Hello,

Look at the following link.  Hopefully this will help.

http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RPAGEID=135&HOID=5065000800CDB0&UCATEGORY_0=_49_%24_6_&UCATEGORY_S=0&USEARCHCONTEXT_QUESTION_0=-2147312566&USEARCHCONTEXT_QUESTION_S=0

JLV



Re: scrollbars in build executable

2004-02-09 Thread Sean C.
Hello Ren=E9,

Thank you for contacting National Instruments.

As Weibe has answered, there is no way to disable the front panel
scroll bars after the VI has finished running.  To prevent users from
altering the VI, you can set the front panel to close upon completion.
You can do this by including a =93Quit LabVIEW=94 function from Functions
>> Application Control.  You should wire the stop button from your
while loop to the =93Quit LabVIEW=94 function to have the front panel
close at the end of execution.

If you are calling your VI from another VI, you can set the front
panel to close from VI Properties.  Select File >> VI Properties then
select Window Appearance from the pull down category menu.  Press the
customize button and select the Show Front Panel when Called and Close
Afterwards if Originally Closed boxes.

I hope this helps,

Sean C.
Applications Engineer
National Instruments



"I've tried downloading the GOOP toolkit found at...

2004-02-09 Thread RayGuy
"I've tried downloading the GOOP toolkit found at
ftp://ftp.natinst.com/support/labview/vis/windows/6.0/goop6i.zip but I
keep getting a response that the link does not exist ?!"

Has the LabVIEW version 6 GOOP toolkit been moved or discontinued?
Thanks.



Re: OS compatibility

2004-02-09 Thread FerozP
Hi Gerjo,

Adding to tmh's response, please make sure that when you are switching
the operating systems, you are not removing the block diagrams from
the VIs.  The code will have to be recompiled when you change
operating systems hence you will need the block diagrams.

VIs and executables may work on XP embedded, but you'll have to try it
to find out.  I know that some customers have tried this and have been
successful.   National Instruments does not officially support this
since VIs and Execs have not been tested on embedded systems.

I hope this helps.

Feroz
National Instruments



Re: I want my application to have a main menu(vi) and few sub.vi...

2004-02-09 Thread Liz F
Hello all,

This is a great example.  However, I just wanted to emphasize that the
front-panel booleans used for this purpose should be latch-action to
avoid an endless loop.  Just a bit of advice!

Happy coding,

Liz F.
National Instruments



Re: I want my application to have a main menu(vi) and few sub.vi...

2004-02-09 Thread nayisoe
Thanks for your advice, Liz F.



Re: How can I set one loop's frequency as a slave of another loop ?

2004-02-09 Thread cariboo
Thanks for your answer.
I wanted to not use the wait function because it is not precise (I
think). If I put a 'case structure' in the second loop that waits for
an occurrence, it will be more precise, but the test of the 'case
structure' will use CPU time. Is there a better way to use the
occurrence ? Or am I wrong, to wait an occurence does not use CPU ?



Re: saving to version 6 from version 7, (not version 6.1)

2004-02-09 Thread BJD1613
Not that I know of, unless NI has some backdoor to do so it isn't
possible.  You can always save to 6.1 and then to 6.0.  Sorry.



Agilent 5973 GC driver

2004-02-09 Thread David Thomson
   Does anyone know what drivers are available for the Agilent 5973 GC? 
  I've looked a little at the Agilent site and have found their Cerity 
software package, which interfaces through the LV DSC toolkit via OPC. 
Are any other drivers available?  Perhaps something a bit lower-level, 
that doesn't use OPC?

TIA,
Dave
-
David Thomson   303-499-1973 (voice and fax)
Original Code Consulting   [EMAIL PROTECTED]
  www.originalcode.com
  National Instruments Alliance Program Member
  Certified LabVIEW Developer
 Certified Instrument Driver Developer
-
Research Scientist   303-497-3470 (voice)
NOAA Aeronomy Laboratory 303-497-5373 (fax)
Boulder, Colorado[EMAIL PROTECTED]
-
There are 10 kinds of people: those who understand binary,
and those who don't.




Help! Error in New Report.vi

2004-02-09 Thread uscmagz
Why do I get an Error -2147312566 when I run New Report.vi? I have the
Microsoft Report Generation Toolkit 1.0.1 installed and am running
LabVIEW 6.1. I don' tthink that New Report.vi is the only problem I'm
having. None of the SubVI's seem like they are able to be called when
I run any of the example VI's that come with the Toolkit!



Re: Filtering out and sending data to the correct graph depending on data identifier

2004-02-09 Thread Erik
Dargar <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>...
> Hu. Interesting.
> The biggest disadvantage I can see with this is that it feels more
> complex. I'm in the process of learning and I feel like it is easier
> to "understand" what I'm doing if I use a measure-identifier.
> 
> I see that having a certain telegram format where the second data is,
> say, T2, I don't need the identifier anymore, but what happens when in
> the 16bit data-integer, if the bits match up to create the comma?
> Won't that throw the whole telegram off?

I think this is easier, but it takes more bandwith than your solution.

You have to convert your integers into strings of ASCII characters.
You need 5 characters to represent an unsigned 16 bit integer, and 6
for a signed integer. With the comma delimiter in the telegram, you
end up sending 7 bytes of data for each measured channel.

If yor are not sampling your sensors more than once every second, the
extra amount of data transfered will not be a problem.

Erik



Re: Ring Control displaying digital display when cleared on exit

2004-02-09 Thread Robert Cole
Interesting that we use the (-1) case in our LV 7.0 programs. So I did
a little digging. The default for menu rings is to be a U16 in which
case what you're mentioning makes a lot of sense (it's an unsigned
number after all). Click on the terminal in the block diagram and make
it I16 and the (-1) now works. It's probably the easiest fix to just
change them all to I16's (if you're using them in multiple sub-VI's
you *did* make them typedef's so you only have to make one change,
didn't you?).

 Rob



Re: How to synchronize the Acquization part and control part?

2004-02-09 Thread chenchen
Thanks a lot. I solved that problem. But I will
see your solution later.



Re: How can I set one loop's frequency as a slave of another loop ?

2004-02-09 Thread Mads
Using a local for this is not too bad, here it does not involve much
data and I would assume race conditions are not a concern here. If the
second loop is just waiting (using a wait function) it won't use any
CPU time.

Linking the timing of the loops together by using a producer/consumer
model is an option similar to using occurences, but will also enable
data transfer between the loops if that's necessary.

The easiest way to get the two loops to run in separate threads would
probably be to put them in separate VIs and set the VIs to run in
different execution systems.



How can I set one loop's frequency as a slave of another loop ?

2004-02-09 Thread cariboo
I have 2 loops in parallel. The first runs at 500Hz. The AIread
controls the frequency. How can I set the second one at 100Hz ? It is
very easy to set it with local variable, but really not clean. The
second loop must not use the CPU while waiting the next 100Hz tick. Is
it possible ? I am trying to use occurrence, but the second loop will
always (I think) use CPU while waiting next tick !
Is it possible to set one loop in one thread and the other one in
another thread ? Then set each thread to a CPU (I use a bi-xeon PC)
Thanks



Re: priority in events

2004-02-09 Thread Robert Cole
We use a queue to queue up states for a seperate state machine. The
event handler only adds states to the queue. I know that it sounds a
little awkward, but it has many advantages since you can take things
out of the queue or put things in the front of the queue. When it come
right down to it, you can also interrupt what's happening in the state
machine. This might be an architecture that you could use to re-order
how things happen.

 Rob



Re: Microsoft Report Generation Toolkit Error Running VI's

2004-02-09 Thread Joe Guo
I would also suggest to mass compile the office VIs.
Looking at the image I notied there are coercion dots which indicate
the report references not quite match.

Joe



Re: Ring Control displaying digital display when cleared on exit

2004-02-09 Thread Ben
Another thought.

In pre-LV7, I used to be able to set the selection for "-1". Since the
user could only select non-negative values, any value other than "-1"
would indicate a new value was selected.

Writing a "-1" now resluts in the display showing "<65535>" (-1). It
used to show a blank selection.

To use the control in its current state, pre-LV7 code will have to be
modified conciderably.

Let me try to explain why the previous behaviour was desirable.

If you want to distinguish between one of the items in the list being
selected and nothing selected, writing a "-1" was great! The ring
value could be passed to the selector of a case where the "-1" case
would ignode the value read.

The default case could then be used to index out the selection from
the strings.

Simple, elegant, and worked great!

Now,
I have to append another string that indicates "no selection" and add
extra code to trap this case. This gets even more complicated when the
selections are populated by the code where the number of elements in
the list can change.

I would prefer the previous behaviour be restored.

Ben



Re: Ring Control displaying digital display when cleared on exit

2004-02-09 Thread Ben
I vote BUG!

This used to work before LV7.

Ben


http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RPAGEID=261&HRedirected=True&HUserId=101_3529&RFORMNUMBER=6";>Ben
Rayner
http://volt.ni.com/niwc/common.jsp?page=products_certification_cld&node=10638";>
Certified LabVIEW Developer 
www.DSAutomation.com



Re: Any way to tell when an image display has been updated?

2004-02-09 Thread Joe Guo
Maybe a little bit off topic, but I remember there was a (set) VI(s)
in the internet toolkit which help you to detech if there are any
image (png or other type) updates.

To synchronize the data and graph update, you can move or hide/show
the graph everytime after each data update, so labview is 'forced' to
update the indicator with latest data.

-Joe



Re: drag&drop mouse over - special effects

2004-02-09 Thread Joe Guo
I once did a drag & drop between two lists for fun.
By using the event structure to monitor the mouse movement on the
front panel.  You can have a small image/control follow the mouse as
well.  However, this works only inside labview, not with external
applications.

-Joe



Re: priority in events

2004-02-09 Thread Joe Guo
I am not sure you can "control" which event goes first when multiple
comes in at the same time.

Event should be use to handle simple tasks. Any time intensive /
consuming operations should be put into a separate case, or even
better a loop, you can put some checks there to skip them should a
more important Event is detected.

Joe



drag&drop mouse over - special effects

2004-02-09 Thread moron
Hi,

do anybody knows how i can make such effects happen in labview 6.1?
I'm new here and i do't know if i could.

thanx for help.



Re: Bird's Eye View Utility Available

2004-02-09 Thread Greg McKaskle
> When I tried to close version 1.0.0, LabVIEW popped up a message box 
> saying, "Resetting VI: Bird's Eye View.vi," and hung. Since this does 
> not happen with version 1.0.1, where a number of race conditions were 
> fixed, I presume that something was getting in something else's way, 
> but does anyone know what it means to "reset" a VI and what might 
> have caused it to occur here?
> 

Resetting is the internal term for aborting or stopping.  It is always 
difficult to bring multiple threads to a stopping point.  At the moment 
at least, this is done without killing threads, so if a thread is 
running in a DLL or CIN or subroutine priority VI, LV will just wait for 
it.  In the future, this dialog might have a button to try and kill the 
offending threads.  Of course, this slaughter will likely leave 
resources to drivers open and in odd states, so that is a can of worms 
we have left unopened.

Greg McKaskle




Re: Info-LabVIEW Digest - 02/05/04

2004-02-09 Thread Greg McKaskle

> } >As I understand it a version of LabVIEW can always(?) open a VI written
> } >with an earlier LV version but the converse is not true.
> 
> Converse... inverse... reverse... nope, it's been too long since my
> discrete math courses. Can't remember how to form logical converse.
> 
> But this is true in the development system:
> * Any LabVIEW after LV4.0 [assuming no bugs in code] can always open any VI
> written in an earlier version of LabVIEW, even across platforms [written on
> Mac, open on PC, etc].
> * A VI written in a later version of LabVIEW can never be opened in any
> earlier version (no 7.0 VIs can be opened by 6.1).
> * Each version of LabVIEW since 5.1 has had the ability to save VIs for the
> immediate past version of LabVIEW. In other words, 5.1 could save a VI in
> 5.0 format. 6.0 could save a VI in 5.1 format. If you used features that
> were new in the later version, then when you opened the VI in the earlier
> version, the VI should open, but you may find parts of your diagram/panel
> removed since those features didn't exist.
> 

You've both come pretty close to the complete answer, but you didn't 
mention the x.x.y versioning.  Since LV 2.5, the y, the third digit, has 
been modified to designate versions that are binary compatible.  Thus 
6.0.0, 6.0.1, and 6.0.2 could load and execute each other's VIs without 
having to be recompiled.  In otherwords, the compiled datastructures 
were identical.

If loaded into a LV with a compiler, they will be recompiled anyway -- 
forward or backward.  If loaded into a runtime without a compiler, they 
will be executed as is.

As stated above, if the first two digits differ, the VIs can migrate 
forward, but not backward.  They must saved for previous or rebuilt to 
go back in time.  Why?  Accepting the past is smart.  Predicting the 
future is really hard!

Greg McKaskle




Re: Microsoft Report Generation Toolkit Error Running VI's

2004-02-09 Thread uscmagz
Thanks, I'll try that today. What do I do about Microsoft Word
reports, though? It doesn't work either.



Re: New to Lab view! Need some Help.

2004-02-09 Thread dicussion
--8014094.1076335774371.JavaMail.quiq.tekken
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

here is the attachment of the of the message data base and node
database. I have attached all of node and few commands of message
database, as it is very big.
--8014094.1076335774371.JavaMail.quiq.tekken
Content-Type: text/plain; name=NODESDATABASE.txt
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename=NODESDATABASE.txt
Content-Description: NODE DATA BASE

10  PCM  "POWERTRAIN CONTROL MODULE"
12  TCU  "THROTTLE CONTROL UNIT
28  ABS  "ANTI-LOCK BRAKING SYSTEM CONTROL MODULE"
2A  EPB  "ELECTRIC PARK BRAKE"
39  ADCM "ADAPTIVE DAMPING CONTROL MODULE"
50  REM  "REAR ELECTRONIC MODULE"
52  GEM  "GENERIC ELECTRONIC MODULE"
54  BPM  "BODY PROCESSOR MODULE"
4A  SLM  "SECURITY & LOCKING MODULE"
60  IC   "INSTRUMENT CLUSTER"
61  MC   "MESSAGE CENTRE"
68  NAV  "NAVIGATION CONTROL MODULE"
80  ACM  "AUDIO CONTROL MODULE"
91  VEMS "VEHICLE EMERGENCY MESSAGING SYSTEM" 
92  VACM "VOICE ACTIVATED CONTROL MODULE"
98  DATC "DUAL AIR TEMPERATURE CONTROL MODULE"
9B  DGSM "DUAL GAS SENSOR MODULE"
A0  DDM  "DRIVERS DOOR MODULE"
A2  DSM  "DRIVERS SEAT MODULE"
A4  PDM  "PASSENGERS DOOR MODULE"
A6  PSM  "PASSENGERS SEAT MODULE"
A8  DRDM "DRIVERS REAR DOOR MODULE"
AC  PRDM "PASSENGERS REAR DOOR MODULE"
C3  SCL  "STEERING COLUMN LOCK MODULE"
F0  J10  "JEST TOOL #10"
F1  J1   "JEST TOOL #1"
F2  J2   "JEST TOOL #2"
F3  J3   "JEST TOOL #3"
F4  J4   "JEST TOOL #4"
F5  J5   "JEST TOOL #5"
F6  J6   "JEST TOOL #6"
F7  J7   "JEST TOOL #7"
F8  J8   "JEST TOOL #8"
F9  J9   "JEST TOOL #9"
--8014094.1076335774371.JavaMail.quiq.tekken
Content-Type: text/plain; name=MESSAGEDATABASE.txt
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename=MESSAGEDATABASE.txt
Content-Description: MESSAGE DATA BASE

All Courtesy Lamp are Off (Stat),41,DF,01,00
All Courtesy Lamp are On (Stat),41,DF,81,00
All Courtesy Lamp Switch Active,41,DF,A1,00
All Courtesy Lamp Switch Inactive,41,DF,21,00
ALL Door Lock Command - Lock(ed),41,C4,81,00
ALL Door Lock Command - Unlock(ed),41,C4,01,00
ALL Door Lock Motor Enable (cmd) Dis(d),41,C4,10,00
All Front Fog Lamps Off (cmd),41,DA,09,08
All Front Fog Lamps On (cmd),41,DA,89,08
All Front Fog Lamps are Off (stat),41,DB,09,08
All Front Fog Lamps are On (stat),41,DB,89,08
ALL Front High Beam Lamps Off (cmd),41,DA,06,08
ALL Front High Beam Lamps On (cmd),41,DA,86,08
ALL Front High Beam Lamps are off (stat),41,DB,06,08
ALL Front High Beam Lamps are On (stat),41,DB,86,08
ALL Headlamps Off (cmd),41,DA,01,00
ALL Headlamps On (cmd),41,DA,81,00
ALL Headlamps are Off (Stat),41,DB,01,00
ALL Headlamps are On (Stat),41,DB,81,00
ALL Park Lamps Off (cmd),41,DA,04,00
ALL Park Lamps On (cmd),41,DA,84,00
All Rear Brake Lamps Off (cmd),41,DA,03,38
All Rear Brake Lamps On (cmd),41,DA,83,38
All Rear Fog Lamps Off (cmd),41,DA,09,38
All Rear Fog Lamps On (cmd),41,DA,89,38
All Rear Fog Lamps are Off (stat),41,DB,09,38
All Rear Fog Lamp are On (Stat),41,DB,89,38
All Rear Park Lamps Off (cmd),41,DA,04,38
All Rear Park Lamps On (cmd),41,DA,84,38
--8014094.1076335774371.JavaMail.quiq.tekken--




Re: Ring Control displaying digital display when cleared on exit

2004-02-09 Thread Joe Guo
When you clear the items, also set the value to '0'.

-Joe



Re: OS compatibility

2004-02-09 Thread tmh
1) Yes, as long as you have the appropriate LabVIEW development
environment for the other OS and you aren't relying on
platform-specific features such as ActiveX. Any CIN's/DLL's that
aren't part of LabVIEW would obviously also need recompiling.

2) No, unless you can get it to work under some kind of emulator like
SoftWindows on the Mac. To build an executable for a particular
platform you need the LabVIEW development environment and Application
Builder for that platform.

Maybe someone else can help with the Linux and Embedded XP
questions...



Re: priority in events

2004-02-09 Thread f_d
Ok so stopping is possible, but what about events with priority
settings is that possible?



Re: priority in events

2004-02-09 Thread waldemar.hersacher
The abort button will stop the VI immediatly regardless what the VI is
doing (tested with the Wait (ms) function). I think this is true even
for the Abort VI Method.

Waldemar



set mouse position

2004-02-09 Thread moron
hi,

i'm not able to set the mouse cursor to a defined position in a
picture.ctl when loading the picture. i think it must be possible. i'm
new in labview and would thank for help.



Using a "fopen" call in a DLL made with MatLab for Labview

2004-02-09 Thread JLCM
--5515485.1076332199448.JavaMail.quiq.tekken
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Dear Sirs:

My name is Juan Crespo and I write you from Spain. I answer if you
could help me with a Labview problem. This is the problem.

I want to write a DLL for being used in labview, and i want to use
matlab for write this DLL. I have been searching in the web and
reading the NI "using external code in labview" manual in order to
know what I must do.

I know that if I want to use MatLab, I must build a "wrapper function"
to avoid the different data type between MatLab and  C. I have found
on the web -Thanks to Alberto Sanchez- one example about how could a
DLL could be written.

But it exist one diference: I want to read a plain text file that has
the input data. so I must read the file, store the data in an array
and then pass this array to the "interface functions" but in a simple
example this dont works

My question is =BFHow could I open a text file in order to use it as
input data in a DLL in Matlab?

Attached to this message is the code I use as "wrapper function". when
I compile it there is no apparent errors, but when I try to use the
DLL in a VI, an error appears.

If I change this code and the input is made "manually" (using the VI)
there are no errors. So I think that problem is in the way that
Labview consider "fopen" function when I build a DLL. The "num.txt"
file, where the data input are, is on the same directory that dll file
and VI file.

I hope that you can help me with this problem.

Thank you very much in advance and please sorry for my bad english

Best Regards


Juan Crespo
--5515485.1076332199448.JavaMail.quiq.tekken
Content-Type: application/octet-stream; name=foo_wrapper.c
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename=foo_wrapper.c
Content-Description: This is the code that does nor work

/*
 * MATLAB Compiler: 3.0


* This file foo_wrapper.c */

#include "matlab.h"
#include "foodll.h"
#include "matrix.h"
#include 

//main wrapper function definition
double wrapper_main (void){ 

//declare variable to deliver result
double out; 
double *in1;
FILE *far;


//Create two pointers of mxArray type to store inputs and outputs
mxArray *in1_ptr, *out1_ptr;

//Allocate input pointer to a 1 by 1 double, real matrix
in1_ptr = mxCreateDoubleMatrix(1,1,mxREAL); 

far = fopen ("num.txt","r");

fscanf (far,"%lf",in1);

fclose (far);


//Move the data from the input to the pointer  
 
fill(mxGetPr(in1_ptr),in1,1);   

//Initialise foo implementation
foolibInitialize(); 

//Pass values to mlfFoo and receive in mxArray type variable
out1_ptr = mlfFoo(in1_ptr);

//Terminate foo implementation
foolibTerminate();  

//Move from mxArray type to double type
fill(&in1,mxGetPr(out1_ptr),1); 

//move data to output variable
out = *in1; 

//Return value
return(out);
}

void fill(double *out, double *in, int size){   
//This function moves data from one type to another
int i;
for(i=0;i

Re: Waveform Chart Y-T Values

2004-02-09 Thread Shakes
Thanks Dennis. I hope I can look forward to your continuing support in
future.



Re: Stand-alone application not to run when launched.

2004-02-09 Thread Belur
The benefit from this approch sounds great to me. If you have the time
and inclination, it would be helpful if you can attach a small dummy
VI as a demo.

Many thanks.

Sheela



Re: Waveform Chart Y-T Values

2004-02-09 Thread Dennis Knutson
It was the two star rating that had me puzzled. I normally don't worry
too much about them but when I see a low one with no explanation, I
get a little bothered. Everything's okay.



priority in events

2004-02-09 Thread f_d
Hi there,
when using the event structure is there a way to
interrupt a certain event for a more important one?
For instance the stop button, no matter what the program is doing it
should immediately stop.

Thanks



Re: Waveform Chart Y-T Values

2004-02-09 Thread Shakes
Hello Dennis,

I am truly sorry for that rating thing. I always get a response to my
questions from you and they proove helpful. I wanted to give this one
the max ratings. By mistake I clicked that three star one . I have no
idea how to reverse that.

I once again appologize for the mistake

shakes



Re: Save for version 5.0 with Labview 7.0

2004-02-09 Thread Mark999
Thanks a lot. I have installed both versions of LabView and it works
perfectly.



Value (Signaling) property and programmatically generate value change event?

2004-02-09 Thread Frans Verbeyst
Hi there !

I have a simple ActiveX client program (written in C) which uses
LabVIEW as ActiveX server, loads the specified VI, is able to set a
control value and run the VI.

When I use SetControlValue ("controlLabel", value), the corresponding
control indeed is set to the specified value and, if I use polling,
the VI detects that the value has changed and performs the required
action.

Now I want to take advantage of the event-driven capability since
LabVIEW 6.1 and extended in LabVIEW 7.

It is stated that "Several other event-related enhancements are
present in LabVIEW 7 Express. You now can programmatically generate
value change events by updating a control's value using the new Value
(Signaling) property."

I'd like to know if I can change the Value (Signaling) property of a
control from an external C program, and if so, how.

If not, I'd like to understand what is meant by "You now can
programmatically generate value change events by updating a control's
value using the new Value (Signaling) property." and how this is done.

Thanks !



Inizializzazione dell'asse dei tempi di una waveform chart.

2004-02-09 Thread lucia
Il vi contiene una wavewform chart che visualizza dati asincroni. In
quale modo =E8 possibile inizializzare l'asse dei tempi all'ora e la
data in cui il vi inizia a girare? Essendo i dati asincroni non =E8
possibile dare uno step di incremento costante sull'asse dei tempi,
come posso acquisire dati sul grafico e associarli all'ora precisa in
cui sono giunti?



  1   2   >