Quantcast
Viewing all 69258 articles
Browse latest View live

Standard Report won't print

I'm using LV2015-SP1 Pro and trying to generate a report of the "standard report" type, then print it to the default printer.  My application runs to completion with no errors, but no print is made.  The PC's OS is Windows 7 Pro.

 

For a test I loaded "Easy Text Report.vi" from the NI library, and I get different results depending on the "report type" that I select:

Standard => runs to completion with no errors, but no print is made.

HTML => runs to completion with no errors AND generates a print.

Word => fails; cannot find NI_Word.lvclass

Excel => fails; cannot find NI_Excel.lvclass

 

I don't want to use HTML because I'm porting an old application from LV7 and it's already written for the "standard report" type (and it worked fine in LV7).  But LabVIEW seems to refuse to print a "standard" report.  (Also I haven't been able to find much detailed information about the "standard report" class.)


Changes to Code which the IDE "forgets"

I've come across some situations where I've made changes to a group of VIs or Objects and when it comes to close LabVIEW, LV conveniently forgets that certain things have changed.  I say forget, but that's being nice because LV never seems to have known about the changes in the first place.  If I rely on LV telling me what to save when closing a project, it often ends in tears.  Re-loading the code can be broken as a result, or even worse, it might work but intriduce some hard-to-find bugs.  Of course the solution would be to save rigorously, but I still think LV should try to keep things intact if possible.

 

  • FIFO Reference settings on FPGA (Read, Write, Clear) settings are completely ignored.  LV claims things have not changed, but they have.

Image may be NSFW.
Clik here to view.
FIFI reference FPGA.png

  • Changes to many LVOOP (.lvclass) properties.  Again LV claims they have not changed, but they have.

Do others have more examples?  Each time I get bitten by this behaviour I rage shortly but just get back to work.  If we can try to get a list together, maybe it'll be enough to slap an idea on the Idea Exchange.

 

I'm using LV 2015,s o maybe things are better in the current versions?

How to implement a live data logging (camera) into Excel using LabVIEW

Hi guys,

 

I would like to see my data being recorded live (the data will appear one by one out live) in Excel. Is it possible to be done using LabVIEW?

 

I have to capture the data every second for 1 minute. 

All the data I am capturing using camera. 

 

Thanks in advance!

Automation Refnum Constant Not Saving Reference to ActiveX

I am currently using 32bit LabVIEW 2017 on a Windows 7 machine. I have an automation reference constant that I am using to connect to an activex dll that was provided me by a camera company. If I right click and choose select ActiveX class and then Browse I can't find my activex library in the list. If I click Browse again, I can manually find my dll file. I then click ok a couple of times and I test my application and it works as expected. I then close my project and LabVIEW. If I reopen LabVIEW and my project and find my VI that contains the Automation Reference, the reference is no longer connected to the desired dll ActiveX. Is there something I can do to get this connection to save? The current process is, every time I come to change this program and rebuild it, I have to remember to come and reconnect the reference by hand. Any help would be greatly appreciated. So far I have tried registering the dll with windows using the regsvr32 command. Windows tells me I have successfully registered the dll but the above behavior continues. I haven't been able to find any other way of calling an ActiveX in LabVIEW other than the Open Automation VI which exhibits this behavior.

Error 1 Enqueue

Hi

 

I have attached a basic producer consumer loop with the different events as enum values. But an error is happening in enque and only the first event is happening, remaining events are not being queued. Do please kindly help me in solving the problem. Thanking You.

 

Govind

proper lvlibp usage

EDIT: Although my original question remains (see original below), I discovered the reason for the problem that ultimately led me to that question, so in that sense my problem is resolved.  I'm still curious to know the 'best practice' for using lvlibp, i.e. for a given VI if I need to call a subVI that's in an lvlib, I can either place down the version inside the lvlib, or the version inside the lvlibp.  What's the rule of thumb? 

=====

I have an executable I distribute and it makes use of a plug-in architecture.  For this to work, I used a PPL in the plug-ins, and functionally everything is fine.

 

As I developed more features, I found that a value I was setting in my global variable in the main program was not reflected in the same global in the PPL.  I researched and learned (here: https://forums.ni.com/t5/LabVIEW/How-to-access-common-global-variable-between-different-Packed/td-p/3324410) that because the plugin VI has its own namespace, it creates its own copy of the global.

 

I sought to rectify that situation by creating a new PPL consisting solely of the global variable, and then using this lvlibp across my entire project.  This works, but the problem is - let's say I need to change the contents of the lvlib used to create this lvlibp...it won't let you simply right-click the build specification and rebuild it, because it says the PPL already exists at that location.  But nor can I easily delete the existing PPL, because its listed as a dependency.  I can delete it from the disk, and then re-open the project, but at that point it searches for the lvlibp and can't find it, so then I have to deal with all those warnings.

 

The surface solution to this problem, from my standpoint, would be to only reference the lvlib in the 'parent' code, and only reference the lvlibp in the 'plugin' code, but like I said, then they have their own namespaces.  Is it ok to use the lvlibp in both, and if so, how do I manage the headache of changing the contents of the lvlib and regenerating the ppl ??

 

thank you in advance

Dual Analog Waveform

I have been trying to create a dual waveform generator from an analog voltage output.  I have been trying to use the link https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z0000019L6WSAU, but it is not working for me.  Whenever I put more than one channel in the physical channels, the Daqmx Write (set to Analog 1D Wfm, NChan, NSamp) has an error.  It says that there are two tasks going into the Daqmx, but it is only set for one. I am unsure on how to proceed from here.  Is there a way to use a Daqmx to write the waveforms from two different channels. 

 

 

Labview 2012 SP1 Crashes in Windows 7 SP1

I have Labview 2012 SP1 on my Dell Optiplex 780. I'm not a heavy user, so please bear with me.  Light enough use in fact, that it will be an issue to be able to get a purchased update.

 

My Labview 2012 SP1 (32 bit) crashes just about no matter what I ask it to do.  I can open the program and start a new project. I am trying to do simple things like operate an Agilent 34420A to make temperature measurements.  Even when I try using Instrument Assistant, it crashes.  I am suspecting a compatibility problem between my 2012 Labview and Windows 7 Service Pack 1.  This seems to be a popular break point in compatibility.

 

Is anyone aware of such a compatibility issue?


Manipulating subVI data before reaching the Trigger VI

Hi,

 

I am trying to setup an automated triggering based on data from a sensor that outputs current. However, the sensor data has a high frequency noise that I am afraid could generate false triggers on the system.

 

All my acquisition settings are originating from a subVI and the trigger data is "pulled" from there using the "source" input to the Trigger VI. Would anyone know of a way I could include a signal processing tool (Butterworth filter) in the data path before the raw data reaches the Trigger VI? Attached is a snippet of how my DAQmx code looks like currently.

 

I appreciate any help,

 

Thank you,

 

Elapsed Time VI Writing Duplicate Time Values

Hello everyone,

 

So I am having trouble writing time at 1000Hz. I am using the producer consumer template to do high speed data acquisition across two channels with the USB 6002. The issue I am having is my VI writes two sometimes three of the same time values. I initially thought it was because the elapsed time VI outputted a single precision number, resulting in rounding. It is not a single precision number; it is double precision. I checked to see if time was being rounded somewhere in the producer consumer template. It’s not.  The same time value which outputs the elapsed time VI is the value which is written to the text file. Down below is a screen clipping of an array on the front panel to prove this. 

 

Can the elapsed time VI not keep up with a 1000Hz? If so, how do I fix this?

Down below are screen clippings of my VI and data. I also attached the VI if you are curious.

 

Any information would be appreciated!

 

Image may be NSFW.
Clik here to view.
Time PCT.png

Image may be NSFW.
Clik here to view.
PCT.png

Image may be NSFW.
Clik here to view.
Data 1.png

Image may be NSFW.
Clik here to view.
Data 2.png

 Image may be NSFW.
Clik here to view.
Time Array.png

Channel template missing from the f5 patch

Hi, everyone:

 

I have LV2016 with f5 patch and I don't see the option for this channel template.  I think the f-patches are not cumulative, yet when I try to install f1, it says a higher version is already installed.  Do I need to uninstall f5, install f1 and then re-install f5?

 

Thanks for your patience!

Replace array subset in parallel for loop without increasing memory

I am working with a large set of data (if I am not careful I crash the program because the computer can’t allocate enough to Labview) in an array and would like to loop through and modify portions of the array at a time.

I have implemented the code just fine in a regular for loop, but can’t seem to find a way to parallelize it and still convince the compiler I am not going to step on myself with other loop iterations and maintain my memory footprint.

 

Basically the data is really a bunch of different arrays with a wide range of lengths but putting it all in a 2D array will drastically increase the amount of memory required.

So instead I have a 1D array of data (all concatenated back to back) and another array containing the length of each sub-array, and for ease of use a third array containing the starting locations of each sub-array.

 

In each loop I want to grab off a sub-array, do some manipulations to it, and then put it back in the same memory location. I have tried a few different approaches but not been able to find the right solution. I could use replace array subset and a shift register but I get a "dependence between loop iterations" error. I could also just peel off my various sub-arrays and concatenate them back together on the way out of the loop but I believe this will double the memory required.

 

I have included a sample code of one of my various attempts that is similar in nature but vastly simplified from what I am trying to accomplish.

 

Ultimately I am doing the work to make sure there are not actually any dependencies between the loop iterations but Labview doesn’t know that. Is there a better way to do this, or can I tell labview to ignore this warning and compile anyway (preferably only in this instance)?

 

Any help is greatly appreciated.

Thanks

Image may be NSFW.
Clik here to view.
TestParallel.png

 

 

cannot install software on cRIO 9035 LV2014 SP1

Hello,

I am not able to install software on the cRIO 9035. All it says its for instance

Chinese language support needs Real Time 14.0Image may be NSFW.
Clik here to view.
real time support missing.gif

the feature's real-time support for this target type may not be installed

Actually I got RT 14.01.

Cheers,

 

Steffen

 

Calling frunction from dll that has struct parameters that consist of struct

I have function in DLL:

 

unsinged long MyFunction( void *pHandle, OverCurrentProtection *pStatus);

 

Parameter *pStatus is of a type OverCurrentProtection that is defined in c++ as:

 

structOverCurrentProtection : OverVoltageProtection

{

 uint32_t current_ma

uint32_t current_A

}

 

and the parent class of a OverCurrentProtection is OverVoltageProtection, that is defined as:

 

structOverVoltageProtection

{

 uint32_t testFinished;

uint32_t rec = 0;

}

 

When I try to import DLL using Import Shared Library wizard the function is not recognized.

My Questions:

1. How can function be defined using Call library function node?

2. How should function be defined in c++ so that Labview will be able to recognize it?

 

 

Shared Variables to Communicate Between two computer - reduce the reception time ?!

Hi,
I succeeded to share my variable between two computer with SVE (Shared Variable) by TCP/IP in my network.but this operation lasts 6 seconds for receive the data in my client. is there another way to reduce this time or change the technologie of SVE?
Image may be NSFW.
Clik here to view.
clientt.png

Thank you.




labview does de-activate licence

Hola, estoy trabajando en un programa que reciba datos por bluetooth desde un dispositivo HC-06, el problema es que al correr el VI el 'visa resourse name' no reconoce ningún puerto por el cual se pueda establecer la comunicación, y no se si sea el programa (por un fallo la paleta de funciones) o por algun problema en la configuracion de la PC. Espero puedan apoyarme.

Using cluster controls with Queued State Machines

When attempting to read a control cluster within the loop processing queued messages, the cluster controls are not read in the first iteration. They are read within the second iteration, the second time the message is processed. Just wondering if there is a workaround for this, or maybe a QSM is simply not the best architecture when reading control clusters are involved.

Warning VISA Read 1073676294 (Hex 0x3FFF0006)

Bonjour,

 

Je viens vers vous car je n'arrive pas à solutionner mon problème tout seul.

En cours de code j'ai eu un problème concernant le VISA READ: error timeout. Je vais donc regarder sur les différents forums s'il n'y a pas déjà de réponse à ce sujet. 

Je tombe sur un topic résolu concernant ce problème: l'error timeout est résolue avec un "bytes at serial port" et une fonction attendre pour donner du temps au visa read lors de la lecture.

Mais il persiste un "warning":

" La mise en garde 1073676294 s'est produite à VISA Read dans lecture Temperature.vi

Raisons possibles :

VISA: (Hex 0x3FFF0006) Le nombre d'octets transférés est égal au décompte d'entrée attendu. Davantage de données sont peut-être disponibles."

 

Ce warning "bloque" l'écriture dans mon buffer. Cette commande fonctionne sous NI MAX, je ne comprends donc pas pourquoi elle ne marche pas dans mon programme Labview.

 

Tout conseil est le bienvenu Image may be NSFW.
Clik here to view.
Smiley Happy

 

Le vi est en pj

missing task and channel in DAQ assistant

Hello
I'm new to the forum and new in the field, so I'm working on LabVIEW recently and I have a little problem is that when I am following tutorials on the internet they talk about NI-DAQmx to acquire data or simply take a measure so we must Configure the DAQ assistant> Acquire signals > analog input > Voltage and there one is supposed to choose physical channels I believe except that nothing is displayed, there is no list, just writes " No supported devices found "So what's the problem please?

thank you for your answers

error 2147319779 occurred at library not registered in NI Report Generation Toolkit

Hi, I am new to LabVIEW, and currently I am using Labview 2016 and MS Office 2007. when I tried to generate a report using MS Office Report Express Vi, I am getting this error. Please help me to solve this error.

 

Viewing all 69258 articles
Browse latest View live


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