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

Error 89120 acquisition

$
0
0

Hi!

I have been using an acquisition vi for modal analysis for a long time now. It works fine when it is a normal impact test because the Hammer channel and the accelerometer channels are in the same task constant. However now I want to do an impact test with displacement sensors instead, that means that I have to synch the hammer channel (PXIe-4492) with another chassis (SCXI-1000) connected through a PXIe-6341. I modified the VI inserting a synch vi to synchronise both tasks but when I want to start them a 89120 error pops up. Any idea why? Thanks a lot! I'm using Labview2014


Scan from String: Error 85 (arg1) with valid input string

$
0
0

Hi all,

 

I'm trying to use Scan from String to extract data from a string retrieved over a serial line to an Arduino that I programmed - meaning I know exactly what the strings look like. When I test the Scan from String with a minimal-working-example on an actual data string, it works fine. In the full VI however, it keeps throwing back Error 85 (arg1) already on the first iteration and I cannot find why.

 

The string ends with CR and contains data of multiple controllers, formatted as: ><name1>,<Kp>,<Ki>,<Kd><name2>,... An example string would be: >PRE, 1.000, 5.000, 0.000GAS, 1.000, 0.000, 0.000

Since the number of controllers is flexible, I use a while-loop to read the controller-data into an array of clusters - each cluster consisting of a string (name) and three floats (Kp, Ki, Kd) - using Scan From String. For each iteration, it scans the string for the sequence of %[A-Z],%f,%f,%f and continues on the last scan offset until the remainder string is empty.

I have tried not using the index but feeding the remainder string back into the loop/function, but that gave the same error - it always throws the error already on the first attempt. When I probe the input string and then copy it to the minimal-working-example, it works flawlessly...

 

Attached are the two VI's: one is the actual VI, with all the extra functionality with it. The second is a minimal-working-example with an actual datastring, and this works.

 

Am  I missing something? Help would be appreciated!

Continuosly need a running time for a elapsed time

$
0
0

Hello all , 

i need to find a elapsed time for time consumed. I have used a " Get date and time in seconds " ,

" Tick count " for the process..it throwing answer  directly. 

 i need a continuous running Indicator . post  your views

i have an attached a VI

Iterate Over class object controls

$
0
0

If I have a cluster I can obtain a array reference that allows me to iterate over its controls.  If I have a LV class however, I don't seem to be able to do this.  Is it not possible, or am I missing a step? 

 

Thanks!

 

LV_ref.png

NIPALU.dll not found

$
0
0

I need the aplication NIPALU.dll because the program labview ask me that.

Programatically obtain strictly typed control reference within TabControl within SubVI

$
0
0

Hi, I am attempting to access a control refnum that is within a Tab Control within a separately opened VI. I have figured out how to do this but only if I use a "to more specific class" object with a strictly typed reference created within my "control VI".  The problem is that some of the other SubVIs I will be controlling will have different numbers of tabs and so I cannot just use one universal type reference. If I could just get the strict type of a TabControl from it's reference that would solve my problem. Is there a way to do this? 

 

Sorry, if my language is not correct as I'm still learning about this stuff. I've attached the SubVi that I'm trying to make which might help to understand. 

 

 

Simulation Loop

$
0
0

I designed a rudder control system through Simulation Loop (CDSIM->Simulation), but now I wanna made my simulation in real-time. I know that I can use real-time with the Simulation Loop, also the sensors can be simulated by HIL or FPGA ( the issue is I'm new on LabVIEW and I don't know what are the requirements to do that. I meant if I have to download something to use HIL or I have to employ the CompactRIO to use the FPGA).

 

The question is: if I made my simulation in real-time with the Simulation Loop, Can I use the same code to see if it works and can be developed in the reality using subsystems or I have to make another code where I don't use the simulation loop?

Data socket not finding PLC immediately after windows logon

$
0
0

I'm using LV data socket to communicate with a Rockwell PLC via RS Linx. The problem I have is that I can only connect to the PLC successfully second time around. The first time I run my code after logging onto windows the data socket returns error 56. If I stop, exit and restart the program then the PLC connection is made almost instantaneously. I'm wondering if the cause might be to do with RS Linx not being configured correctly, but it's puzzling why it should only work after one unsuccessful attempt. I am starting RS Linx immediately at logon.


Transfer Function

$
0
0

I'm using a transfer function with only LV code (:\Program Files (x86)\National Instruments\LabVIEW 2015\vi.lib\addons\control\advanced) and the block has three input: set point, transfer function and dt. What is dt? I have to use a timing clock for the input of dt?

The size of the array in the data indicator

$
0
0

Hi,all

Good evening. Do you know how to determine that how many rows of the array in the data2 indicator? Thanks a lot.

 

Best,

lh666

 VI.png

Need some Help Urgent!!!

$
0
0

Hi, 

I made a VI to record some sensor data in my experiment and i am trying to acquire 512 data points in a period of 1sec but when i am trying to write the data to excel file in labview. it's recording 512 data points in less than 1 sec. it's not taking complete second. if i do a simple VI with only one sensor directly and writing it to the file then it's recording 512 data points in a time of 1sec. 

I am using cDAQ9172 and NI9237 and NI9205 modules 

 

Note: attaching latest version VI and compatible version VI

 

Thank you in advance

Hilbert transform (90 degree phase shift) on FPGA-using FIR filter

$
0
0

Hi,

I want to shift 90deg-phase of the input signal on FPGA. I am utilizing a NI-PXIe 7279R module with a NI-PXIe 5733 ADC converter on FPGA unit.

At first, I want to record a sinusoidal signal with a frequency of 2.7 MHz from my system. Then I want to shift to 90deg to extract both I and Q signals. So I am intending to use FIR filter for generating HILBERT transformer. 

Now I am following the "Polyphase Interpolation FIR Filter on FPGA with DFD and Coregen". They showed at the link https://forums.ni.com/t5/Example-Program-Drafts/Polyphase-Interpolation-FIR-Filter-on-FPGA-with-DFD-...

I used an example: FFT project with FPGA Target (RIO, cRIO-9075, simulation) in the "Find Examples" of LABVIEW help for SIMULATION (2.HlBERT-FPGA.zip).

2. Hilbert-FPGA.zip

However, I can not know how to transfer the output of Hilbert transform (the 90deg-phase shifted signal) to HOST. So I can not compare the phase between Quadrature signal and Original signal. Even I also do not know that the Hilbert transform using the FIR filter is true or not.

Please help me to correct this program and give me some advice.

 

Thank so much.

Dong

Specify different ADC timing modes for different TC modules in the same task

$
0
0

Hello,

 

I guess based on the help, this is the way to specify different ADC timing modes for channels of a NI912 and a NI9213, inside a single DAQmx task? So I have to explicitly list the ActiveChannels for both property nodes:

 

adctiming2.png

 

My goal is to reach at least 1 Hz sampling for these 24 TC channels. If I use a single property node on the whole DAQmx task, and set all channels to "High speed" mode, I get what I want, but I think I could use the NI9212 module still in high resolution mode...I will give it a try, I did not test this code yet on my rig...

If I let everything default, the sampling is around ~1/2 Hz in total. By the way, is there any more detailed guide for the timing modes? I have only found this short doc: http://zone.ni.com/reference/en-XX/help/370469AH-01/daqmxprop/attr29f9/

 

keithley 2400 & 2635 synchronous run

$
0
0

Hi, 

I am a beginner  and  am not  familiar with labview. I met a problem recently. I use keithley 2400 offering 5V voltage to measure current and use keithley 2635 offering pulse current. I want they synchronization operate.The attachment is the written  program,please help to slove the problem.

Thanks

Set ON/OFF time for Boolean Switch to control Power Supply

$
0
0

Hello I am really new in Labview and I want to learn how to set a timer to turn ON/OFF a Power Supply equipment. (e.g. 5 seconds ON then 10 seconds OFF) and then run this continuosly until user press STOP. Currently I only only how to create Boolean control connected to the STB/EXE.vi for manual switching

 

 

 

 


LV2017 Application builder issue

$
0
0

ApplicationBuilderBug.PNG

So i've just installed LV2017 and for some reason the Build specification has a '?' on them. I can't open the spec, i get an error 7 from Get LV Class default value.

However, i can create a new specification and from that window Build, but as soon as i OK and exit it'll revert to '?' so it's a one-shot build ... It's a Full Dev with Application builder licensed separetly. 

 

Any ideas?

 

/Y

Problem with Scan Value Function

$
0
0

Hello everyone,

 

I have a problem with this function. I send data with arduino using VISA, with string format. The problem is: if I send "28,30" there is no problem, it reats 28,30, but if I send "28.30" it reads the value 28,00. I have already tried with %f. %.; and I can`t find a solution. Smiley Frustrated

 

Best Regards,

Jose S.

Error -8000 XNET Close Diagnostic

$
0
0

Hi, I have a problem with the „Close Diagnostic.vi“ (Automotive Diagnostic Command Set) after requesting an empty event memory with "UDS ReportDTCByStatusMask.vi“. This leads to the error -8000 -> NI Automotive Diagnostics Command Set: The handle passed to the function is not valid.
After closing the VI LabVIEW freezes. Maybe the XNET background is hanging up?

project

$
0
0

Hi !
I have to do a project on how to create a 3D image on Labwiev to give two random points to me and to calculate the balance between them taking into account the relief.

Thank you for your time in advance!

VISA resource name to dll Device Handle

$
0
0

I am communicating with a usb raw device using NI-VISA in LabView (winusb driver). I open a VISA session in LabView and attach a Visa Resource Name to the device. I  call a dll (written in C) from my LabView application. The dll needs a Device Handle to identify the device. How can I retrieve the Device Handle from the Visa Resource Name and pass it to the dll?

Viewing all 66970 articles
Browse latest View live


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