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

VI only runs when highlighted but stop working at full speed

$
0
0

Hey everyone,

 

I am an Undergraduate Research Assistant working on chemical research. The VI I am writing is pretty straightforward. All it needs to do is read the voltage coming off a silicon detector as a monochromator (the Digikröm CM110) shines a beam of light at it. 

 

The point of this is to get a voltage reading from the beam every 2nm from 350nm to 650nm. I have put together a VI using some stock smaller VIs, but the issue is that the sequence will run smoothly up until 522nm, where the next number will suddenly be in the 4000s, and consequently break the <650 while loop. However, when I run the VI using the highlighting tool, it runs just fine, and does not give out at 522nm.

 

Here is an outline of how the VI works:

 

-The initial wavelength and step sizes are established through a sequence outside the loop.

-The loop commences and the step function is run, and the silicon detector on an AI0 USB6008 A/D converter reads the voltage (compensated for the ground discrepancy).

 

I'm pretty lost on where to even start looking. I've messed with timeout values and timers, as I thought giving the whole thing time between frames to catch up would fix the issue, or placing the step function inside the loop, but none of those have rendered any fixes so far.

 

Any form of help would be greatly appreciated.

 

(I have set the current go to wavelength to 510 so that you wouldn't have to watch it go from 350 - 522nm.)

 

The VI in question is the voltage read + wavelength.vi, the other file contains some files that are depended upon.

 

 

 

.

 

PXIe-4081 accuracy calculation

$
0
0

Good Morning,

   I have been trying to calculate the accuracy of the DMM PXIe-4081 with the resistance 4-wire measurement , 7 1/2 digits resolution , 100 OHM range and the resistor the I am reading is 0.5 mOHM. The number that I am getting is blowing my mind and it does not make sense at all specially this should be the most accurate DMM in the industry. I am getting 1.2 mOHM. I am pretty sure that I am missing something with my calculations. Any help please  

PCI 7833r

$
0
0

I have a NI-PCI 7833 RIO card, is it possible to make it work in a Windows 7 computer ?
Thanks

[FPGA] Adding a New Target or Device Shows Nothing

$
0
0

Hello All

 

I am new to LabVIEW FPGA.  Now I would like to use PXIe-7820 and PXIe-5171 FPGA.

I've installed LabVIEW FPGA module and the driver needed (as far as I know).

However, when I create a new project, add a new target or device at "My Computer", it doesn't show anything but an empty "R Series" folder.  I believe I miss some drivers or screw up installation flow.  May someone give me some idea?

 

Platform and software/driver installed

Win 10 1809 64bit

1. Install LabVIEW 2018 f2 64bit

2. Install DAQmx 19.1 and some modular instrument drivers including NI scope 19.0

3. Install LabVIEW FPGA 2018 64bit (I didn't install FPGA module before DAQmx driver because I had been using LabVIEW without FPGA for a period of time)

4. Install R Series Multifunction RIO 19.1

5. Install Reconfigurable Oscilloscopes 19.1 (including 5164/5170 device support)

 

At this time, I encountered the problem.

6. I re-install NI DAQmx 19.1 to see if it helps; but the problem is still there.

 

Problem description:

1. Cannot see new FPGA target or device (I don't have 7820/5717 on my hand, so I cannot try "existing target or device)

2. LabVIEW example finder does have some LabVIEW FPGA examples

 

Screenshots

Questions_MAX: screen shot of LabVIEW project and software installed shown in NI MAX

Questions_LV_Example: screen shot of LabVIEW FPGA example VIs displayed in example finder

 

Thank you

 

Vincent

 

Dynamic choice of FPGA I/Os

$
0
0

Hello all,

I have a question about LabVIEW FPGA coding.

So I have a cRIO-9040  and I also have 4x NI-9238 cards.

I am essentially writing code that takes voltage measurements utilizing the 16 channels of the 4 cards.

I would like to dynamically select which inputs are being used by the measurement, instead of hard coding which inputs to use.

Instead of having to make a case structure with every single possibility for 16 channels (65,535 possibilities) like this:

gif.gif

I would like to just specify on my PC application: Mod1/AIO, Mod1/AI3, Mod3/AI2, etc.

Is there some way to do this that I am overlooking besides coding 65,535 possibilities?

Class data label names

$
0
0

Hello everyone,

 

I'm trying to populate a test parameter table with label names I get from class private data. This works fine when running from the development environment, but not when called from a dll. Is this not possible outside the development environment? I get error 1013 right after the front panel property. Is there any other way to retrieve class data labels that I'm not aware of ?

 

Class Label Names.png

Using VI Server to read Registered Controls Reference (Event based)

$
0
0

Hi, I'm using Labview 2019,

 

Is there any chance that I can read Object from labview application using Event Based

which I already edit the file.ini by inserting these two (Using VI server between application):

server.tcp.enabled=True
server.tcp.port=3364

 Below, is the error i get at register event pallete

fendywoo_0-1576642377592.png

fendywoo_1-1576642510545.png

OIP2 MEASUREMENT

$
0
0

Hello,

is it possible to make an OIP2 measurement in LabVIEW (with PXIe-5840)?

when i am using the RFmxSpecAn IM (advanced) example and fill the following parameters :

center freq - 1G

Upper intermod - 996M

distance between tones - 4M

Order - 2

I get an error code - 380433.

 


Convert variant data to specific data type using typedef control reference

$
0
0

Hello the forum,

how can I convert a variant data to specific data type using typedef control reference?

 

aRCo_0-1576656331003.png

 

See example VI and CTL inside the the archive.

Thanks!

 

 

 

入力レンジについて

Problem solving methode for VISA read timeout error

$
0
0

Hello everyone,

I'm doing an internship and got called to repair a broken stepping motor drive, which controls different covers for a luminous measurement.

After fixing this problem I run the LabView program to test the whole functionality and the program stopped before it got to the motor control part.

My laptop doesn't have an serial port and on the measurement PC is only LabView RT + it isn't connected to any network, so I don't know any possibility to debug it. Of course they said, everything ran fine before the motor problem.

After implementing Error Handler in the Code I got the error -1073807339 VISA read timeout (Hex0xBFFF0015).
It occurs when it tries to read the measurement data from an National Light Research Radiometer ILT 1700, here is the code.

VISA Read.JPG

 

I'm new to VISA programming but for me everything seems to be right (baud rate, data bits etc.), but here is the manual for the ILT1700. So I just increased the timeout to 30 sec. Of course, it doesn't solve the Error.
So here is my Question: How can narrow down the problem? Is it the Radiometer, the PC with the LV Code or event the Cable which connects both?

Regards,
Lucas

 

 

Synchronize PXIe-4300 in Multi Chassis

$
0
0

Hi, All

I have two PXIe-1085 chassis, and there are multiple PXIe-4300 boards on the chassis. I want to achieve synchronous acquisition on the two chassis.

I plan to synchronize the boards on the two chassis by Sample Clock Synchronization. Route the sampling clock by using a 6674T on each of the two chassis.

As I only have one chassis now, so I plan to test on one chassis.

Specifically:

  1. Route the sampling clock of the Master PXIe-4300 to 6674T/PFI0,
  2. Connected 6674T/PFI0 and 6674T/PFI1 by wires,
  3. The slave card uses 6674T / PFI1 as the sampling clock.

In addition, the link Synchronization Explained states as below, so I first route the sample clock of the master device to PXIe_DstarC, and then route PXIe_DstarC3 to 6674T/PFI0.

“If the sample clock is routed via the PXI_Trig lines, this delay may be up to ~80 ns. If it is routed via the PXI_DStar lines, the delay may be much lower.”

The final vi is shown below. Send the same signal to the master and slave devices to test the synchronization of the acquisition between the devices, the average delay between the master device and the slave device is 113ns.

Sync.png

 

I have the following question:

In order to reduce the delay, the sampling clock of the master device is routed to PXIe_DstarC; how is the 6674T/PFI1 routed to the slave device as the sampling clock? The 4300 supports PXIe_DSTAR <A..B> as the sampling clock source, how to choose it, such as PXIe_DSTARA0 as the source.

How to use database connectivity toolkit with cRIO to log data into database

$
0
0

I have cRIO-9074, Database toolkit. when i try to use database toolkit functions in new VI which is under chassis in cRIO i am getting broken run arrow, when that database VI is placed under My Computer, broken run arrow becomes normal. please tell me how to program cRIO with database connectivity functions properly. or any other methods. my task is to log the cRIO data into mySQL database. the database is located in local computer.

Thank you

34420A Meter LabVIEW Connection over USB Timed out Error

$
0
0

Hello I have a Keysight 34420A Meter and I want to connect it to my laptop over USB, that I can controll it by LabVIEW.

I have installed 34420A driver and RS232 to USB driver. I tested the example code, but there is always a timed out problem, visa error code is -1073807339.

I read the similar solution from community, but these solution can't fix it. How to solve it?

labview: 2018, visa: 18.0

Here is my configuration.

bbb.pngccc.png

Warning 1073676294 occurred at VISA Read in Omega

$
0
0

Hi,

I'm currently using a PI regler for temperature called Omega CN7800.

The VI always worked fine but when I moved the whole station to a new pc it stopped working.

There is a non labview program that enables me to monitor and control the temperature and it works meaning that the computer is actually communicating with it.

Meaning this problem is from Labview.

Im not getting any error. Im just getting this Warning:

Warning 1073676294 occurred at VISA Read in Omega CN7500.lvlib:CN7500_Software Version.vi->Omega CN7500.lvlib:CN7500_Revision Query.vi->Testing.vi

Possible reason(s):

VISA: (Hex 0x3FFF0006) The number of bytes transferred is equal to the requested input count. More data might be available.

Sadly this is the only cue I have and I dont really understand what the problem is. It works but it doesnt do nothing Im just getting 0 as an input even though the temperature is higher than 0.


Anyone know how to recover missing .vi?

$
0
0

I downloaded a few Tektronix VX tabview drivers and each seem to be missing one or two .vi files. 

 

help!

 

I am specifically looking at the vx4250 driver.

 

missing .vi:

vx4250 read errors/events.vi

vx425 start/stop aquisition.vi

 

and yes, aquisition is spelled incorrectly in the .mnu and the .llb files.

 

Does anyone have these? Or does anyone know how to recover?

 

Thanks!

[FPGA] Compilation Error - Slice LUTs size exceeded for simple program

$
0
0

Hi, I am using LabVIEW 2016 with cRIO-9039 that has a FPGA Xilinx Kintex-7 7K325T with 203,800 LUT Slices.
I am trying to implement a reasonably simple SPMI Matrix Inverse program into the FPGA, but I am getting error on compilation because it uses over 200% of the allocable LUTs. I understand that big arrays (mine has to be at least size 100) take a large amount of resources, but I've tried doing similar things before with these size arrays in the FPGA and wouldn't even take half of the resources. So I feel that something is wrong with my code and the understanding that the compiler does of my code.

Please find the attached VI (MatrixInverse_1.vi) with its subVIs, and the error pictures.

I also tried setting implementation strategy to "optimise area" but it did not solve the situation.

 

How can I further reduce the LUT usage in order to fit it into my FPGA?

 

photo_2019-12-18_14-41-46.jpg

chrome_W6iYaxd1xS.pngchrome_AbubHxg7Vx.png

Usb web cam library

$
0
0

Can you advise library for acquisition from web cams?

Single payment or free, deployment should allow any number of applications. 

Configure, acquire (from multiple cameras in parallel), get image data (as imaq image, pixel pointer or array worst case).

IMAQdx is ok, but paying 440$ for every deployment PC for the simple task for the 20$ camera does not make sense.

 

Something like updated version of imaq for usb http://www.ni.com/example/30030/en/

Or good .net library that can be interfaced with labview will also work.

Now we are using aforge library (http://www.aforgenet.com/framework/), but it has limitations, also its last version is 2013, it is getting old. 

Add VI's to the Quick Drop List

$
0
0

Hello everybody,

I was wondering if it is possible to add VIs to the Quick Drop. I often use a couple of VI's in a project and I always have to add them manually.

Is it possible to do something like creating a Folder in Program Files (x86)\National Instruments\LabVIEW 2019\vi.lib\ ? 

I did that but it didn't work. I also created a Library, but it doesn't work either.

explorer_29Bvo92aDg.png

Is there any way to actually do this? Or anything similar?

 

Thank you in advance.

Best Regards.

NI LabVIEW interop DLL documentation

$
0
0

Hello,

I was going through the NationalInstruments.LabVIEW.interop.dll functionalities. I can see the definitions of the functions prototype. Where can I get the complete documentation for this dll which I can refer for my .net development?

Viewing all 68906 articles
Browse latest View live


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