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

Error 1026 "VI Reference is invalid" after upgrading from LabVIEW 2015 to LabVIEW 2016

$
0
0

I have just upgrade to LabVIEW 2016 from LabVIEW 2015, and have encountered an "Error 1026".

 

The main program calls a sub VI which has a VI server reference "This VI" wired to a Refnum output on the pane. This Refnum output from the sub Vi is then used to get the "vi name", which is used as an input in "Open VI Reference" node. The program works fine in LabVIEW 2015.

 

For some reason, in labVIEW 2016, this Refnum output from the sub Vi returns a "Not A Refnum", which when used to get the "Vi name", issues a "Error 1026". On the other hand, if I open the sub Vi first (so it is in the meory), and then run my main program, it works fine.

 

Can someone explain what has changed between LabVIEW 2015 and 2016 that may lead to this issue.

 

Thanks.

 

Ian      


How to install the 32 bit version and the 64 bit version of lab VIEW 2014 SP1 in the same machine?

$
0
0

I want to have the two versions because my pc is 64 bit, but it cant function with 

LabVIEW Control Design and Simulation Module

and

LabVIEW MathScript RT Module

this two apps funtion with lab VIEW 2014SP1 32bit

also in the forum i see that it can be posible, check out the question numer 6

 

"Q. Can I have both LabVIEW 32-bit and LabVIEW 64-bit installed on the same 64-bit machine?
A. Yes."

http://digital.ni.com/public.nsf/allkb/71E9408E6DEAD76C8625760B006B6F98

 

Please Help

Turned Sensor Mapping Express VI into a Sub VI - Unable to Make Changes

$
0
0

I am working with the Sensor Mapping Express VI. I was able to work with it fine - loading a model, placing sensors, inputting an array to mimic sensor values, and outputting a 3D picture all worked fine. I initially placed 5 sensors on it at random locations on the 3D model; again, this worked fine.

 

I opened it's front panel, turning it into a Sub VI. The Sub VI contains an array cluster called long term sensor state. The first element of this cluster holds the information for sensor id and sensor position in 3D space. It contained the 5 sensors I initially placed. Now, I tried changing these location values and running my VI again, but the changes did not seem to pass through. The output model displayed the sensors at their original locations, rather than the locations I changed them to.

 

Would anyone know why my changes are not passing through the Sub VI?

 

 

Cheers,

Muhmmbles

Trying to open a .txt file from a real-time application

$
0
0

Hello:

 

I'm fairly new to labVIEW and have come across a little problem I can't figure out.  We use cRIO's and run real-time applications on them using the minidisplayport to view the front page.  We are use 2015 SP1.  The VI controls a piece of equipment. Primarily data aquisition.  At specified intervals the operator will push a "snapshot button" which saves temperature and pressure values to a datasheet.txt file which is in a folder i created on the cRIO.  I want to add a button on the front page that will open the .txt file so that the operator can view it.  I'm using the System Exec.vi to open the file.  When I tested it on my pc it works fine.  I wired "notepad datasheet" to the command line and when the button is pushed the VI launches notepad and then loads the file (datasheet.txt).  When I try it on the deployed VI on the cRIO I cannot get it to work. I believe the "notepad" on the cRIO is called "mousepad". So I tried wiring "mousepad datasheet" to the system exec VI but no dice.  I've tried the full path of the file in the command line and still no dice.  Any help would be great.

 

Thank you

IMAQdx out of memory

$
0
0

Hi!

I run mid-speed (40fps) image acquisition where each frame I save as binary file. After acqiosition, I run post processing, where each file is to be converted to png file.

When I try to retrieve them, I sometimes run into issue of "not enough memory to perform operation".  What I do is in following snippet:

snip.png

 

Could anybody point a problem with this approach? I was sure, that with each for loop cycle I do open and close a file, so there shuld be no memory leak associated with that.

Signal analysis using spirometer

$
0
0

Hello there! I am new in LABVIEW and I just struggling with this code: Basically what I need is to analyze two signals from two different biosensors and if the signals reach their threshold (i.e. # exhalation and beats per minutes) a song will play. The problem is that I want to collect data for one minute and then reinitiate the counter of exhalations and beat per minute after analyzed one minute of data. Do you know how can I do that?

 

I attached my code Thanks so much. I have been trying this for weeks without any good result. 

how to use intensity graph in data dashboard in ipad.

$
0
0

hello 

 

i am using an intensity graph in my main vi under a myRIO project.

i created a shared variable of 2D array. when i selected the variable in the ipad it doesnt show as it shows in pc.......

 

I want to mention that I have selected the multiplier as (30/255=) 0.117647 in labview in pc

 

i am using labview  2015 myRIO version.

 

and I am using iOS 10 in my iPad

can any one help me plz

Component Level IP: Generate and Check Syntax Error

$
0
0

I tried to create a component level IP for my myRio device. I encountered this problem:

Extracting top-level synthesis file information. Please wait...
Processing files...
Vivado Simulator 2014.4
Copyright 1986-1999, 2001-2014 Xilinx, Inc. All Rights Reserved.
Running: C:/NIFPGA/programs/Vivado2014_4/patches/AR62969/vivado/bin/unwrapped/win32.o/xelab.exe xil_defaultlib.conf3B887A0FF22442ACAD7559670A4D090A -L xil_defaultlib -L unisim -L unimacro -L xilinxcorelib -L secureip -snapshot top -dll -prj clipsyn.prj 
Multi-threading is on. Using 6 slave threads.
Determining compilation order of HDL files.
INFO: [VRFC 10-163] Analyzing VHDL file "C:/NIFPGA/iptemp/clip6BEF358BFCFF45AD8C68F5AB63F88A19/top.vhd" into library xil_defaultlib
INFO: [VRFC 10-307] analyzing entity top
INFO: [VRFC 10-163] Analyzing VHDL file "C:/NIFPGA/iptemp/clip6BEF358BFCFF45AD8C68F5AB63F88A19/clock_div.vhd" into library xil_defaultlib
INFO: [VRFC 10-307] analyzing entity clock_div
INFO: [VRFC 10-163] Analyzing VHDL file "C:/NIFPGA/iptemp/clip6BEF358BFCFF45AD8C68F5AB63F88A19/pwmbuffer.vhd" into library xil_defaultlib
INFO: [VRFC 10-307] analyzing entity pwmBuffer
Starting static elaboration
Completed static elaboration
Starting simulation data flow analysis
Completed simulation data flow analysis
Time Resolution for simulation is 1ps
Compiling package std.standard
Compiling package ieee.std_logic_1164
Compiling package ieee.numeric_std
Compiling architecture behavioral of entity xil_defaultlib.clock_div [\clock_div(40000000,400000)\]
Compiling architecture behavioral of entity xil_defaultlib.pwmBuffer [pwmbuffer_default]
Compiling architecture behavioral of entity xil_defaultlib.top [top]
gcc.exe: Internal error: Aborted (program collect2)
Please submit a full bug report.
See <URL:http://www.mingw.org/bugs.shtml> for instructions.

Fix the above error and check syntax again.

 

I have labview 2015 and vivado 2014.4 running on windows 8.1. Thank you in advance.


Where do I find the CAN read vi and similar vis?

$
0
0

Hello. I was looking at the "NI CAN Hardware and software manual.pdf" and saw they mention the use of the vis such as CAN read under the section "Channel API for LabVIEW". Keep in mind I installed the core package of the NI developer suite because my company only has the license for this. I tried opening up a blank project and looked for the "CAN read" vi but couldn't find it. What am I missing?

Arithmetic Overflow Tick Counter with GetLastInputInfo (User32.dll)

$
0
0

Hallo evrybody,

 

how can Tick Cout return a lesser value than GetLastInputInfo in the attached vi? When i run that vi, i get sometimes an arithmetic overflow when i substract LastInputInfo Time Value from Tick Counter.

 

I use LabView Base 2015 SP1 (15.0.1f1 32 Bit) On W7 64 bit Proffesional SP1.

 

wladimir

Serial Data processing with Interrupts

$
0
0

Hello

I'm currently working on a VI to read data from a given VRU (vertical reference unit).

The data is sent over the COM-Port. I've managed to make it run in an untimed loop with events, such that the data is read whenever something is on the Serialport. However, the data from the VRU is sent with a fixed frequency and should also be stored that way. It is split up in several messages though.

 

What I have in mind from my C-programming are two separate applications. In first one the Serial-data is read and then whenever a full VRU measurement has arrived (consists of multiple serial-messages) an interrupt is triggered which signalizes to the 2nd loop that data must be processed and stored.

As I said the first part was done, but I'm not sure now, how to make an interrupt work like that and then store it such that it has a fixed dt.

Any help or examples are appreciated.

Thank you

Problem with Labview and Nemesys (Cetoni ) Integration with Qmix SDK elements

$
0
0

Hello ,

Iam trying to interface the Nemesys syringe pump(starter module ) with labview using Qmix SDK software . But am getting the error

-515 error code, which is 

"labbCAN_Bus_API.lvlib:Error Converter (ErrCode or Status).vi<ERR>
Unexpected exception during program execution


<b>Complete call chain:</b>
labbCAN_Bus_API.lvlib:Error Converter (ErrCode or Status).vi
labbCAN_Bus_API.lvlib:LCB Open.vi
Untitled 1"

I have reinstalled the software and did every thing but am not able to find the error ! I have attached the test program pictures .

 

Thanks in advance

Tanveer Ahmed Shaik

 

labview statechart module external trigger from data acquisition error

$
0
0

I have a 2 loop vi where one is the data acquisition loop from a DAQ instrument and the second is a loop to execute my statechart from.  I want to react to a data acquisition device error if it occurs by transitioning out of my current state in my state diagram and enable custom unique case error handling.  My state diagram is a synchronous one and the send external trigger.vi funciton will not work with it.  How do I accomplish this?  In addition, there is some confusing literature on the matter in http://zone.ni.com/reference/en-XX/help/372103F-01/lvscconcepts/sc_c_callervi/ at the bottom of the page it says "Note  Sending triggers to synchronous statecharts is optional. If you do not send triggers, LabVIEW sends the NULL trigger to the statechart. If you do send triggers to a synchronous statechart, you can send these triggers from only the caller VI." 

 

Is it possible to do this and if so how with the synchronous statechart??

 

HTTP automatic refresh for LabVIEW webservice

cFP-2020 running alone

$
0
0

Hi all.

I would like to know if I can run the cfp-2020 alone with no backlplane and no modules. Just using the serial and ethernet ports.

 

Thanks


String Match Functions

$
0
0

Hi,

 

Just wondering if anyone knows why i don't get 20 in all of the string outputs from the match in my attached VI?

 

Cheers

 

Chris

Appending data to an array in a for loop

$
0
0

First time user having an issue appending data to an array in a for loop.  Only data that was read during the last pass through the for loop appears in the file.  Any ideas/solutions would be be great.  

Access filter node using scripting

$
0
0

Hi All, 

 

I'm having a look into scripting and have run into a problem. I'm placing an event structure and then creating the Panel Close? event with a True constant inside. This all works fine. I then want to wire a true constant to the output filter node Discard?.

 

I can do everything other than find the reference for the node. The input nodes are numbered using the Node.Terminal property but I can't seem to get to the output node?

 

Any help would be greatly appreciated.

 

Thanks, 

Greg

USB Device name changed - how to avoid?

$
0
0

Dear colleagues,

 

Pretty simple question. I used USB connectivity primitives for communication with my device in RAW mode (technically this is very old flatbed scanner, which haven't Win 7 driver, so I simply wrote "my own" using Driver Wizard). Everything works fine except small thing. Time to time I have new ID. So, I need to open development environment, select another one, build application, and it works until changed next time. In most cases this change happened sporadically when scanner disconnected and then reconnected to other USB port.

So. I collected following IDs:

unnamed.png

A you can see, "USB0::0x05D8::0x4002" part stays stable (this is Scanner's VID & PID IDs), but NI-VISA-XXXXX changed time to time, sometimes its 30006, next day could be 40007, etc, and I have error in attempt to open "wrong" device.

 

How to avoid this and get right name programmatically? I was unable to found any way to enumerate all connected devices.

Coercing Values within SubVIs

$
0
0

Good morning,

 

If I were to edit the acceptable values of the input of a subVI (the control within the VI itself with coerce as the response to value outside limits), then the subVI received a value outside of those, would it correct it or error out?

 

Example: SubVI control is limited to input value of 100 but the control in the main VI inputs 110. Would the subVI correct it, input 110, or error out?

 

Thanks,

 

Anthony

Viewing all 67395 articles
Browse latest View live


Latest Images

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