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

Can't log data into multiple column *.csv format

$
0
0

So I have been trying to output my logging data from DAQ system into a csv file.

For some reason, Labview put all data into 1 column instead of 3. Any idea where I went wrong?

Also, you can see from the VI that I'm trying to log the time stamp, but to be honest I'm not sure how to do so. Any suggestion?


LabVIEW class data reset tod efault vlaue warning in PPL 0x

$
0
0

Hello,

 

after my packed library is build and I try to open it the following warning is displayed:

 

image.png

 

I have tried things like mass compile, add remove class from project but result at the end is the same.

 

What is the source of this error and how it can be removed?

 

Thanks!

Local Variable

$
0
0

Hi, i wanna to know about local variables implementation. Is local variable effect the speed of program? if yes then what we will use instead of local variables? Any suggestion  

Converting VIM to VI Instance (Scripting)

$
0
0

Hi All,

 

I've been having issues generally with VIMs and thought I would just create a scripting tool that quickly converted VIMs to VIs (and make it a QD shortcut or similar). Anyway, the 'replace' scripting method doesn't like replacing VIMs with VIs.

 

Here's some proof of concept code I've been playing with - hopefully, someone can see an obvious mistake. - I don't really want to have to "delete the SubVIM, insert new VI, rewire...".

 

Order of operation:

  1. Get a reference to SubVIs and filter for VIMs
  2. Create a copy of the VIM and save as a VI
  3. Replace VIM with new VI

Converting VIM to VI.png

Does anyone have any thoughts on why this doesn't work / quick workarounds (quicker than deleting, placing, rewiring etc)?

 

Cheers,

Tom

Data Plot Error 85

$
0
0

Hello, I read serial data from vacuum sensor. Then i want to plot received data graph received instantly.

 

I added main.vi. And you can see my data out format from .png

According to my data out, how do i choose "scan number" or xy axes values to solve error 85?

What's the meaning of "Quality" in SV value change notification?

$
0
0

Hello,

 

I am trying to understand the SCADA template, but there is a parameter really hard for me to understand, which is showed as attached.

 

I want know what is the meaning of "Quality" in SV???

 

 

How to acquired data from "0"

$
0
0

Hi everyone. I'm trying to acquire data to an array and then do some other options. In order to make the data placed in a rising sequence I want to have the array start from "0". To be specific, I want it to be "0,1,2,3" instead of "1,2,3,0" or "2,3,0,1". Now I'm trying to achieve this goal by using case structure and when the first data of the 1D array is "0" then start save the data to the array. 2 days ago I made the code work but afterwards it cannot function as I wish. I think there must be errors which I didn't figure out. Any feedback would be helpful. Thank you!

 

Hereby is my code. 

 

read data.png

Frequency response Analysis Labview

$
0
0

Hi, thanks for your attention. 

Equipment: NI 6366, function generator EFG 3210, current transducer, voltage transducer and an Inductor. 

signal ---- Sine

Voltage ---- 5V

Frequency range ---------  20-2MHz

I want to perform sweep frequency response on an inductor. I need an input current and output voltage from the inductor in labview.

 

Questions:

1. How do i capture the input and out response in labview including the frequency.

2. Can I make an accurate measurement or perform a correct frequency analysis with the setup attached?

Because i have no control on the signal frequency been generated

3. And is it possible create a frequency analyzer using this Daq mentioned above. If yes how do i go about it.

I look forward to hearing your kind responses. 


LabVIEW RTE does not find lvpalettesupport.dll

$
0
0

We have been working on an update on our test system. The system is based on a measurement engine developed by an external partner company, and we create custom TS test types using their API. The VIs used by these test types are compiled into packed libraries - for example among others a test step configuration VI. We use LV/TS2017.

 

Recently a small update was needed in the measurement engine, but at the same time we noticed that its API was changed to a packed library (previously we had individual VIs). First the API was delivered in LV2014, but we asked them to recompile in LV2017. 

The updated 2017 API and new function have been tested on our development stations, compiled and sent to the factory. However, the engineers have reported a strange issue, the updated custom test type´s step configuration window can´t be loaded at all when the TS adapter is set to LV RTE. 

 

The error message is attached, it complains about missing lvpalettesupport.dll. This dll is located right next to the updated API in the TS/Components folder. However, this dll is used by our functions as well, and we copy it to another location when compiling our packed libraries. I believe that the root cause might be somewhere in the packed libraries trying to access dlls with the same name from multiple locations, but I can´t figure out what exactly is happening. It is tricky to debug, since it works on our development stations with LV development environment, even if I change the adapter to RTE. If only RTE is installed, TS will not find the dll.

 

I tried mass compile our code, renaming the dll in the build specification, cleaning up the virtual machine used for testing to only have one copy of the dll, but nothing solved the issue.

 

The really interesting thing is, that if I try to open the step configuration VI again, the VI will open, and the engineers can run the test sequence afterwards. This process of opening the configuration VI twice before execution need to be repeated after a TS restart or a complete module unload.

 

Can someone please give me some new ideas?

Thanks

 

Elements added to the queue are disappearing

$
0
0

Hi all,

 

I am having an issue with a queue, I am pretty sure it is a simple solution but I am just not seeing it, so I though I need more eyes to check it.

 

I am using a Queued Message Architecture and I used a separate parallel loop to keep track of the time the program takes to run one part in my equipment. So I have a queue to keep track of my time and one to update my program UI. In this loop I am just waiting for one second and then updating the UI to reflect the amount of seconds that have passed.

 

The weird thing is that the first time that the loop executes it does it correctly and my main VI with the UI recieves the message and updates the 0 in the UI, but for all subsequent executions of the same state in the program if I use debug or probes I can see that the enqueue function is being executed, and no error is being generated, but the update time message never makes it to the main application after the first one.

 

Note: I should also point out that this specific UI queue is being used by other queues with no problem, this Loop seems to be the only one having this issue.

 

Thanks!

Timing Loop.PNG

Trouble with state machine tutorial

$
0
0

New member here. I am trying to replicate a tutorial. 

As far as I know I did everything right. But it does not seem to work.

Can someone help me troubleshoot. I would really appreciate that.

State diagram I am trying to replicate is here: http://www.ni.com/tutorial/7595/en/

 

 

 

 

Oscilloscope + Labview oscilloscope driver + Labview = Bode Plot

$
0
0
Hello. 
Maybe someone knows how to create a Bode diagram in Labview with an oscilloscope signal? I downloaded the driver for my oscilloscope to work with Labview. If you know how to do that, please take a photo with instructions.
https://www.youtube.com/watch?v=IVFFyj-U7Jo&feature=youtu.be&t=37 Oscilloscope data sheet https://mediacdn.eu/mage/media/downloads/SDS1000X-E_datasheet.pdf Labview driver for the oscilloscope https://www.siglent.eu/Downloads In Tektronix oscilloscopes, Bode Plot can be executed via Signal Express. Unfortunately, I do not have a Tektronix oscilloscope.

 

write file in loop for each iteration

$
0
0

Hi, In my code I have a for loop and in it the code read all files in a folder and then calculate a value for each file and then I want to write the results in new file with the same name of the source file plus new constant name at the end of it. I tried many ways, but at the end I just have one file with the value for the last file. what can I do to fix that?

Data Logging has a 30 second ahead.

$
0
0

I have a DAQ system that acquires data of thermocouples. But I'm having this issue, when I press a log data button(True or False button), it records the data. But the problem is, when I hit the button I record the computer time. Then when I stopped the log data button, I check my data and I check the time data and it is 30 seconds ahead when it records the data. For Example

 

Computer Time 11:00:30

First Sample Recorded 11:01:00.

 

Thanks,

Reverting to default LabVIEW desktop icon for built EXE

$
0
0

I have LabVIEW 17.0f2 32-bit, and was trying to build a custom icon file for my built executable using LabVIEW's built-in Icon Editor.  It kept making my background transparent when I created a shortcut for the app, and my icon was unreadable.  I couldn't figure out how to make the background opaque, so I checked the build option checkbox to use the default LabVIEW icons instead.   When I rebuild the app, I get the correct LabVIEW icon to show in Windows Explorer, but when I create a shortcut and drag it to the desktop, the original icon I created is still used.  I have tried everything, including cleaning the build and deleting the .ico file I created. I don't know why I can't get rid of this icon.  Any assistance would be greatly appreciated - I've spent way to much time messing around with this already.


open LabVIEW Help programatically

$
0
0

hi , 

i want to know how to enable button (in front panel) to open LabVIEW Help .

Best Regard.

Filtered Signal

$
0
0

Hi 

I need help with the error that keeps on popping every time I run my code when I am using the filter, I am trying to measure an AC current using ACS712 current sensor. My graph has too much noise so I was trying to use the filter to at least reduce the noise, Can you please help.......

 

Please see the picture below.

Thanks a lot.

How to install labview software?

$
0
0

There are two U disk in the package,one is labview2017 PDS,OSX,the other is linux.but i need install labview on my windows 10.did i lost the windows disk?  thanks your reply.

How to synchronize an event case in a while loop from a comparison condition that is in another loop?

$
0
0

Hi Friends,

 I need to synchronize an event case in one loop from a comparison condition that is in another loop. The event case should be executed when the condition is met.  

 

Attached please find two simple VIs for illustrating purpose, however, none works. The first one uses a comparison condition directly, the second one uses enqueue to pass the condition to the dequeue loop. 

 

The sample VI has three cases: addition, subtraction and multiple. the addition and subtraction are normal cases, the multiple case need to be synchronized when the condition is met, which is when the iteration is equal to 4.   

 

Could someone help with this issue?

Thanks,

Gu

 

3 phase inverter

$
0
0

hi i am electrical engineering and search about a simulation code for 3 phase inverter on labview and in myrio

Viewing all 67075 articles
Browse latest View live


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