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

LabVIEW generic file I\O error

$
0
0

Hello all,

I've build a LabVIEW program using LabVIEW 2016 months ago and keep working on it. Until now I never had issues while openning it. But today it suddenly gives an error saying LabVIEW: Generic file I/O error. Strange point is that, my backup VI having same name but in another part of the PC also gives the same error and can't open backup as well. I would be gratefull if anyone of you would help me in this case.

 


Convert string data to image data.

$
0
0

Good day, I use a Labview to communicate with an oscilloscope Rigol.  This device use SCPI (Standard Commands for Programmable Instruments) commands and the program in the Labview  is based on VISA (Virtual Instrument Software Architecture). I need to use the command ”: DISPlay: DATA?”. After its use the following data comes back: TMC Blockheader (TMC Blockheader ::= #NXXXXXX is used to describe the length of the data stream. Wherein, # is the start denoter of the data stream; N is less than or equal to 9 and the N figures following it denote the length of the data stream in bytes. For example, #9001152054; wherein, N is 9 and 001152054 denotes that the data stream contains 1152054 bytes of effective data.) and Specific image data (BMP24 as example). In programming guide of this device there is an example of use this command:

  1. Make sure that the buffer is large enough to receive the data stream, otherwise the program might be abnormal when reading the data stream.
  2. The returned data stream contains the TMC data header which should be removed to make the data stream a standard image data stream.
  3. When the data size is larger than 1 M and the communication speed of the interface is not fast enough, you need to set an appropriate timeout time.
  4. The terminator '\n'(0X0A) at the end of the data should be removed.

I want to save the received data as an image, but have some problems. I tried to use “Write To Spreadsheet File VI” and save as BMP, but I could not open the file. I tried to use “Write BMP File VI”, but this function requires an input “image data”.

In the end, tell me please how I can convert “string data” to “image data” or other solutions of my problem?

Thank you.

Trouble creating an executable for my cRIO project with NI 9862

$
0
0

Hello all,

 

I am using a cRIO-9038 with a couple of NI-9206 modules for data acquisition and NI 9862 for transferring the CAN data. I have my project setup and working when my main VI is under cRIO directory  tree, but having the main VI under my computer directory tree it shows the following error.

error1.png

I want to create an executable that I can run on any other PC and it seems that NI 9862 hardware is not detected.

 

I have attached a screen capture of my project tree below.

error2.png

LabVIEW 2014, smtp example sends no mail

$
0
0

I have a strange problem, I want to send an e-mail by using the SMTP (IP address is known) example without authentification. The vi "Send Email using SMTP Client_LV2014.vi" works without error, but no e-mail is generated by the server. With the same settings I use the old smtp tool of labVIEW 8.6. "EMail with Data_LV8.6 converted to LV2014.vi". this works fine even under LabVIEW 2014 and I receive the generated mail within seconds. Can someone help? Attached are both VIs.

 

In both cases I used my e-mail address for sender (return address) and receiver and I used the IP number of our mail server (plus port 25 at the LV2014 vi)

 

Will it help to use an account with login?

 

best regards

 

Joerg

How To Safely Completely Remove LabVIEW 2018

$
0
0

With the introduction of NI Package Manager in LabVIEW 2017, doing a complete removal of LabVIEW has become a little bit more difficult, with some dire consequences if not done correctly (I know, as I've had to rebuild two Windows 10 PCs and have yet to have a "local" LabVIEW 2017 system for testing and development).

 

I've been running LabVIEW 2018 that I've installed on a Windows 10 VM.  However, I also need a LabVIEW 2017 system for some work.  What I decided to do was to clone the LabVIEW 2018 VM, rename it to LabVIEW 2017, remove LabVIEW 2018 completely, and do a "fresh" install of LabVIEW 2017.  

 

Before completing this task, I placed a Service Call to NI to ask how to remove NI Package Manager -- the documentation for this is pretty obscure, and took both of us working together about 25 minutes to find it.  But the process did seem to work, and I'm currently installing LabVIEW 2017.

 

Here are the steps.

  1. Open Control Panel, go to Programs and Features, and find National Instruments Software.  Click on it, which starts NI Package Manager.  Select all Programs (check box at the top).  Note that NI Package Manager is not selected.  Choose Remove.  Reboot when done.
  2. Repeat Step 1.  You may notice that you still have multiple "Features" installed.  These are (probably) Device Drivers.  Uncheck "Programs" (I think that's what the button says) and the other Features will become visible.  Again, select all, Remove, and Reboot.
  3. Again open Programs and Features.  You should still see National Instruments Software and NI Package Manager entries.  You might also see VISA entries near the end of the (alphabetical) list, but should see nothing else that screams "LabVIEW" at you.  If this is the case, you are now ready to remove NI Package Manager.
    1. Click NI Package Manager.  You use it to remove itself.  Read the warnings that NI puts in, and be really sure that you want to do this.  Proceed when ready (or sufficiently brave).
    2. When finished, you may or may not have "lost" the NI Software and NI Package Manager entries.  I recall that I may have needed to open one or both of these (wasn't taking careful notes), but with a few clicks, both entries disappeared.
  4. If you have (as I did) VISA entries still in the Programs and Features list, you can safely uninstall them by double-clicking and choosing Uninstall.  Again, you may have to do it more than once (they are inter-linked in some strange way).
  5. Reboot.
  6. I chose to remove the NI Folders from Program Files, Program Files (x86), and Program Data.  Before doing so, I checked and verified that there did not seem to be anything "vital" there.  I did not touch the Registry.

LabVIEW 2017 (32-bit) appeared to install correctly.  I installed LabVIEW Vision, DAQmx, and VISA.  I tested it by getting VIPM to install the OpenG Toolkit, which also succeeded.

 

I'm going to leave this post here for comments.  There's an Idea Exchange entry from Someone Who Should Remain Anonymous asking for a "better Uninstall Tool" -- this Post isn't exactly "it", but it might serve as the "Solution".  If nothing better surfaces in a week, I'll go ahead and mark this Post as the Solution.

 

Bob Schor

Code Optimisation

$
0
0

Hi,

Can anybody help to optimize the code in attachment. Please find detailed info in VI

Thanks in advance. 


Regards

Vargeesh

LabVIEW NI-Scope Example: Error 1 occurred at Enqueue Element

$
0
0
  1. I altered NI-Scope EX Stream to Disk by adding custom file name prefix (YYYYMMDD-HHMMSS), and I began to get the error as shown below at Enqueue Element for an invalid input parameter.
  2. The other change I incorporated was to time-restrict the producer loop to 1.5 seconds and collect data for just this time period.
  3. As stated in on of my previous post here, I am not sure about how to use a STOP trigger to the Stream_to_disk example so that I don't have to time restrict the collection of data from the producer loop based on my sampling rate/freq.

 

2018-06-29 14_14_09-.png

 

4. Below (also attached) is the altered example

20180629-timed_producer_loop.pngany advise on how to correct this and obtain data for a pre-alloted time period and/or using a stop trigger is appreciated.

 

Thanks.

How to load mulitple different type of vis

$
0
0

I have a question regarding the User Interface. I am currently having some trouble calling multiple different VI. There is a function called a Call to Reference that I am using. However, the function only accepts a static refnum which is handy if I know what type of Vi I want to call. However, However, I am running that function in a loop as its calling multiple different SUB Vi's. However, say one sub-vi is a 2 input adder, and then a 3 input adder. Lab view wont let me do that. I want to call multiple different type of VI's, is there any help you can give me regarding this problem?

 

 


NI Hardware cDAQ not found in virtual machine

$
0
0

I am using a virtual machine, hosted by VirtualBox. I can pass through any number of USB devices, including my cDAQ-9174. However, despite it appearing in Windows Device Manager, MAX and NI Device Monitor refuse to see it. Anyone know how to solve this?

noNIdevicefound.jpgAfter a few minutes, this device oddly appeared in MAX. It's still not right because I cannot interact with it, and LabVIEW cannot see it:

oddMAXdevice.jpg

shift register not updating cluster from changes using bundle by name on subsequent loops

$
0
0

Hello,

 

I'm not seeing expected behavior using a shift register in a while loop.  I'm initializing the register (which contains a cluster from a type def), using bundle by name to update a field from a user input, and two others from a constant, and then passing the value out to a shift register.  The next loop sends in the elements unchanged.  I expected to see the changed values on the next loop but the probe shows that it's empty coming out of the left shift register.

 

I can post the code if needed, but hoping my mistake is obvious from the picture.

 

Data Aquisition Problem

$
0
0

Hi, 

 

I am writing a program in labview that outputs voltages and reads current values, and the current values I read must be recorded onto an excel sheet. In order to retrieve these current values, I have used "Get Waveform Components vi," and then use "Delete from array" to delete from the array of doubles that I get from the waveform components. For some reason, when I record the data, I get arbitrary zeros in the middle of the data instead of actual current data, and I can't seem to figure out why. If you understand what the problem is or have had it before, and know how to fix it, please let me know. Attached here is an example of my current document. You can see that there are arbitrary zeros, which I do not even see on my waveform graph in the actual vi.

 

Thanks,

 

Networking - Raspberry PI Multi-layer Network

$
0
0

Hi I am trying to set up a network of Raspberry pi that will listen on a websocket such as 10.240.240.105:6135.

 

The PC will access the HTML file "Data storage network"

 

Here's my question, would I be able to ping each Raspberry PI from the PC/Workgroup WIFI?  Is my schematic correct?

 

RH520 Network.png

Need help with data acquisition for NI MyRIO 1900

$
0
0

Good day! DAQmx is not compatible in NI myRIO. Any alternatives you can suggest? We're working on acquiring ECG signals from electrodes. We're having a problem when it comes to displaying the acquired signal. Thank you!

colour map inversion

$
0
0

Hello All,

 

I am working with a thermal camera and managed to acquire a simple 5 second video. The camera only displays the max and minimum values of the present temperature range on a colour bar.

Is there a way in LabVIEW to invert the displayed colourmap recorded in the video and get exact temperature values for each colour? 

 

Thank you for your help in advance!

Attila

Control design and simulation toolkit evaluation version

$
0
0

Dear all,

Today i have installed the labview 2017 with control and simulation toolkit evaluation version and extend the period to 45 days.

My concern is why i am not able to use the pallets (Not able to drag it on block diagram).

My ni licence manger showing the evaluation period with 45 days.

Is there any thing else i need to do in order to use this toolkit during the evaluation period or there is no way except paid activation.

Please suggest what i should do to use the control simulation library during the evaluation period. Please check the attached screenshot for licence manager.   

 

labview.PNG


Time between successive readings

$
0
0

Hi guys,

I am working on getting angular position of two encoders separately, each with X4 encoding. I need to get the time between two consecutive measurements with high resolution relative seconds function, but I can't exactly figure out how. It would be of great help if you can kindly suggest a solution for this issue of mine. I tried getting the time of each iteration with the solution posted in another discussion in the forum, but to be more precise, I would like the time between two measurements as told above. Please help me in this regard. Thanks in advance, people! Smiley Happy

how to read XML file using labview 2017

$
0
0

Hello Everyone,

 

Im trying to read an XML file and to bring the data into an array. Well, I've tried many ways which was not helping me till now. Kindly someone plz suggest to read an XML file.

 

XML file will have a customized data which we required for our project. Hence I cant share that file.

Thanks in Advance.

 

Regards,

Vijay

DC offset in NI USB 7856R

$
0
0

Hi all,

 

I have developed a labview project to acquire data continuously from my FPGA device (NI USB 7856R) and later plot it in excel. After a series of debugging attempts, I am still left with one. I am applying a test signal: sine wave (through signal generator device) of 100Khz 1Vpp at input and expect the same at output. However I do not get a perfect sine wave but it experiences a certain DC offset. (Please find the attached waveform) I tested my signal generator itself and it works fine.

Also I face another issue. When I apply absolutely no input, the waveform plots a straight line of -10.5 V. I don't understand the reason behind it.

Please find the attached project and respective VIs. Any help is appreciated.

Thank You !

 

P.S: Please refer to attached VIs only. I apologize for the excess VIs and messy organisation.

 

Regards

Pratik

Measure passing time between to rising edge in analog inputs

$
0
0

Hello guys, I need a little help!

I work with a National Instruments Data Acquisition Device and I use the digital multi meter (DMM) part of the device with two capacitive sensor ( I use this part of the device because i work with industrial voltage). They are come into the same input.
I use Mydaq Assist to visualize when the sensors get sign and I put a Waveform Chart and a Led to see it works.
I would like to measure the passing time in seconds between two rising edge and i need some help to solve this problem.

LABVIEW FPGA - log High speed encoder readings

$
0
0

Hi, 

I'm new to LabView FPGA. I have an encoder with 1000 ppr. I want to log each pulse from the encoder against a time stamp for 20 seconds at 4000 rpm. So that means I will have to log 66 666 pulses per second. I need to log all these pulses against a time stamp. 

I don't need to access data in real time. Since I need to acquire data only for 20 seconds, it is more than enough if I can access them after data acquisition. 

I am using a cRIO - 9024 with the high-speed digital card NI 9401. 

I need this to finish my MPhil thesis. And I'm in a bit of a hurry since my scholarship is only good for next 3 months. 

Thank you. I really appreciate if anyone can help me. I'm really screwed if I cannot get this right. 

Viewing all 66767 articles
Browse latest View live


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