Quantcast
Channel: LabVIEW topics
Viewing all 67105 articles
Browse latest View live

Auto index only shows partial data

$
0
0

Hi everyone,

 

Please see the attached file.  I've added notes where the data goes missing.  I know it has something to do with auto-indexing and I spent quite a bit of time reading about it and trying different things but I really need some help now please.

 

Thank you!


missing parameters in labview

$
0
0

Hello guys,

I've a big problem.

I really need to build a dll on my VI (named "Controle da Fonte..").
When I try build it, it should return me some parameters but it does not happen.

I've downloaded a sample from NI when it works normally.

I've attached it.

I have no idea what's going on.

Need 0-10 v supply source for NI-9205 Simulation

$
0
0

I have done labview program using cRIO-9073 and NI-9205 module for acquiring data from sensor to measure pressure.

Since I dont have sensor ,i thought of simulation the program by giving 0-10 v  input supply.I know that this can be done  using 9263,but is their is any electricity source which will give me 0-10v

supply (suggesting something cheaper would be fine for me)   please note i need 16 sources ,am going to do differential measurement (16 channels) ,i do have calibration details to get some accurate values during simualtion

pls do suggest on this.

 

Also sugesst other ways for doing this simualtion through labview funtions if any

 

data handling from array

$
0
0

I’m working on a UT-scanner to find flaws in metal.

 A PLC gives the coordinates of the X and Y position of a ultrasound sensor. The array is built in advance and gets filled while the process is active.

The coordinates are used in 2 intensity graphs and the Z-values will be analog values [0-10V] which represent the depth of a flaw and the intensity.

When the scan is complete I need to get an overview of the positions and amount of flaws.

Example:

 If there are 10 flaws I would like to get the amount and the x/y-position of every point.

 If 2 points are next to each other it has to be recognized as 1 flaw

 

Is there somebody who knows a way to do this or has some resources to get me started?   

the project is inspired on :

USonic_C_Scan_Config    FROM http://www.ni.com/example/28618/en/

 

Kind regards

Lars  

 

 

LV RTE cannot open project files that have .lvlib references in Dependencies

$
0
0

I'm writing a LabVIEW DLL to inspect LabVIEW project files, and I've noticed that if a project has a .lvlib reference in its Dependencies, then the Run-Time Engine contradicts itself about whether or not it can find the project file:

  • Project.Open returns error 7 (file not found)
  • Project.GetFileLVVersion is successful

Here are snippets from my G and C code that exercise this behavior:

 

OpenProjectSnippet.png

 

   int openStatus = StatusSuccess;
   char* projectVersion = createStringWithLength(VersionStringLength);

   printf("Analyzing %s\n", pathString);
   OpenProject(pathString, &openStatus, projectVersion, VersionStringLength);
   printf("  Project written in LabVIEW %s\n", projectVersion);

   if (openStatus == StatusSuccess)
   {
      printf("  Opened project file.\n");
   }
   else
   {
      printf("Error: Could not find project file, or file was not a project file (error code %i).\n", openStatus);
   }

 

However, when running in the development environment, both methods succeed.

 

Is this a bug, and if so, is it fixed in LabVIEW 2014?

 


 

Here is how you can reproduce it:

 

Prerequisites:

 

    1. LabVIEW 2013 SP1 32-bit
    2. ConEmu for a good console -- https://code.google.com/p/conemu-maximus5/wiki/Downloads
    3. minGW for compiling a program to use the LabVIEW DLL -- http://sourceforge.net/projects/mingw/files


.lvlib reference in Dependencies breaks Project.Open in LV RTE

 

    1. Unzip the attachment into a temporary directory (eg c:\xtra\temp)
    2. Open "OpenProject.lvproj" in LabVIEW.
    3. Build "Open Project Library".
    4. Using ConEmu with a bash prompt, navigate to the temporary directory.
    5. Type make
$ make
patching file `builds/platdefines.h'
gcc -std=c99 -g OpenProject.c -o OpenProject.exe -lOpenProject -Lbuilds

6. Type OpenProject 'c:\xtra\temp\OpenProject.lvproj'

$ OpenProject 'c:\xtra\temp\OpenProject.lvproj'
Analyzing c:\xtra\temp\OpenProject.lvproj
  Project written in LabVIEW 13.0
  Opened project file.

 7.  Notice that both invoke nodes execute correctly.

 8.  Type OpenProject 'c:\xtra\temp\OpenProjectWithLvlibDep.lvproj'

$ OpenProject 'c:\xtra\temp\OpenProjectWithLvlibDep.lvproj'
Analyzing c:\xtra\temp\OpenProjectWithLvlibDep.lvproj
  Project written in LabVIEW 13.0
Error: Could not find project file, or file was not a project file (error code 7).

 9.   Notice that the version node succeeded while the open one failed.

 10. Type diff OpenProject.lvproj OpenProjectWithLvlibDep.lvproj

$ diff -u OpenProject.lvproj OpenProjectWithLvlibDep.lvproj
--- OpenProject.lvproj  Tue Nov  4 11:28:28 2014
+++ OpenProjectWithLvlibDep.lvproj      Tue Nov  4 11:32:37 2014
@@ -13,7 +13,11 @@<Property Name="server.vi.propertiesEnabled" Type="Bool">true</Property><Property Name="specify.custom.address" Type="Bool">false</Property><Item Name="OpenProject.vi" Type="VI" URL="../OpenProject.vi"/>
-      <Item Name="Dependencies" Type="Dependencies"/>
+      <Item Name="Dependencies" Type="Dependencies">
+          <Item Name="vi.lib" Type="Folder">
+              <Item Name="NI_MABase.lvlib" Type="Library" URL="/&lt;vilib&gt;/measure/NI_MABase.lvlib"/>
+          </Item>
+      </Item><Item Name="Build Specifications" Type="Build"><Item Name="Open Project Library" Type="DLL"><Property Name="App_copyErrors" Type="Bool">true</Property>

 


 

Here is another way to trigger this behavior, which also shows that LabVIEW only sometimes tidies the Dependencies item:

 

    1. Open "OpenProject.lvproj" in LabVIEW.
    2. Add a new VI to the project and place the "Application Directory" file path constant its block diagram.
    3. Select "File » Save All (this Project)" and use the default name for the new VI.
    4. Type OpenProject 'c:\xtra\temp\OpenProject.lvproj'
    5. Notice there is an error again, as is expected.
    6. Remove the "Application Directory" file path constant.
    7. Select "File » Save All (this Project)"
    8. Type OpenProject 'c:\xtra\temp\OpenProject.lvproj'
    9. Notice the problem is gone, as is expected.
    10. Re-add the "Application Directory" file path constant to the block diagram.
    11. Select "File » Save All (this Project)"
    12. Type OpenProject 'c:\xtra\temp\OpenProject.lvproj'
    13. Notice there is no problem, which is surprising as there should be an error since the Dependencies item hasn't been tidied.
    14. Close the new VI and remove it from the project.
    15. Select "File » Save All (this Project)"
    16. Open "OpenProject.lvproj" in a text editor.
    17. Notice the Dependencies item has been tidied.
    18. Re-add the VI back to the project.
    19. Select "File » Save All (this Project)"
    20. Type OpenProject 'c:\xtra\temp\OpenProject.lvproj'
    21. Notice there is an error again, as is expected.

 

Create Network Stream is not producing timeout error after timing out

$
0
0

I am trying to create a simple network stream and the help indicates that if the URL is not given the create should time out and the error should indicate a timeout error.  However, no timeout error is occuring after it times out.

Labview Clip.png

 

Case statement tied to error shows no error after executing on a PXI 8110 running Labview Real-Time 14.0

 

 

list of subvis that have front panel setup as pop-ups so i can beautify them

$
0
0

Hello,

I am upgrading an old project which has several  subvis that pop-up if clicked on something asking for more information or confirmation during the operation by the user.

I want to make them look better and manintain consistent front panels with company logos and apprerance, how can programatically find and list all the subvis that are going to be open as pop-up so i can beautify them,

i dont care about the other subvis in the background that dont open-up.

 

Thanks

Lego NXT - Continuous Servo VI Error


ni usb 5133

$
0
0

Hi,

 

For one  of my application, i am planning to use NI-USB 5133 card .

I need a small information regarding this card. Is it possible to access all the controls & monitor the data by using the Driver provided  along with this card with out writting any LV application. I just want to use it as an traditional oscilloscope to monitor the data manually in my laptop. if possible please share the screenshots of the driver

 

Thanks in advance

Naresh

 

 

 

Programing in LabVIEW becomes slow.

$
0
0

Programing in LabVIEW becomes so slow , If i try to connect a single wire its taking 5 sec delay i dont know why please give me some suggestion how to make it faster because IN using more than 200 controls for my project so please kindly let me know any suggestion to make it faster as with this speed we cant finish the project in time.

many controls and indicators in Labview makes the VI slower

$
0
0

Hi,

 

When i use many controls and indicators in a vi , that particular VI gets slower. Can anyone suggest me with the solution, y it is happening so. Hope the best.

Point Grey Chameleon Exposure Parameter

$
0
0

I am completely new to labview and want to control the basic parameter Exposure of my point grey Chameleon camera, but I have had no luck. I looked at this thread and the VI they presented, but I dont see any property for exposure control.

 

https://forums.ni.com/t5/LabVIEW/capturing-chameleon-raw-data/td-p/2270666

 

Then I read in another thread that we use the FlyCapture software to set the exposure through there and set the camera default, but this seems so roundabout for a simple parameter.

 

http://ni.i.lithium.com/t5/Machine-Vision/PointGrey-Chameleon-USB-camera-not-working-in-Vision-Assistant/m-p/1097260

 

Has anyone had any luck of interfacing with Chameleon so I can access the exposure? 

 

Thank you!

 

how keep data safe?

$
0
0

Hello,

I build an application with LabView that use MS. Excel to save my sensors data. but i dont know how to do it optimally. i use Excel Get work sheet and Excel Get Data in report generator toolkit for reading data from MS Excel and Excel easy table and Excel wirte to file for transfering data to MS Excel. but I have lots of problem ecpecially in wiriting data to MS. Excel. the problem is as follow:

I produce 10 catagory of data each 5 minutes in my program. I want save them in excel. but each time i want to save data in MS Excel the program open the Excel Sheet in front of running LabView application and again colse it after inserting data to it. and it is repeated for each individual data. it really makes the LabView application slow and  making the CPU busy. if I want to collect data in My Labview program for one day and at the end of the day, transfer them to MS. Excel the risk of pc shut down and data loss is critical. is there any solution or a better way for data exchange between Labview and MS. Excel?

 

Best Regard.

 

 

How to estimate the transfer function of a plant from its input output characteristics in labview?

$
0
0

How to estimate the transfer function of a plant from its input output characteristics in labview (i.e I have step response of plant and I want the transfer function)?

PXI 6259 memory full while acquiring data at 1MHz for few seconds

$
0
0

Hello everybody,

 

I'm a newbie using Labview 8.6 with PXI 6259 on chassis 1031.

I tried to acquire some acoustic emission signal with 1MHz sampling rate, but it gives the message of 'labview memory full' after 2 -3 seconds.

Is this due to the limitation of the device?

Does it have anything to do with the DMA?

I read that there are 6 DMA channels in PXI 6259, but I do not know how to locate the channel and configure it.

Any clues?

 

Thank you very much.

 

Regards,

HY

 


Is it possible to call custom property of XControl inside Facade.vi?

$
0
0

hi everyone,

 

i have set up a xcontrol with some custom read/write properties.

 

now i want to to set a property inside the Facade.vi.

is this possible with a property node?

 

like in the parent vi, when the property node is linked to the xcontrol.

 

regards and thanks for your time

 

ps: the why is because i want to test the xcontrol by itself and set some inital state

(for that purpose i have a conditional that only runs at first call in front of the event-structure.)

Raspberry et Labview 2013

$
0
0

Bonjour à tous,

 

J'ai pu voir que National Instruments annonce le support natif des plates-formes matérielles issues de ARM et Xilinx, et notamment le SoC Zynq de Xilinx sur la version 2013 de LabVIEW.

Raspberry utilisant un processeur ARM, je voulais savoir s’il est désormais possible d'utiliser des applications LabVIEW sur Raspberry PI B+ grâce à la nouvelle version 2013 de LabVIEW étant donné la prise en charge des plates formes matérielles ARM. 

 

J'ai également trouvé ce Run-Time sur le site de NI ==> http://www.ni.com/download/labview-run-time-engine-2012-sp1/3711/en/

L'installation de ce Run-Time sur mon raspberry me permettrait de faire tourner des applications LabVIEW dessus ? 

 

Merci d'avance pour vos réponses.

 

Cordialement.

 

Romain.

FieldPoint Serial, LabVIEW and Windows 7

$
0
0

FieldPoint Serial, LabVIEW and Windows 7

FP 6.1
LabVIEW 2010

 

             I thought I had my Fieldpoint figured out based on prior headaches I went through to transfer from one XP machine to another. In my first altercation with FP transfer I mamanged to get all working after installing LabVIEW. Thus I can create an executable and FP will work in it. (In my case this was the only reasonable way to get FP Serial working in an executable. I know there is a better way but all the knoledge base papers seem to say different things based on FP version LabVIEW version and so on.)


Now I am trying to transfer again to a new Win7 machine due to our IT policy.

Unlike my last transfer this one is to WIn7 64 bit but using 32 bit mode LabVIEW 2010.
I am now faced with a FP installation that works fine with LabVIEW but will not link properly to the FPLVMgr.dll file when creating an executable.

I tried importing the iak file into the project and also importing FP configuration into the project.


This allows the FP devices to show up in list of items under 'My computer' in the project file. 


But making an executable that can locate and use the dll still seems out of my reach.


I seem to be missing something important here.

How can I instruct the exe builder to point to the FPLVMgr.dll file so that an exe can be built with the correct path to the dll??


FP 6.1
LabVIEW 2010 32 bit
Win7 64 bit

 

DLL struct to cluster

$
0
0

I realize this question has been asked 1000 times before and I've looked through all of the possible solutions but am unable to solve my issue.

 

I have a DLL that controls a Softlog Systems ICP2 In-Circuit Programmer.

 

There are no LabVIEW drivers for this instrument and so I am having to use the provided DLL.

 

Here is the issue I have one of the calls that contains a struct, and with everything I have tried I always have LabVIEW crash with the error:

 

Exception: Access violation (0xC0000005) at EIP=0x01F04D3D

 

Here is the call

 

int DLL_FUNC IcpDllGetInfoSingle(ICP_INFO *aInfo);

 

Here is the struct definition

 


#define INFO_ID_SIZE 3 //firmware ID length #define INFO_GANG_QUAN 64 //maximum number of GANG channels
#define SEC_ID_SIZE 16+1
typedef struct //info from one channel of ICP2/ICP2-GANG { int iValid; //1-information in this structure is valid unsigned short iProgType; //programmer type according to PROG_TYPE unsigned short iFirmVer; //firmware version (H.L) unsigned char iIcpId[INFO_ID_SIZE]; //firmware ID (ICP serial number) unsigned short iBootVer; //bootloader version (H.L) unsigned short iIcpOpt; //ICP enabled options according to INFO_ICP_OPTIONS above unsigned short iFirmDevDb; //firmware device database version (H.L.) unsigned short iFirmPrjDb; //firmware project database version (H.L.) unsigned short iDllDevDb; //DLL device database version (H.L.) unsigned short iDllPrjDb; //DLL project database version (H.L.) int iSecMode; //security mode (1-secure environment now) int iEnvStat; //environment status according to enum PRJ_VAL – see ‎ 16.2.5 char iEnvHexFileName[SEC_ID_SIZE]; //HEX file name inside the environment unsigned short iEnvHexFileCs; //HEX file checksum char iSecIdName[SEC_ID_SIZE]; //Security ID name int iSecCntValue; //value of non-volatile security counter int iSecCntInteg; //security counter integrity (0-OK) } ICP_INFO;

 My cluster that I am using is:

cluster.png

 

I would include the code, but this DLL accesses the instrument.

 

The DLL calling convention is stdcall (WINAPI) and the parameter aInfo is set as Adapt to Type and Pointers to Handles.

 

Can't get additional decimals from a double numeric

$
0
0

I tried passing a number with 6 decimals through a double numeric. But only two decimals are being passed. I examined settings for the numeric, couldn't see why this happened.

 

Your suggestions are appreciated.

Viewing all 67105 articles
Browse latest View live


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