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

Sampling Rotary Encoder- Error -201319

$
0
0

Hi all,

I am trying to sample voltages while using the rotary encoder as my sample clock. Every time the encoder rotates a degree it outputs a signal and I'm using that signal to sample values at that instant.

 

I keep getting Error -201319:

Possible reason(s):

Sample Clock pulse occurred before the previous sample was acquired from all channels in the task. Use a Sample Clock rate that allows time for the device to acquire samples from all channels. If you are using an external Sample Clock, ensure that clock signal is within the jitter and voltage level specifications and without glitches.

 

My program is shown below:

system_imge.JPG


reading in a waveform from lecroy 9314A oscilliscope and plotting its spectrum

$
0
0

Im trying to read in a wave form from the lecroy 9314A Oscilliscope and plot its spectrum. Attached is one of my vi's but it isn't plotting the correct spectrum

Difficulties plotting from a text file

$
0
0

Hey folks, I am having difficulties plotting some data points from a text file, when I try plotting them myself in labview I get a graph that is frequency v.s. data points(16000) and that is not what I am hoping for, I am looking to plot magnitude(y) v.s. frequency(x).

If someone could help me out that would be greatly appreciated.

I have attached the file I wish to plot as well as what the plot should look like once you plot it.

Connect to RT system behind firewall

$
0
0

Hello all,

 

So, I have looked to see what ports need to be opened up, but I can't seem to get this straight.  I would like to be able to connect to my PXI-RT system that resides behind a firewall remotely.  I have opened what I thought were all ports associated for LV and Max communication, but I still can't seem to connect to the box when I am off the subnet.  Should I but this thing on the DMZ or does anyone have any suggestions on what I need to be doing to work on this box remotely?

 

Thanks, Matt

push into 2D array

$
0
0

I'm wondering how to push data into array as follows:

 

Given 2D array:

column x: 1 3 5 7 ...

column y: 2 4 6 8 ...

 

Then go through for-loop:

Iteration 1:

column x: 1

column y: 2

 

Iteration 2:

column x: 3 1

column y: 4 2

 

etc. I included the VI where I want to implement this. I tried my hand at reversing arrays, but that didn't work as intended.

I added a size limit, because my intent is to delete the last index row after it's 'pushed' over the limit.

 

Cheers.

 

Adding elements to an array and having the Front Panel Table display correctly

$
0
0

Hello Everyone,

 

I am working on creating an .vi that will take an old instrument and allow the operators on the floor to save data automatically instead of reading the data off of the instrument and having to enter them into the computer manually.

 

The instrument is setup using an RS232 comms port, I can communicate with the instrument and I have full control of all of the functions.

 

My problem comes in when I am trying to collect data and add it to an existing array and then having the front panel table display the information correctly.  At the end this entire array will be saved to an excel template in an existing format, so I can't adjust the way I need the table to display.

 

Please take a look at the images and lend me a hand if possible.  I will not be able to post the .vi due to the nature of my work and I am reading information from the instrument.

 

Thank you in advance for all of the help!!

 

 

spreadsheet string to array not converting

$
0
0

I have modified the Continuous Serial Read Write Example to read in csv string from a serial port and parse the data out in an array.  It is working for the 10DOF array, but it is not working for the GPS array.

 

I have attached a picture of a screenshot that shows the string coming from the Serial port.  The H,L is the GPS data and the H,F is the 10DOF data.   Both strings appear to follow the right rules so I am not sure why one would be working and not the other.

 

Thanks.

Main VI disabled when running sub VI

$
0
0

I have a main VI (the user interface) with a tab window that can run different experiments by calling different subVI's. Each experiment is on a different tab page, and while the subVI for that experiment is doing its data acquisition, I want the results to show on the tab page on the main VI. I have not set the subVI's to show their front panels when called, as I would like everything to be viewed and controlled on the main VI.

 

I have used refnums to allow the stop boolean button on the main VI to be read while the subVI is running (the subVI will continuously acquire data until it is stopped by the stop boolean button). However, my problem is that the main VI seems to be disabled once I run the subVI. It's not that the refnum does not register the boolean button being pressed, it's that I can't even press that boolean button on the main VI.

 

I've tried this refnum method with a very simple main VI - subVI combination where the subVI is simply generating random numbers in a while loop, refnums it to the main VI to display the number, and a stop button on the main VI can stop the while loop in the subVI. It works, so I'm pretty sure I'm not doing anything wrong there. I really don't understand why this isn't working in my experiment user interface Smiley Sad

 

I've attached the main VI and one of the subVI's in question. In the main VI, this subVI is called when the button "Monitor PMT" is pressed and the event generated. The event is #3 in the main VI event structure. (ps. I know the waveform chart in the event isn't doing what it's supposed to be doing, as it's not in a loop. Still figuring out how to get it to loop at the same time as the subVI data acquired.)

 

The instrument this program is interfacing to is a SR400 photon counter. An Arduino Uno board is also interfaced in the other events, but not this particular one.

 

Any advice at all would be much appreciated. Thank you!


XControl Data wiring problem - Data type is Waveform Graph (Strict)

$
0
0

Hi,

 

I created an Xcontrol for a waveform graph. The datatype (under Data 1.ctl) is a WaveformGraph reference type.

 

When I wire a Waveform graph reference to the Xcontrol (as an indicator), there is a wire conflict.

 

I checked the strict definition and the reference types are theoretically congruent but I cannot seem to wire it together. Any solutions?

 

Please see the attached code.

 

Thanks!

Failure to synchronize simulated PXI 5124 cards, but they synchronize without error on physical hardware.

$
0
0

I need to create a software development machine based on our existing experimental machine. We use two PXI 5124 cards mounted in a PXI 1042 Chassis and run LabVIEW 2013.

 

According to what google has returned, it is currently impossible to simulate a PXI Chassis, so I have the two devices mounted individually. Here is the experimental machine device list:

devlist.png

 

and here are the simulated devices on my development machine.

 

develop_list.png

 

I have verified that the simulated devices are working by creating a simple program that graphs the output of the simulated devices. See attached.

 

However, when I run the program that we use on our experimental machine, the program fails to synchronize the clocks. I'm not sure if I would be allowed to post this program, so I have merely attached a picture of the part that creates an error.

 

syncherror.png

 

Up to this point, there are no errors, but when synchronization begins, I receive the following error:

Error -250027 occurred at niTClk Configure For Homogeneous Triggers.vi:2010001

Possible reason(s):

NI-TClk does not support the specified session.

Make sure that the sessions you pass to NI-TClk are supported by NI-TClk.

Session index (starts at zero): 0

 

Using probes, I can determine that there are (seemingly) valid resource names [9] going into the Configure VI:

 

probes.png

 

These are not fundamentally different from the resource names [2] on our experimental machine:

 

session_refs.png

 

According to this page I should be able to synchronize. While no longer in the same chassis, the two devices are still in the "same computer," are they not? Nevertheless, the error message makes me think I'm trying to do something that isn't allowed.

 

I've tried to look at other posts, but they are mainly concerned with FGEN, which I am not using.

 

Any ideas?

 

Wrapping 'Variant to Data' in a SubVI -- how?

$
0
0

I've got a system that uses shared variables for data communcation where the shared variables are of type 'variant'.  The server will typecast its data (generally a cluster) to a variant before writing to the SV and the client will typecast the variant data back via the 'Variant to Data' VI using a pre-defined typedef control.  The client reading the SV is using the 'Read Variable with Timeout' from the PSP API.   I would like to create a wrapper VI that encapsulates both the 'Read Variable with Timeout' as well the 'Variant to Data' VI but my implementation does not seem to be working.  I was hoping that passing in a typedef constant into the 'type' control of the SubVI would allow the output 'data' to be polymorphic and adapt but it does not.   Therefore I am concluding my inent does not seem possible or at the very least all that easy to do.

 

I have a striking feeling this would be a good application for LVOOP but other than knowing how to create a LV class, I'm pretty much at a loss here on how to go about it.  Any help would be appreciated.

 

Thanks!

 

SV Wrapper.png

 

 

scan from string error

$
0
0

when l test the function of scan from string. Why will have this error?

捕获.PNG

捕获.PNG

 

daq assistant sample rate for pulse width measurment

$
0
0

Hello all. i want to measure pulse width of a digital signal of around 1KHz via DAQ assistand digital pulse width vi. i need to measure Pulse width about 100hz.

i set 1  sample on demand and in any of other timing method like implicit for continues measurement i met to error. it make me frustrating that i could not measure a measurand jut at 100 hz.

i use Daqmx and windows 7 sp1 and labview 2012.

thanks

[ERROR] Sending email on labview (Gmail)

$
0
0

Hi,
I'm trying to send email via this program ( as attached ) with gmail, i tried using 2 ports ( port 485 and port 587 ) and both showed me errors.

Port 485 's error shows : System.Net.Sockets.SocketException

Port 587 's error shows : System.Net.Mail.SmtpException

i have also attached screenshot of both errors below.

Any help is greatly appreciated !




*I'm using NI LabVIEW 2013 SP1 (32-bit)

LCD display With MyRIO

$
0
0

I'm relatively new to LabVIEW, so pardon my ignorance.

I'm given the task of changing the brightness of a LCD display (http://www.robot-electronics.co.uk/htm/Lcd05tech.htm) with the use of NI MyRIO and LabVIEW. So far I have tried using the 'Launch the I/O Monitor' on the LabVIEW window and selcted the I2C option (connection done), but I'm unfamiliar with some of the functions. Thus, I require help for this problem.

Thanks in advance,

JY1212


There is no option in Vision Assistant block to close classification session! (How to solve Error 1074396030 ?)

$
0
0

I am using Vision Acquisition blok, then vision assistant block.

These blocks are in while loop.

 

Once vision assistance block outputs class, for next iteration:

 

ERROR: There are too many classification sessions open. You must close a session before you can open other one.

 

I know there is block for disposing the classifier, but don't know where to connect it!!

 

How can I read a set of operation (Voltage and Current) in SCPI in LabVIEW?

$
0
0

I have 50 points that relates voltage and current and those points describe a curve. This curve is a profile of voltage and current provided by a Photovoltaic Emulator in one day. I need to read those points in labVIEW and control my DC power source by using those points. However, the way to read this curve is exporting it from the Photovoltaic Software to Labview by SCPI commands which are a set of operation written in a text file (.txt).  Does anyone know how can I do this?

restart or reset chassis in Max

$
0
0

I have a 9188 compact Daq chassis with a fixed IP address.  In MAX, what will restart and reset do to it? Will either wipe out my static IP address, etc.?  Thanks.

case structure

$
0
0

Attached is a VI I created, I would like to set up a case where I either input -1 or 1 with an control  in the CN . I tried doing it but Im not sure if its correct

 

Can someone help me ?

Pull data values from 1-D array

$
0
0

Hi, I had trouble finding information on the Discussion forums on this topic.

 

I have a 1-D array (1x1024 values) and would like to pull certain values out it. For example, I might like to pull values 435 through 567, then do some mathematical operations on those values. There would be two numeric controls on the front panel to set these two numbers. How would I go about doing this?

 

Thank you!

Viewing all 66923 articles
Browse latest View live


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