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

MS Visual C++ Runtime Library crashes when I run LabVIEW as Non-administrator (User Group Only) Windows 7 Account

$
0
0

Using Windows 7 and LabVIEW 2009. Customer has requested that our test software runs from a Windows User Group Account (Non-Administrator).  First issue that came up is we use the LabVIEW Instrument Pallets, IVI Library for DMM, RF Power Meter...etc. When I execute some simple code that creates a session with the IVI DMM (Initialize, Reset, then close), this code crashes during the initialize operations (off pallet) when it calls down to the Ivi.dll found in the c:\Windows\System32 folder. 

 

The message is MS Visual C++ Runtime Library pop up with X that says "This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information". Click OK to close and then LabVIEW 2009 closes.

 

I've tried setting file control privileges for all locations but not the entire C:\Windows\System 32 folder....

I've proven that I can simply change the windows login account to administrator and the LabVIEW snippet runs. 

Anyone else experienced this problem?

 

 


how to get smooth data

$
0
0

Hi all,

 

I have incoming signal with some noise on it. i Would like to get rid of this noise.

Question is how to do that ? 

I am trying to use Butterworth Filter but with no luck. 

Error 4822 and 4823 from mic in Continious Meashuring and Logging

$
0
0

Hello.

I modified the Continius Meashuring and Logging for my Microphone of laptop. I made all steps in the Modifying this Sample Project. After that It has the 4822 and 4823 Errors. I

I'd try to put the What am I duing wrong?

 

Power factor measurement

$
0
0

Hi,

How to calculate Power factor in FPGA?

NI 9242,NI 9246 ,cRIO9066 are used in project.

NI 9246 current measurement module is synchronised with NI 9242 voltage measurement module.

Rate of data acquisition is 50Ks/s for both NI 9242 & NI 9246

Single phase (230 V AC,50 Hz) is to be measured.

1.Current RMS  Using DC and RMS measurement.vi  in FPGA  (1000 number of measurement samples,no windowing).

2.Voltage RMS  Using DC and RMS measurement.vi  in FPGA  (1000 number of measurement samples,no windowing).

3.Apparent power=Voltage RMS*Current RMS.

4.Real Power is calculated by Mean of 1000 number of measurement samples (V instant.*I Instant.)

5.Power factor=Real Power/Apparent power

the load is a tungsten filament bulb ( 60W)

the power factor varies between 0.9999 and1.00022,why there is fluctuation in calculated power factor?

 

 

C Code Generator not installing with LabView 2018 (asking for 2015 LV version)

$
0
0

I downloaded Labview 2018 for evaluation from this link:

http://www.ni.com/en-us/shop/labview/download.html

 

Then downloaded the C Code Generator from this link:

http://www.ni.com/gate/gb/GB_EVALTLKTLVCGEN/US

 

The C Code Generation installation tool error out saying that Labview 2015 had to be installed first. I verified that my 2018 Labview installation was correct (I was able to run a few block diagrams). I was not able to find a C Code Generator 2018 version, nor Labview 2015 for download.

 

How can I install the C Code Generator (for either 2018 or 2015)?

 

Thanks,

Ivan

Does LabVIEW C Generator generates multi-dimensional code or only vectors

$
0
0

Hi,

 

What is the C generated code for a LabVIEW VI/block diagram using matrices?

This:

matrixVar[row][column] = value;

Or this?

matrixVar[row*Ncolumns + column] = value;

 

Thanks,

Ivan

COM Port Issue modbus

$
0
0

Hello all 

 

I developed easy testing application for modbus rtu using modbus library. Works perfectly on my development laptop. Bud when I made exe and move it to target computer application do not see my com port. 

Hardware : 

1) development laptop with Windows 7 and LabVIEW 2017 

2) target computer with windows 10 and installed LabVIEW run-time 

3) usb - rs232 ftdi ft232rl based. 

 

I attachment screen shots and code. 

 

Question is why program on target machine did not find com port ? 

I checked with modpool and hardware works ok. 

 

Best regards 

 

 

com problem after compilation

$
0
0

Hello all 

 

I developed easy testing application for modbus rtu using modbus library. Works perfectly on my development laptop. Bud when I made exe and move it to target computer application do not see my com port. 

Hardware : 

1) development laptop with Windows 7 and LabVIEW 2017 

2) target computer with windows 10 and installed LabVIEW run-time 

3) usb - rs232 ftdi ft232rl based. 

 

I attachment screen shots and code. 

 

Question is why program on target machine did not find com port ? 

I checked with modpool and hardware works ok. 

 

Best regards 

 

 


DAQmx drivers for CRIO 9048

$
0
0

Hi all, 

 

Relatively new to LabVIEW and CRIO devices and I would appreciate any help that I can get in setting up the CRIO with DAQmx drivers. I am using the CRIO 9048 and a Windows 10 PC, but I am having trouble installing the DAQmx drivers on my CRIO device. When I attempt to install the NI-DAQmx 17.6.0 drivers on the CRIO device it is giving me a message that says I cannot install them because a newer version (18.1.0) is installed on the host PC. However NI MAX says that the 17.6 Device Driver is installed. I have attached some screenshots of the NI MAX window for the host PC and CRIO to help clarify what I have described above. Thank you in advance for your help. 

 

-Maxwell

Data acqusition system - rpm 2 channels - Hall effect

$
0
0

Hello guys, I am pretty new in eletronics and automation and I would like to learn more about Labview. I would like to measure, write on screen and in a .txt file 2 channels with hall effect sensors. I want to measure RPM. I am using Arduino Uno, Lynx and USB serial cable. I attached the file that I started and I don't know how to add a block to inform the rpm and neither how to export in .txt file. Please help me if you can. Thanks!  

Multiple input multiple output fitting

$
0
0

Hello,

I want to do multiple input multiple output fitting using Labivew. I have three input and three output.

I know the BP neural network could do it, but I don't know how to deploy it.

Anyone could give me some advice?

English is my second language, excuse my poor english skills.

Thank you very much.

Equivalent NI Spectral Measurements Toolkit APIs in RFmx Specan

$
0
0

I have been using some of the features of the spectral measurement toolkit for labview 2017. Namely the SMT Spectrum Unit Conversion  API. After upgrading to labview 2018 I see that there is no spectral measurement toolkit for labview 2018, RFmx Specan is preferred set of APIs.

 

I’m struggling to find the equivalent APIs in RFmx Specan. From my initial look at RFmx Specan it looks like it us used for analysing data from an instrument as it asks for an instrument handle. 90% of my data is in raw complex form which I could just feed straight into the SMT APIs. I’m struggling to see how I can do this with RFmx Specan

 

Crear array con valores de posiciones ya definidas

Front Panel Image issue

$
0
0

    I have a LV program in LV2015, running under W10. I need to acquire an image from a webcam, scale it, and send it on to another system.

    For our first attempt, I got a USB webcam. LV Vision could see the webcam, and acquiring an image was easy. I got the whole thing working, then went to install the webcam. Since it was 30-ish feet from the computer, we used an active USB repeater cable. The camera balked. I found some posts suggesting that this can be an issue...

     So we bought an Ethernet webcam. Well, it turns out that most cheap Ethernet webcams don't use the GigE standard, and LV Vision can only see Ethernet cameras that do.

      No worries: I installed the webcam software, which allowed an image to be displayed in a web browser. Then I put the .NET web browser in LV. So far so good. I can see the camera image, and cable length should no longer be a problem.

      But then I had to grab the image from the LV front panel, scale it, and send it on to another system. I used the FP.Get Image method. The resulting image is incomplete. I kind of understand that LabVIEW doesn't own the contents of the .NET container, so maybe its Method doesn't have access to the actual pixel data there. But the odd thing is, the image is partially complete. The web page in the .NET container has some border elements and controls. Those show up. Only the rectangle that should contain the camera image is coming out blank!

      Can anyone recommend a way for LabVIEW to capture the entire front panel image, including all the data in the camera image on the web page?

Thanks,

      DaveT

How do I make an XY Graph behave as an XY Chart

$
0
0

Hi, everyone,

I would like to add a subVI to store xygraph value use the subVI like this picture shows. But my input data is one dimension array. The outcome of shift register become two dimension, I cannot use array size and cannot make a XYgraph. What is the best way to combine this function.

Thanks a lot!

Best regards

Liang


LeCroy 6100a data acquisition through labview

$
0
0

Hi,  

 

I'm currently using LeCroy 6100a oscilloscope and i need to use labview to send command for it to trigger save table for parameter, then copy the saved file to labview. I'm connecting my oscilloscope and my PC through LXI.  

 

Previously I'm using Read Waveform Measurement (Px) VI for the code as I have set the parameter in the oscilloscope and the value can straight be read from oscilloscope but the data acquire is too slow (8 data per second).  

 

Any ideas for me to increase the acquisition of data?  

 

Thanks,

Best Regards,

Oliver

reading two analog inputs using NI USB-6212

$
0
0

Hi,

I am trying to read two devices as two analog inputs on NI USB-6212 (screw terminals pinout). I used one DAQ Assistant. When I set only 1 analog input (channel a1), for an acoustic sensor and then a current transformer, the output waveforms will vary (the output of both devices are voltage). The setting of terminal configuration is RSE (pin connection is 17-28); the mode is continuous sample; the rate is 100KS/s.

 

But when I connect the two analog inputs as channel a1 (17-28) and channel a2 (19-28), the shape of the two waves is almost the same. When there is an interference given on channel a1 (acoustic sensor), it will also affect the output display of channel a2.

While NRSE and Differential configuration cannot be used because it cannot detect the sensor or current transformer used.

I hope my NI DAQ can read both analog inputs and display different results according to the original shape of the wave.

Can anyone help me to solve the problem?

IMAQdx stopping grab vi

$
0
0

Hello,

I am trying to develop an application using IMAQdx to communicate with my camera connected via USB. This application is supposed to set certain parameters such as image height, width, X-offset and Y-offset at run time, then capture the images. On start up of the vi I can set the parameters as I want them, but when I go back to the settings page to put in new settings, the new settings don't seem to take.

I have checked and know that the height and width settings can only be set when the camera is not grabbing. But I can seem to find any thing to stop the grab. I tried using the "stop acquisition" but that too does not seem to work.

I have attached my Vi.

Help would be greatly appreciated.

Thank you,.

Calling and Controlling an application exe

$
0
0

I have an application (exe) used to configure and calibrate an instrument. The application purpose is basic operation to load an config file and send to the instrument. (it has few controls-buttons and indicator) . We do not have any API or interfaces to the pass or control the exe. I want to call this .exe from LabVIEW and automate the process of (configure and calibrate number of instruments) I do know "Call System exe" function exists. But can we work with such and exe with no APIs? All suggestions welcome or any work around possible.please share.

Labview + .Net memory leaks

$
0
0

I have a .net dll integrated into my app. And there are 2 parts: data produser and data consumer.
The produser generates events with new data.
1st step. I resend data from the event into the consumer. This works correct.

001.png

 

2nd step. I need modify data before resend.
The Powers element is a list of arays. I convert this list into array this way.

003.png

 

Then I take part of the array and update the List values.

002.png


In this case I see fast memory leak.
Original array is ~25Mb and memory leaks with this speed (~3 Gb per minute).

How can I fix this error?

Viewing all 69758 articles
Browse latest View live


Latest Images

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