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

Multiplex Multiple Columns into One

$
0
0

Hello,

 

This seems to be a pretty basic question but I am struggling to get it to work.

 

I want to take a Matrix (1), and convert it into another Matrix(2) where Matrix(2) will have column 1 that was created from the concatenation of column 1, followed by column 2 ... etc from Matrix (1).  As a reult Matrix(2) will have more elements per column but less columns than Matrix(1)

 

Essentially all it is, is multiplexing a few rows from Matrix(1) into a new column in Matrix (2).

 

Thank you.


error -1073807331 VISA write timeout (USB device)

$
0
0

Hi All,

 

So I have a program written to control a BK precision 9117 Power Supply (connected to laptop via USB)

 

The main programming PC with the full professional development suite is working fine, no issues at all when I run the program

 

however, when I compile and build the EXE to use on my testing laptop I'm getting errors when I run it

 

For the first 5 or so seconds, the program runs fine on the test laptop

 

after that it just times out and says 

 

             Error -1073807339 occured at VISA write in BK precision 911X Series.lvlib: Read Output.vi

             Possible reasons:

                 VISA: (Hex0xBFFF0015) Timeout expired before operation completed

 

I'm completely baffled why one of my laptops the program runs perfectly, no errors at all, but on the other laptop I get this error.

 

Any suggestions on what I should do?

 

I already tried to change the timeout value. Didn't work. 

I've checked the subvi's that came with the BK power supply drivers and I don't see any real issues there (its working totally fine on my main PC)

I'm thinking maybe the USB port on my main programming PC has different settings than the testing laptop? Im not sure how to check baud rate and stuff for a USB port though (if it was a COM port I could easily check, but its USB....)

 

 

 

Any guidance would be appreciated thank you!

 

Timed while loop is not executing fast enough

$
0
0

Hello all,

 

I need to trigger some valves cyclically and read the pressures simultanously. The timing for the valves need to be precise while the pressure reading does not really need to be controlled as long as I get some data. To do so, I am using a timed while loop to trigger the valves alternatingly. However, the loop tends to slow down. I have tried different pressure reading rates and methods and still have the problem. Originally, I want the valves to open/close every second but after a while this time increases to more than 1 second. I have attached the VI. Any help would be appreciated.

 

Regards,

Sia

Active-X versus NI-cDAQ (protocol/ timing issue?)

$
0
0

Hi, I'm having a hard time with Thorlabs Stepper Motor controller (BSC202), which is controlled via an Active-X environment.Since it is only one piece of hardware in a larger setup intended to work automatically, power to this and other devices is supposed to be controlled via NI-cDAQ (9174-9481) relays. However, if the relay was switched off before starting the .vi, an error  message will pop up informing me of "+5V digital under voltage" inside the controller somewhere. If I close the message, everything will work fine, despite this notification - not a surprise, as error state is false (investigated with sondes). If the controller was powered on before executing the .vi, no message will appear and everything works fine.

I could actually live with the notification, if it wasn't requiring manual interaction. I tried several things so far:

 

1. Both devices (cDAQ, BSC202) are connected via USB, so I changed cables, ports and added a powered USB-Hub. Especially, the latter had helped with similar issues in the past, but not now.

2. I tried to ignore the pop-up by disabling automatic error handling

    a) in "Vi-Execution..."-properties

    b) and "tools-options-block diagram..."

It will pop up anyway and I don't know why (the official error output of the wire is false!).

3. I tried different waiting intervals to establish USB-communication (>1Min)

 

Worse: the entire setup had been working correctly for several months (unfortunately developed by someone else). So my first guess was: the hardware was actually damaged during a transport. But why would it be working, when switched on before program start, if actually damaged?

 

Is there a better way to control the hardware? I'm afraid it's an Active-X issue, which I don't get, because I'm not really familiar with Active-X.

Are there more options to ignore pop ups requesting manual interaction, which I don't know and couldn't find in other posts?

Is it a real hardware error?

 

System is Win7, LabVIEW 2012, screenshots of minimum code example and pop-up dialog box attached attached.

 

thanks,

Carsten

 

code

 

 

 

event_info_panel.PNG

 

 

 

 

Write measurement to file every X minutes

$
0
0

Hi guys,

 

I am using a DAQ configured into 2 signals every 5hz into a while loop.

 

The fact is that i dont need that huge amount of data, i only need to see graphically.

 

On the other side i have a measurement to file block where i want to save the input data lets say every 15 minutes.

 

How is the best way to implement this?


Regards

Issue with Compilation of FPGA exe on 2015

$
0
0

Hello all,

 

I am having an issue with an FPGA compilation in LabVIEW 2015.  I go to build and I get a request for the 2012 Visual C++ Redistributable.  I install this, and yet I get an error that suggests that it is not installed.  After this, everytime I got to compile, it asks for this redistributable, and when the install screen comes up, it says repair (indicating that the code is there).  This looks like

 

cpp_redistr_fpga.png

 

And the error I get is

 

fpga_redistr_error.png

 

Anyone have any thoughts as to what is going on?

 

Thanks, Matt

Loop does not stop with Button

$
0
0

Hey everyone,

 

I believe this is a very simple problem, but I've been trying to figure it out, and I am in the same question.

 

I am testing parallel events for future application and eventually I understood my STOP buttons are not working. I am creating a sinusoidal wave to simulate my signal and I want to be able to stop/pause the acquisition if needed. However I can't stop it, neither I can now exit the program after starting the acquisition (and after it is finished).

 

Maybe someone can give me some tip? I attached the .vi

 

Thank you!

How to sort data in a TDMS file

$
0
0

This is my first application utilizing TDMS. 

I need to read multiple CSV files of collected data and play them back syncronously. Fortunatly each csv file essentially represents one channel of streammed serial data.

First I would like to place the data into a datastore so that I ca better analyze the data and view the data.

 

I have a few problems. 

First, the data packets in the file are not in order. I would like to sort the data based on the "Time" data. Unfortunatly the time data is not periodic, so I can not use the delta atribute of TDMS.

 

If I was using SQL I would do a SQL querry with a sort by DSC, but I don't see any such option using TDMS.

Is there an equalivent to do this when reading back from a TDMS datastore?

 

I'm currently using LV2011 Professional Dev System.

Below is a sample of how I'm collecting the data so that you can better understand my TDMS data. (this is not my actual application)

 

When I view this data the time data can be all over the map. I really want to sort this, so that "Time" is descending. 

 

Before anybody asks, No, I can not change the format of the CSV files. I can probably do some pre processing of the data before I go to TDMS, but these CSV files are very big. In my actual application I'm doing a Read by line, because the CSV files can be in 10's or 100's of Megabytes, and I have hundereds of these CSV files.

 

(thus the traditional programatic sort will not work very well, because there would be tons of data that would need to be sorted. Somehow SQL does this very fast) 

 

Any ideas?

 

Regards,

 

 ExampleOfMyTDMS.png


Queue fills too fast and crashes program

$
0
0

Hi all,

 

 

I am trying to gather data from three different DAQ devices and different rates, present the data in a graph, while also resampling the data to be written to a TDMS file with a common time stamp.

 

i am using a consumer/producer loop structure, passing data between the loops using queues. The issue I am having is that the queue fills so fast, that once it reaches approximate 90000 samples, it crashed my VI and says 'there is not enough memory to complete this task'. This happens within 1-2 minutes, while I need the program to run anywhere from 10 minutes to 2 hours.

 

Any advice on how to solve this issue is greatly appreciated. I have attached my VI for Labview 2015 as wel as Labview 8.5.

 

 

Reinstalling Labview on a Different Computer

$
0
0

I need to reinstall labview on a different computer.  If I reload from DVD how to I get all of the latest updates? My NI support is expired now.

difference between division and quotient

$
0
0

Hi all,

 

I stuck with something which is look like weired for me. When I was trying to divide two numbers together I got different values in term of remainder as mentioned in theattached example .. please can any body help me to know the reason. thanks in advance  

 

Best regards

Cannot uninstall or reinstall Labview

$
0
0

Hi there,

 

I've seen some solutions posted in the forum, but I couldn't find a proper answer, except reformating the disk (which I'm tryting to avoid to). So I post my description of the issue here. Here is the story:

 

My computer was upgraded to win 10 from win 7 automatically several days ago. Due to compatibility, I rolled the computer back to win 7 then. However, it seems like that Labview was corrupted during this process.

- I kept receiving errors about NI-IMAQdx modules and couldn't read any signal from camera at all. Then I started to troubleshoot and repair the related modules, which didn't work out.

-Therefore, I considered to uninstall and reinstall Labview to have a fresh start. However, when I tried to uninstall Labview in the Windows control panel, I received the error 1612 during the installation. I found the solution for this and run the MSI to generate the resulting log file (attached here) and sent it to the NI team (haven't heard back from them). In the file, it shows that 'Found 969 NI MSIs installed and 34 broken.' I stopped the uninstallation then, but I'm sure some of the modules have been uninstalled already since there is no reaction when I click the labview.exe icon. 

- Then I tried to fix the issue in another way (forgive me if I got things complicated): force reinstall the Labview in the command window. The reinstallation goes okay. It is cleaned However, the labview.exe icon is still not functional.

 

I'm not sure what I should do next. Reading from the available posts, I've seem some solutions:

- reinstall the new labview to a new folder

- use MSIblast to uninstall NI softwares. But this is very risky and not encouraged. I'm not sure if I should try it.

- Run the uninst.exe executable to remove items not removed by windows control panel.

 

Is there anyone having any comment on those solutions? Should I make sure I uninstall the Labview completely first and reinstall it later? 

 

I have been struggling for days... Thank you for any help I could get.

 

Sikee

 

continouos output

$
0
0

Hello Community,

 

I want to produce a continuous ouput that is also recorded continuous and hand me sectionally .tdms-files back (after 400kS).

 

The output should be put together in sections, and work for multiple channels (2D array, each field contains frequency and amplitude). The generation is done in a for-loop. In addition, amplitudes and frequencies during the production should be changeable and adjusted in the next passage. I suspect that the PC can provide the signal fast engough bevor the writing process has expired (at 1MS/s with 200kS, it has 0.2s) or is a case-structure necessary? Unfortunately I don't understand why the recording does not work (samplerate 2MS/s), once I start the program, the signal generated output once and then nothing, the second start he seems coninually to output and acquire. In addition, the read error -200279 occurs. Is the output too slow, so there are no data to read yet? Is there a way that newly generated signals are appended? This would cause that output will always be faster than the recording and there will always be data for recording.

LabView Installation Issue

$
0
0

Hello all,

 

I am trying to install labview on my new work laptop (Windows 8, 64 bit).

 

First time, I tried to download the latest version from NI website, but I got an error message saying I already have a different language edition set up.

I am certain that I have never installed any types of labview on this machine.

 

Error 1.jpg

 

I googled this issue on the forum, and some people sugges checking the anti-virus software. I contacted my IT and he told me our McAfee scan should not be the problem (plus, one of my other colleague also tried installing it on her laptop and it worked).

 

So I tried again using the installation CD. This time, I am able to proceed till I entered my serial keys.

But the machine kept running without any installation progress. When I clicked "next" again, it gave me "runtime error".

I updated the .NET on my laptop but it still didn't work.

Error 2.jpg

 

 

Please help. Thanks.

Generating a value change event internally by the application.

$
0
0

Hi,

 

How to generate a value change event programmaticaly using value signal property. i have find the solutions on the forum which have solution but the problem on those solution is that property node are inside a while loop, so even if value is not changed a event is triggered which is not desired in my application. Can someone give a solution for this.

 

Thanks


myRIO excel

$
0
0

I'm trying to use Excel sub vi's from the report generation pallette in my main Vi which has to work on ni myRIO. I use Labview myRIO 2015.

 

I am getting the following error details: (attached are the pictures of the errors too)

 

One or more of the set of VIs which this dynamic dispatch subVI or property item may call are broken. Each LabVIEW class may own a VI with the same name as a VI owned by the parent of the class or older ancestor. The dynamic dispatch subVI or property item will call one of these VIs, chosen when the subVI or property item actually executes. If any of the VIs are broken, then this subVI or property item also is broken.

 

Excel Error.PNG

 

Excel Error.PNG

 

My question is :

Do these Report Generation pallette Vi's not work on LabView myRIO?

 

If they do not work, why does Labview show them and waste the users time for a Vi that is in a myRIO Project !

 

Any help would be appreciated.

 

Cheers

 

Close file causes Labview to freeze

$
0
0

Hi,

 

I have a Labview program that contains a while loop in which a file is created every time the loop runs. The file is created at the beginning of the loop, and closed at the end of the loop, after some data is written on it. The file created are .raw pictures, and they are about 2.8mb each. 

 

The program runs fine at the beginning and creates the first file without any problem, and then goes on to create the second file and writes in it. Everything goes well until it tries to close the second file with the Close File function. Then, it just completely freezes. There is no error, nothing. It just stops and stay there for as long as I don't force-stop the program myself.

 

I searched on the internet, and found that maybe the creation and closing of a file at every loop is too much for LabVIEW and it causes it to crash, but I don't really know how to change that since I have to create a new file everytime.

 

I can't really attach the .vi file to this message since there is about 15 subvis that it needs to run, but I attached a screenshot of the section that causes problem if it can be of any help.

 

Maybe there would be another way of coding the labView program so it bypasses this problem?

 

Thanks

 

sectionVI.PNG

help with search 1d array

$
0
0

hey guys,

 

Im pulling data from a database and storing it as a cluster of 1D arrays, and now I want to find an element in one array using the other array. after getting the two individual arrays I try and search one using search 1D array comparing to a value Ive already generated. I was hoping to use the index from search 1D array to grab an element at that index from the other array.

 

Currently the array im trying to search has one element, the element im trying to find, but I keep getting a -1 back.

 

can anyone see what I'm doing wrong here? is there something I dont understand about search 1D array?

 

Thanks guys

Using labview to control a third party library that has been programed in c intended for java

$
0
0

 Capture5.PNGCapture6.PNG

Capture4.PNGCapture6.PNG

 

I am trying to use a third party library that is written in C and intented for Java programing. What I am trying to do is to find the location of a device and open the device. In enumerate USB program, I used the FDD_enumeratWInUSB fucntion, it asked for a input GUID and supposes to return a file path. However, it seems that I am not doing it right. It doesn't not want to return me a path. 

In the open device program,I used FDD_DevOpenWinUSB. if I input a devpath it can't open the device.  I tried to bypass the eumerate step, and directly input a path into opend Device program. It doesn't work either. I have trieCapture1.PNG

Capture2.PNG

Any one knows what I am missing or what else I can try to make it work?

I attached the entire docment that decribes the third party library. 

detect when a for loop has finished

$
0
0

I want to be able to turn on a led when a for loop has finished, I wired an array to the for loop, so I don't know how many times it will iterate, because I wired an array, which comes from all files in the recursive file list. Can someone please help me figure this out?

Viewing all 66894 articles
Browse latest View live


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