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

"error -42212"

$
0
0

Hi,

can someone help me with solving this error that aquire i did put the vi down below .


Stable, software-driven square wave output to DAQ device

$
0
0

G'day,

 

Today is the first day I've really used Labview NXG, and I'm having some issues with a fairly basic task. My DAQ device (PCI-6509) doesn't have any counters, so I'm unable to use the DAQmx Counter functions to generate waveform outputs.

 

As such, I'm trying to create a waveform in software using system timers, which then toggle a digital out pin HIGH/LOW. This approach works to an extent, but only for a very narrow and relatively low range of frequencies. I can't imagine my approach is optimal, but unfortunately all/most of the examples I've found only are .vi files and not useable in NXG?

 

I've attached my .gvi file for reference. Any guidance would be greatly appreciated. For context, the aim is to simulate the output of a hall effect sensor measuring the rotational speed of a motor. The simulated hall effect output should be as precise as possible between 0 and ~400 Hz.

 

Thanks!

Cubic root of integer

$
0
0

Hello, 

 

I am currently implementing some formulas and one requires the cube root of an integer, I have searched around and seen on other discussions that there is a way to do it through the
Arithmetic -> logarithmic palette but I do not have an option for logarithmic in my arithmetic palette.

 

Is there another way of cube rooting an integer or a way to fix the missing logarithmic option? 

 

I am using LabVIEW 2017 32-bit.

Thanks!    

Help converting from LV5.1 to LV2016

FPGA Host Timing Vision Assistant

$
0
0

Hi

 

Im working on thesis with title comparasion of image processing between fpga and microcomputer using myRIO and Raspberry Pi. The result i got is Raspi is faster than the myRIO. Why is that? i use tick count to calculate processing time in Host VI and OpenCV python. The myRIO is should be faster right? Is there anything wrong in my code? can someone take a look at it? thanks

 

nb: I know that Vision Assistant use SCTL to compile. but how to calculate the processing time?

Bamboo HTML5 Build Error

$
0
0

From Tuesday 08/05/2018, we have not been able to successfully build our HTML5 builds on our bamboo server.

The build uses an NPM install command for our source files but fails reporting the following git related messages:

  • err Git not installed
  • err Unable to load registry github

When trying to do the build manually on the server, the NPM install completes successfully without such errors.

Both git and nodejs (npm/gulp) are installed on the server and have been working without issues for months up until Tuesday - included an extract of the logs at the bottom of this ticket for reference.

We have contacted our infrastructure team who have been investigating this issue too but thus far, not found any cause behind this failure - in fact, they do not see anything in their logs at the point we get the error message following the NPM install command.

Please see Build log below with errors

Can anybody advise what we can do to resolve this issue? Thank you

 

 

build 10-May-201810:32:47> typings install && jspm install
build 10-May-201810:32:47
error 10-May-201810:32:50 typings WARN deprecated 12/5/2016:"registry:dt/angular#1.5.0+20160802155123" is deprecated (updated, replaced or removed)
error 10-May-201810:32:50 typings WARN deprecated 7/1/2016:"registry:dt/angular-route#1.3.0+20160317120654" is deprecated (updated, replaced or removed)
error 10-May-201810:32:50 typings WARN deprecated 5/10/2016:"registry:dt/ag-grid#2.1.2+20160317120654" is deprecated (updated, replaced or removed)
error 10-May-201810:32:50 typings WARN deprecated 7/1/2016:"registry:dt/angular-mocks#1.5.0+20160608104721" is deprecated (updated, replaced or removed)
error 10-May-201810:32:50 typings WARN deprecated 10/25/2016:"registry:dt/jasmine#2.2.0+20160621224255" is deprecated (updated, replaced or removed)
error 10-May-201810:32:50 typings WARN deprecated 9/29/2016:"registry:dt/jquery#1.10.0+20160704162008" is deprecated (updated, replaced or removed)
error 10-May-201810:32:51 typings WARN deprecated 11/21/2016:"registry:dt/angular-xeditable#0.2.0+20160705072627" is deprecated (updated, replaced or removed)
error 10-May-201810:32:51 typings WARN deprecated 10/10/2016:"registry:dt/moment#2.11.1+20160829143156" is deprecated (updated, replaced or removed)
build 10-May-201810:32:52[?25h
build 10-May-201810:32:52+-- bowser
build 10-May-201810:32:52+-- ag-grid (global)
build 10-May-201810:32:52+-- angular (global)
build 10-May-201810:32:52+-- angular-mocks (global)
build 10-May-201810:32:52+-- angular-route (global)
build 10-May-201810:32:52+-- angular-translate (global)
build 10-May-201810:32:52+-- angular-xeditable (global)
build 10-May-201810:32:52+-- es6-promise (global)
build 10-May-201810:32:52+-- http-status-codes@1.0.0(global)
build 10-May-201810:32:52+-- jasmine (global)
build 10-May-201810:32:52+-- jquery (global)
build 10-May-201810:32:52`-- moment (global)
build 10-May-201810:32:52
error 10-May-201810:32:55
error 10-May-201810:32:55 err Git not installed.You can install git from http://git-scm.com/downloads.\\ error 10-May-2018 10:32:55 
error 10-May-201810:32:55 err Unable to load registry github
build 10-May-201810:32:55
build 10-May-201810:32:55 warn Installation changes not saved.
error 10-May-201810:32:55
error 10-May-201810:32:55 npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0(node_modules\browser-sync\node_modules\chokidar\node_modules\fsevents):
error 10-May-201810:32:55 npm WARN notsup SKIPPING OPTIONAL DEPENDENCY:Unsupported platform for fsevents@1.2.3: wanted {"os":"darwin","arch":"any"}(current:{"os":"win32","arch":"x64"})
error 10-May-201810:32:55 npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0(node_modules\gulp-watch\node_modules\chokidar\node_modules\fsevents):
error 10-May-201810:32:55 npm WARN notsup SKIPPING OPTIONAL DEPENDENCY:Unsupported platform for fsevents@1.2.3: wanted {"os":"darwin","arch":"any"}(current:{"os":"win32","arch":"x64"})
error 10-May-201810:32:55 npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0(node_modules\karma\node_modules\chokidar\node_modules\fsevents):
error 10-May-201810:32:55 npm WARN notsup SKIPPING OPTIONAL DEPENDENCY:Unsupported platform for fsevents@1.2.3: wanted {"os":"darwin","arch":"any"}(current:{"os":"win32","arch":"x64"})
error 10-May-201810:32:55 npm WARN itrade@1.0.0No repository field.
error 10-May-201810:32:55 npm ERR!Windows_NT6.1.7601
error 10-May-201810:32:55 npm ERR! argv "C:ProgramFiles\\nodejs
node.exe" "C:ProgramFiles\\nodejs\\node_modules\\npm\\bin
npm-cli.js" "install"
error 10-May-201810:32:55 npm ERR! node v6.13.0
error 10-May-201810:32:55 npm ERR! npm v3.10.10
error 10-May-201810:32:55 npm ERR! code ELIFECYCLE
error 10-May-201810:32:55 npm ERR! itrade@1.0.0 postinstall:`typings install && jspm install`
error 10-May-201810:32:55 npm ERR!Exit status 1
error 10-May-201810:32:55 npm ERR!
error 10-May-201810:32:55 npm ERR!Failed at the itrade@1.0.0 postinstall script 'typings install && jspm install'.
error 10-May-201810:32:55 npm ERR!Make sure you have the latest version of node.js and npm installed.
error 10-May-201810:32:55 npm ERR!If you do,this is most likely a problem with the itrade package,
error 10-May-201810:32:55 npm ERR! not with npm itself.
error 10-May-201810:32:55 npm ERR!Tell the author that this fails on your system:
error 10-May-201810:32:55 npm ERR! typings install && jspm install
error 10-May-201810:32:55 npm ERR!You can get information on how to open an issue forthis project with:
error 10-May-201810:32:55 npm ERR! npm bugs itrade
error 10-May-201810:32:55 npm ERR!Orif that isn't available, you can get their info via:
error 10-May-201810:32:55 npm ERR! npm owner ls itrade
error 10-May-201810:32:55 npm ERR!There is likely additional logging output above.
error 10-May-201810:32:55
error 10-May-201810:32:55 npm ERR!Please include the following file with any support request:
error 10-May-201810:32:55 npm ERR! E:\bamboo-agent-home\xml-data\build-dir\IT-TS-JOB1\root\itrade\web\HTML5\iTrade\npm-debug.log

 

 

 

Programmatically Changing indicator type.

$
0
0

Hello,

 

I am wondering if there is any way to programmatically change an indicator type. I have a gauge indicator and i wish to replace it to a numeric indicator with a toggle switch. This toggle switch will allow me to go back and forth in between the types. One way to do it is by having both indicators in the front panel and use the switch to hide or show but it would be nicer if i don't need to add both and maybe a property node can do it.

 

Resize and center FP window to all visible controls

$
0
0

Is there any community VI which will scan a FP for visible controls and resize and center the FP window on those controls?  Maybe even one which can exclude selected controls (Like error in and out)?

 

I ask because I resize controls programmatically, but want a generic way to resize the FP to those resized controls are entirely visible (Up to some limit of course).

 

I do use the OpenG Resize to largest decoration Vi quite a bit, but that only works for static decorations.

 

Thanks,

 

xl600


NIlibeay32.dll error

$
0
0

Hello everyone,

 

I have a windows application developed in Labview, it's recording acceleration data coming from accelerometers. On the system, we have a couple of NI9230 devices connected to NI9181 and NI9191 modules. So communication between devices is done over ethernet. It's working perfectly on all of our computers but one. On that specific machine, it causes a Windows error that I am unable to solve. The error recorded to Windows event log is;

Log Name:      Application
Source:        Application Error
Date:          10.05.2018 18:07:00
Event ID:      1000
Task Category: (100)
Level:         Error
Keywords:      Classic
User:          N/A
Computer:      DESKTOP-75KFKSS
Description:
Faulting application name: Acceleration Measurement and Logging.exe, version: 1.0.0.0, time stamp: 0x58ce9923
Faulting module name: NIlibeay32.dll, version: 17.0.0.49152, time stamp: 0x58b5d904
Exception code: 0xc0000005
Fault offset: 0x0000000000015323
Faulting process id: 0x830
Faulting application start time: 0x01d3e8707442310e
Faulting application path: C:\Program Files\Acceleration Measurement and Logging\Acceleration Measurement and Logging.exe
Faulting module path: C:\Program Files\National Instruments\Shared\nissl\NIlibeay32.dll
Report Id: f3ece9d6-d549-49a5-96d4-e89693fe797d

I have already tried to uninstall and install everything related without luck and would appreciate if anyone could help me to solve this problem. 

 

Regards,

Ugur

 

Using cluster type for SubVI output

$
0
0

Dear All,

Could you please help with a simple question. I want to use my user type (cluster) as a SubVI output parameter.

The issue is like when my SubVI doesn't fill-in the output cluster with actual data, it's being filled-in implicitely by zeroes. Why that?

Please find a simple illustration project attached (LV2017)

My general target is to fill a big data cluster from SubVI. So how do I do it correctly? I thought that I could create my big cluster in a caller VI and then pass something like a reference to my SubVI, but I cannot find how to do that. I have to put my big data structure directly into SubVI. Is it correct? Does it mean that data is created in a SubVI and then copied to the caller VI?

So my general question is - how to correctly pass references to big data structures to SubVIs correctly.

 

Thank you. 

 

Parallel Loop not starting

$
0
0

I am trying to run parallel loops.  The VI should run both the "before record loop" and the event structure loop in parallel when starting the program.  Both these loops exit and the "record loop" begins when the "record data" Boolean is selected on the front panel.  About half the time I start the program, the "before record loop" does not begin.  The other half, the both loops run as expected.  Please let me know why this is occurring.  I'm willing to send the files if needed.  Is there an easy way to post a project and all it's subvis?  Or do I have to load each subvi independently? 

How much memory is used by filters?

$
0
0

The vi I am working with takes 17,500,000 samples per channel over three channels. It will capture it all fine, but when I went to add a filter I was getting a not enough memory error. The target computer is 64bit, so it should have 4gb of memory to use. The samples are stored as doubles in an array, which gives a total of a little under half a gb used for the three arrays. Are the filters that memory intensive, or is there something else going on?

TCP Write and Read take too long

$
0
0

Hello, I´m using an ESP8266 WIFI module as a client (controlled by a PIC18F2550), and a Timed Loop, where first a TCP Write sends "x" bytes to the module and then  a TCP Read receives "y" bytes from the module. It works. The problem is that for the application, I need 10ms for each iteration of the Timed loop.

The PIC  sends the bytes (through the module) 1ms later than it receives from LabVIEW. And the operation (Write - Read) takes less than 2ms. But despite the timed loop is set to 10ms, each iteration takes 30ms.

Do you know why?. Is there a way to make the TCP Write and TCP Read VI's work faster?

Here is the code. Before the timed loop, a TCP listen, wait for the connection, once the module and LabVIEW are connected, it goes to the loop.

Thanks.

Waveform Data to Excel Spreadsheet

$
0
0

Good afternoon, 

 

I have written a vi that takes data from an input and writes an output based on this input. This data is graphed in a waveform graph. I then go to the front panel and manually export the data from the waveform graph to an excel spreadsheet by right clicking on the waveform graph and selecting 'export' ~>'export data to excel'. 

 

I was wondering if there was a better way to export the data from this waveform graph that did not involve manually saving it each time. I tried using a 'Write to Measurements File' vi, but the time format is wrong each time. 

 

The vi is attached below. 

Any suggestions on how to fix this? 

 

Best, 

Mike

Can't open project or VI (nothing happens, no error) - Labview 2017 myRIO

$
0
0

Hello,
I'm working on myRIO project and i was searching for some information about ultrasonic sensor. I've got a myRIO project that is related to this topic and I also found some other VI on the internet that seemed to do what I'm trying to do. But i'm not able to open them.

When i double click on one of them (project or some VI) in windows file explorer it launches LabVIEW and no project or VI is opened. It just opens LabVIEW and that's it.
When i'm trying to open project or VI from LabVIEW also absolutely nothing happens - no error whatsoever.

I also tried to add single VI to blank project and i get this warning: "has been deleted, renamed or moved on disk".

Even stranger is that my friend was able to open them just fine and I have no clue what is wrong with my computer/LabVIEW. There is no error telling me what is wrong and I'm helpless.


2018-05-10_19-07-52_LabVIEW.png

 

I have LabVIEW 2017 with installed myRIO. I made clean installation of LabVIEW so I removed my previous version of LabVIEW 64-bit and installed new LabVIEW 32-bit and everything else from LabVIEW 2017 myRIO Software Bundle Web Installer recomended on this site. Including FPGA module etc.


2018-05-10_19-23-51_LabVIEW.png

 

Here is one of the files that i'm not able to open: myRIO HC-SR04 Ultrasound Module. I also attached this file it in this thread.
Please help, i have no idea what is wrong.


Communication with serial device

$
0
0

I am working with a custom control board that I communicating over RS232. It has been used in my company for some time, so I have some LabVIEW code to communicate with it. I am not very knowledgeable about serial communications, but it seems like we are not reading it in the most efficient way. We read 5 bytes at a time in a loop until we hit a timeout.

 

We have a command set of ~40 ASCII commands. The responses vary in length quite a bit. Many of them end with "\r>\r>" (slash codes display), but not all of them. Some of the commands put the board into a state, like waiting for a trigger, or waiting for USB data to be sent. Those responses end with "\r>\r>[MNGR/EXPOSE]\r" and "\r>\r[MNGR/RECEIVING]\r" respectively. 

 

When the return messages are very long, it can take up to 800ms to get the entire response back, so we set the timeout to something like 1000ms, but then the read function will add an additional second because it waits to timeout. Pictures of the VIs shown below, please let me know if you need any extra information about the device.

 

Serial Write Read.png

FlexRIO 17.0.1 driver not installing FlexRIO Instrument Development Library

$
0
0

My current install of LV 2017 does not include the FlexRIO Instrument Development Library.  My understanding is that this was an independent install through LV 2013 but has since been rolled into the FlexRIO driver.  I have tried re-installing the FlexRIO 17.0.1. driver a number of times with different options selected but have had no success getting it to install the needed libraries (which I believe usually reside in '~/LabVIEW 2017\instr.lib\FlexRIO').  Does anyone have any suggestions for this situation?

Objects No Longer Move When Expanding Structures

$
0
0

When I initially started coding in the LabVIEW environment, the structures within the block diagram caused other objects to move when expanding the structure. Now the objects don't move when expanding structures. Is there an option or keyboard shortcut that I may have pressed to cause this feature to disable? Here is a picture of what structures currently do when attempting to expand them.

Previously compiled FPGA .vi now hangs at the beggining of the "synthesizing" step of the complilation

$
0
0

The problem has resolved itself. A computer restart fixed the issue.

Error 1055 when Creating One Element Stream Channel Read with Abort

$
0
0

I'm trying to add a one element stream channel with abort for a Boolean. I can create the write with abort, but whenever I try to create the read with abort, I get an error 1055 as shown in the screenshot. I can create a regular one element stream channel write and read, and the regular stream with abort works fine.

I've tried with multiple data types on the one element with abort, but get the same error.

I've tried on another computer with LV 2017 32-bit, but get the same error.

I've tried deleting the channel instances in C:\Users\<me>\Documents\LabVIEW Data\2017(32-bit)\ExtraVILib\ChannelInstances, but I still get the error.

I'm starting to wonder if the one element stream with abort is not a valid channel type...

Viewing all 69534 articles
Browse latest View live


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