Quantcast
Channel: All LabVIEW posts
Viewing all 202387 articles
Browse latest View live

Re: LabVIEW 2013

$
0
0

I don't need to learn all the features just yet.  I need to know how to read signals.  To get the Compact DAQ talking with software.  Do you know any specific tutorials I need to take to get the Compact DAQ talking with the software.  We have five sensors.  2 Temp 1 pressure, 1 absolute encoder, 1 hall effect sensor.  Any help would be appreciated.


wrote:

Hi Ed,

 

the only problem I can read in your message seems to be "I have limited knowledge of LabVIEW": in the header of the LabVIEW board you will find some entries to help you to learn LabVIEW!


 


Re: Extract timestamp from dynamic data

Re: Analog input-output FPGA

$
0
0

Hello,

i did the DMA FIFO and i get the signal but there is some deformation and the magnitude is false

i send signal with 100kHz anb 0.5 V. 

But the graph gave me 1500--1600 in the Y axe.

here is the files and the capture of the graph.

programmatically name cluster indicators by Key name

$
0
0

Hello,

I have written a small VI that outputs all key values of a section of my config file to a cluster.

I would like to give the string indicators in the cluster the relating key name.

I think that I am along the right lines using a property node to try and change the controls label but when I run the VI I get the following error message....

LabVIEW:This property is writable only when the VI is in edit mode, or this method is available only when the VI is in edit mode.

 

Could someone be kind enough to tell me where I am going wrong? I may have got the complete wrong end of the stick and there is a simpler way of doing what I am trying to achieve!

 

I have attached a screen grab of my block diagram in case that sheds any light what I am doing wrong.

 

Thanks for looking,

 

Iain

 

 

Re: lvlibp not readable only in Linux

$
0
0

smoot: yes, IP_wrapper opens cleanly from the LLB manager.

 

 

natasftw: I was using an lvlibp, but have a need to do a portion of my build automatically on Linux; Linux sees the lvlibp as invalid, presumably because it targeted Windows when it was built.  The llb was an attempt to abstract out that functionality without precompiling.

 

Re: LabVIEW 2013

How can I use a matlab DLL in LabVIEW Call Library Function Node?

$
0
0

 

Hi, guys. I'm brandnew labview user.

MATLAB R2017B (latest MCR), LabVIEW 2015, Visual Studio 2017 in use.


I created a DLL using m.file that I wrote in MATLAB. I'm trying to call this DLL using the LabVIEW Call library function node. I've seen a lot of community posts, but they are too old, and they do not work properly or are not what I want.

 

As far as I know, MATLAB compilation produces files such as .c and .dll .lib .h and so on. And I can not bring up this DLL directly with the LabVIEW Call library function node (I know how to use the Call Library Function Node).


Because a MATLAB DLL has a mxArray type. So I have to create the wrapper dll separately. Am I right?

when I call the dll, there are function names that -Initialize, -InitializeWithHandlers, -PrintStackTrace, -Terminate. and I don't know what this mean

 

and my question is,
Q) What is a wrapper dll?
And how can I make a wrapper dll?
finally, How can I run a dll created in MATLAB in LabVIEW?

 

thanks, in advance.

Re: programmatically name cluster indicators by Key name


Re: LabVIEW 2013

$
0
0

Hi Ed,

 

I don't need to learn all the features just yet.

I didn't suggest to learn "all the features", but I suggested to learn the basics…

 

I need to know how to read signals.  To get the Compact DAQ talking with software. 

Start here.

Then examine all those example VIs coming with LabVIEW!

How to implement callback function when DLL file is called

$
0
0

 

.h file is as follows:

IMVS_RegisterImageResultCallBack(IN void* handle,
void(__stdcall* cbGetImageResult)(char* pchType, unsigned int nFilterID, unsigned int nFrameID, char* pchResult, int nDataLen, int nImageWidth, int nImageHeight, int nImageFormat, void* pUser),
void* pUser);

 

I want to call this DLL file with CLN, but I don't know how to deal with the callback

Re: programmatically name cluster indicators by Key name

$
0
0

Hello Bill,

 

Thanks for getting back to me Smiley Happy

 

I have done as the example shows but get the error:

LabVIEW:  In run mode, LabVIEW cannot get or set a property for a control part that has not been created.

 

so I have tried to handle this by wiring the error line through a flat sequence structure and into my property node so the cluster is populated before I try and change it. (see attached)

 

unfortunately this didn't work for me....

Re: local time to us timezone

$
0
0

wrote:

Tried this (I put "Now", from Zone -4 in DST), and when I specified Zone 0, Standard Time, I got 4 hours later (as expected).  But when I specified Zone 0, DST, I got really weird values (4:47 PM, 3/26/2018 became 5:47 AM, 10/24/2010).  LabVIEW 2016, 32-bit on 64-bit Windows 10.  Other Time Zones (than 0) seem to behave OK (didn't test exhaustively).  [I'm supposed to be unpacking house-hold items from many boxes, so I'm not going to poke around and try to figure this out right now ...].

 

Bob Schor


Fixed.

Re: String to Timestamp attempt at general solution

Re: programmatically name cluster indicators by Key name

$
0
0

You are going wrong exactly as the error message is telling you.

You cannot change labels of controls on a VI that is running; you can only do that when the VI is in edit mode.

This of course means that a VI can never change any of its own labels.

Re: programmatically name cluster indicators by Key name

$
0
0

Follow the link to find out why you get the error.

 

Usually, you loop over the cluster controls, and get the label from the controls. Then use the label as a key to the configuration file. So you actually use the labels as identifier. You'll don't have the order dependency anymore.

 

Controls[] can be put outside the for loop, and auto indexing can be used instead of the index element with "i" wired to it...

 

And one more point... Show Label property won't give an error if the label was not created jet. Setting  the label will give an error if it was not created jet. This is very tricky... If you create a new control, it will not have a label. Even the steps in the link won't fix that. You need to at least once, show the label during edit time, or during running it will not be there!


Re: programmatically name cluster indicators by Key name

$
0
0

That behavior is a holdover from the days when memory was small and expensive.  Since most controls don't use a caption, in order to save memory, by default, controls have no caption.  It's not just that the caption is an empty string, the caption object does not exist (that's what is causing your error).  If you put something (anything) in the caption while editing the VI, the editor will create the caption object (likewise, if you change the caption to an empty string, the editor will delete the caption object).  Also, in your block diagram, the "To More Specific Class" and "To More Generic Class" functions are completely superfluous.

Re: Use of the circular buffer for the calculation of the average of a current

$
0
0

On your front panel, go to the Graph palette and drop the one called Ex XY Graph.  This drops an XY Graph along with an Express VI that takes the individual XY points and builds them into arrays that it feeds to the XY Graph every iteration.  Effectively it turns the XY Graph in an XY "Chart".

Re: Waveform+Chart+Array Average

$
0
0

I need to find the average after converting the data to Celsius. Please let me know how i can do that.Thank you sir. I really appreciate the help Smiley Happy

Re: programmatically name cluster indicators by Key name

$
0
0

wrote:

If you put something (anything) in the caption while editing the VI, the editor will create the caption object (likewise, if you change the caption to an empty string, the editor will delete the caption object). 


Replacing the Caption with an empty string will not delete it. Once it is created, it will be there. I don't think there is a way to delete it completely, to gain back those precious bytes.

 

I've started a thread on a private forum. This issue should at least be added to the Support article. As it is now, the instructions simply do not work (on new controls).

Re: local time to us timezone

$
0
0

Thanks.  Sneaky how those Conversions can mess us up at times ...

 

Bob Schor

Viewing all 202387 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>