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

Re: Controls display in millimeter units but value in metres

$
0
0

Natively, no I don't think so. But you can just divide by 1000 when you display and multiply by 1000 when you write.


Re: Encoder signal acquisition using USB 9233

$
0
0

hi DuncanW,

 

Thanks for your reply.. I gone through the example of vi which you stated in previous post.. I tried modifying for my purpose.. but it didn't work properly.. can u provide me some prototype code.

 

thanks for your assistance.

 

Re: Re-initializing my array with reset button

$
0
0

Hi cbutcher,

 

I am actually pretty new to Labview, in fact this is my very first project. I really appreciate your advice and I will try to implement it. Hopefully I will be able to reduce the size of my codes because it is really getting out of hand! Hopefully you will help me along the way!

 

Cheers !

Jarrold

Re: Re-initializing my array with reset button

$
0
0

Hi RTSLVU

 

Sorry for giving you such a headache because I am pretty new to Labview. I am trying to work on it and improve on my codes! Smiley Embarassed

Re: Re-initializing my array with reset button

$
0
0

Hey Jeff!

 

Appreciate your advice, because I am rather new to Labview, thus I am trying to get my program to work first without thinking much on how to improve my codes. But i truly appreciate your help. I would post a few more pieces of my codes here, hoping to gain some new advice from you !

 

Cheers,

Jarrold

Re: Re-initializing my array with reset button

$
0
0

Hi Jarrold,

 


Jarrold wrote:

 

I am actually pretty new to Labview, in fact this is my very first project. I really appreciate your advice and I will try to implement it. Hopefully I will be able to reduce the size of my codes because it is really getting out of hand! Hopefully you will help me along the way!

 


I would suggest that the greatest single step you can take to aid understanding of your code (not just for forum users, but far more importantly for yourself, or people you work with/for) is to use (more?) subVIs.

 

These are just 32x32 pixels on a block diagram, and when they have a suitable icon set, can reduce vast swathes of the diagram to a small, easily understood block. They additionally prevent the need to copy and paste code into multiple places, which rapidly becomes a maintenance nightmare when you need to change something in that code.

 

I'm not sure if you're already using a project file, but if not you should also use one of those. They are used to collect groups of VIs so that they form one entity (but don't upload a .viproj file to the forums - they don't contain code). Instead zipped directories can be uploaded if the problem is larger than one VI.

Re: Re-initializing my array with reset button

$
0
0

Hi Jeff, 

I implemented the same diagram as you taught me. Just like you taught, my "Temp Time Log" displayed the same data as my previous set of codes.

 

Next step, I tried to implement the same diagram for my "Temp Data Log" but the outcome is different. Care to advice me where went wrong?

Attached is my diagram and my set of codes(I have tidied it up a little so it doesn't look too messy, hopefully it helps)

Re: Re-initializing my array with reset button

$
0
0

Hi there cbutcher, 

Can you teach me how do you create your reference array? I can't seem to be able to create thus I am not able to practice your set of codes. Would really appreciate if you can guide me.

 

Looking forward to your prompt replies ! Smiley Happy

 

Regards,

Jarrold


Re: Re-initializing my array with reset button

$
0
0

It looks like the answer to that specific question (Temp Data Log) is as simple as you're switching columns in a transposed array, but you're reversing the un-transposed array. Are they the same if you use the same input (because currently you have different inputs!)

 

As a side note - congratulations on the vastly more readable VI! (Edit: Ok, so there's still some readability problems, like wires under cases and lots of bends and so on, but still.. now it more or less fits on my screen Smiley Happy )

Re: Re-initializing my array with reset button

$
0
0

Ran out of time to edit, so here goes reproducing the message I just typed. Apologies if it no longer ties in well with what came above, I might miss bits.

 

Although it isn't the place where you should focus your efforts in cleaning the block diagram, one example of using a SubVI (or arrays) to clear up space and aid understanding/compartmentalization can be found on your Initialize case.

 

I attach an image comparing my initial (in-main-VI) work to clean it up a bit, followed by the original, followed by comparison with a subVI. The subVI is attached also (and mostly just contains what you see in the left-most pane of the image.

 

 

Re: Parsing XML Files in LabVIEW

$
0
0

Hope the file you have shared is not the proper XML Formatted data.

For well XML Formatted data you can use http://xmlgrid.net/

Which will give you parsed data and even xpath can be generated using that tool.

Re: Re-initializing my array with reset button

$
0
0

Jarrold wrote:

Can you teach me how do you create your reference array? I can't seem to be able to create thus I am not able to practice your set of codes. Would really appreciate if you can guide me.


You can create an array of references (or anything else) using the Build Array function. I'm betting you already knew that.

 

To get references to controls, you can either right click on the terminal on the block diagram, and go to "Create > Reference" in much the same way that you probably created the property and invoke nodes, or alternatively (and perhaps more suitable for your block diagram layout) you can create a VI Server Reference. The quick drop shortcut available in 2016 and later is Ctrl-Space (to open quick drop) and then "vsr", which highlights the entry. You can then press enter, which will place the node on the mouse-tip, or you can click in the background on the block diagram, which will place it immediately. I usually find 'enter' easier.

 

Having placed the VSR, you can left click on it, and move through the menus to the appropriate control, under the "Pane" entry. So for the L1-L2 Voltage reference, use "Pane > Tab Control > L1-L2 Voltage (V) > L1-L2 Voltage (V)".

 

You should keep these references around if you use the same group often (for example in the init and reset cases) so that you don't have to take up BD space creating them twice.

Re: Imaq Create Not Creating Unique Image

Re: Re-initializing my array with reset button

$
0
0

cbutcher wrote:

Ran out of time to edit, so here goes reproducing the message I just typed. Apologies if it no longer ties in well with what came above, I might miss bits.

 

Although it isn't the place where you should focus your efforts in cleaning the block diagram, one example of using a SubVI (or arrays) to clear up space and aid understanding/compartmentalization can be found on your Initialize case.

 

I attach an image comparing my initial (in-main-VI) work to clean it up a bit, followed by the original, followed by comparison with a subVI. The subVI is attached also (and mostly just contains what you see in the left-most pane of the image.

 

 



This is beautiful,cbutcher !

Now my initialization works beautifully and it looks really neat ! I really appreciate your help ! This really works perfectly ! 

Re: Can labview read .dat file?

$
0
0

Hi jj,

 

just rename your file!

 

Please provide more information for specific help...


Re: Imaq Create Not Creating Unique Image

Re: Imaq Create Not Creating Unique Image

$
0
0

nman130 wrote:

Every time I run my program with images, instead of getting an array of the images within the folder I chose, I get an array with an amount of elements equal to how many pictures I have within the folder, but they're all the last image in the folder. From what I can discern, this comes from the Imaq Create using the same storage space for all pictures even though I give it a unique name each time. Any advice?


Whats the difference between images within the folder and the Pictures within the folder.

List File will give the file names of all the files of respective pattern inside the selected folder. so check whether the List files gives you expected files or not.

Vision Indicator will popup based on the Number of File names

EEG signal processing

$
0
0

Whether labview contains tools to effectively process eeg signal  ???

Re: Imaq Create Not Creating Unique Image

$
0
0

nman130 wrote:

Every time I run my program with images, instead of getting an array of the images within the folder I chose, I get an array with an amount of elements equal to how many pictures I have within the folder, but they're all the last image in the folder. From what I can discern, this comes from the Imaq Create using the same storage space for all pictures even though I give it a unique name each time. Any advice?


-Your code right now gives the images in the Array and I don't see anything wrong with it.

-Just to make sure, the folder contains multiple .png images right?

Re: Vision Acquisition Software

$
0
0

tracyl1 wrote:

I'm currently running an evaluation version of LabVIEW 17.  I installed a licensed version of the Vision Acquisition Software, but it doesn't seem to be working correctly.  It shows up in the NI License Manager just fine, and when going to uninstall NI software the IMAQdx driver show up as installed.  When I open the palette in LabVIEW no video or IMAQdx options appear.  Also, when I try opening a VI which is designed to use the Vision Acquisition Software I get an error that it's not installed.  


-What version of VAS(Vision Acquisition Software) you installed and What version license you have?

-This is the latest VAS available: http://www.ni.com/download/ni-vision-acquisition-software-january-2017/6606/en/ 

-Look into for more Why is the IMAQ or IMAQdx Function Palette Missing in LabVIEW?: http://digital.ni.com/public.nsf/allkb/A451D3CCBB740716862578FC004DB392

Viewing all 203972 articles
Browse latest View live


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