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

TDMS create/read/write error

$
0
0

Heys guys,

 

I try to work with TDMS but I get many errors.

 

1, If I open the following VI I get error "6" generic I/O error. I have to mention, that the data path is pointing on a folder on the Host, the VI shown is executed on the RT system. Not sure if this works.

Create TDMS.png

2, If I want to create this file it gives me error 118 "data path not found" (VI is executed on the host and data path points to a folder on the host, too)

Create data path.png

3, If I point on a excel (.xlsx) file for read/write where I manually changed the ending to .tdms I get error -2503 "wrong data format". Even if I want to open it manually I get this error...

 

4, So I am not even sure how to create/open a TDMS file manually... Do I have to install further software to do that?

 

Kind regards

 

Slev1n

 

 

 

 


code evaluation, please

$
0
0

I'm a rather recent developer since approximately 1 year 1/2, and I realize I'm allready getting my own programmation habits.

I would like to know if this habits are good from your point of view

 

you will find joined my most recent code. Can you just take a look of my code design?

 don't hesitate to make criticism if necessary (with arguments of course Smiley Happy)

 

notes:

-made with labview 2015

-project name is "assembly 2.lvproj"

-main VI is "assembly 2.vi"

-programming time: 12 hours.

-validation not finished

 

For the curious people:

it's a small program that pilots a bar code reader and industrial screwer, for an operator.

1)the operator scans the barcode of the product (step"lecture douchette")

2)if the barcode is scanned + prerequisites and previous building steps are good for this product(step"verif N-1"), the screwer is unlocked (step"envoi visseuse")

3)at the end of the screwing, the screwer returns a frame, handled in step"lecture visseuse"

 

thanks four your opinions

"task location"

$
0
0

 

Hi NI community

 

I am a labview novice, but have a computer that was running a big set of VIs whose HD failed and with a new computer and a backup I have to get it running again.

 

My issue is that despite back ups of the VIs, the NIDAQ-Mx 'tasks' (details of each input from my hardware) are no longer there or configured...  All my programming is just drawing from nonexistant tasks....

 

Again, as a novice I have looked around, there are no project files with task info, there are no .nce, .ini or .txt task files either I think....

 

.... So my question is where are 'tasks' stored and in what sort of file format? There must exist somewhere in a non-project based VI.....

 

Perhaps that is a dumb question and I'll have to reconfigure everything....

 

 

Thanks,

 

Tom

release V1.0 of a free LabVIEW Datagrid open source project

$
0
0

I have finished the first version of the datagrid project for LabVIEW.  Its open source and a great way to use Grid functionality to replace labview's ancient tables and mulitcolumn listboxes, with more features, data types and ease of use.  Check out the project on github and download the VIP installer or packed libraries to try it out.  Its built for LabVIEW 2014+ at the moment.

 

 

 

cpu usage while loop

$
0
0

Labview manuals state that a while loop should always contain a "wait for ms" vi to unlock the task for that duration.

However i thought it comes out the same if i use the same ms wait time for the timeout of an event structure inside the while loop

and omit the "wait for ms" vi.

Unfortunately the timeout of the event stucture does not seem to unlock the task so that the frontpanel reacts very inert in this case while it reacts
prompt in the other case.

Has anybody deeper explanation for this behaviour?

 

Clearcase version contol checkin problems

$
0
0

Clearcase version contol checkin problems

 

I created a simple project with a vilib and can successsfully check in all parts to clearcase with no issues via on board version control in 2014 and 2013. After adding a lvclass, I cant check in the lvclass and the lvproj . The vi in lvclass is small and has 2 controls.

 

Any comment would be appreciated.

 

Thanks.. John

 

 

Labview USB HID Data Send

$
0
0

Hi everyone.
I want remote a quadcopter with labview. I use to usb hid protocol. First read gamepad axis and buttons data and after send to quadcopter. My transmitter use PIC18F4550. I can read int data to pic but i can' t send data to pic. I want int value send to pic. not string. I studied before post for labview usb hid conneciton., but i can't work it. Can you help me?
Thanks.   

Read binary incorrectly

$
0
0

Hi,

 

I made a vi to read a tiff file as binary.

But I found that the total bytes read by my vi alwas lacks 15 bytes.

I have checked the total bytes with other binary editor (e.g. hex fiend and 0xOD).

 

Does anyone know why this issue happens?

I attached my vi and the tiff image I tried to read.


Reload VI Memory Space

$
0
0

I posted a few days ago about a crash in my executable when the Export Image invoke node (from a picture control) was run 102 times while set at EMF file type. It turns out that changing the filetype does fix the crash, but after further work, I came to the conclusion that I need it to be EMF for formatting and report manipulation reasons.

 

The crash doesn't occur if I restart the executable before reaching the 102nd iteration, but it does occur if I stop the running VI and run it again without restarting the executable. Is there a way to run a VI in a way that resets it completely? I've toyed around with the Call by Reference options and Call Setup dialog, but none of it has fixed the problem.

 

Here's all of the same info from the last post as it is still valid:

Crash Popup.png

Copy Image to Clipboard.png

import data for selection

$
0
0

Evening,

 

I'm sure this is a simple thing I've just never used, so apologies in advance if a simple one.

 

I'm importing a tab delimited list and want to make a selection from it.  Is there an easy way to make a selction from the imported list?  All data for a test is recorded in tab-delimited file so dont need to show all columns  but the remaining column data sets up the labview test.

 

Is it a proprty node or something similar......................not really created that many property nodes so if it is: please treat me like an idiot Smiley Happy

 

Many thanks in advance

 

Martin

cann't configure xillinx ip

$
0
0

i installed labview 2014 and find that cannot configure xillinx ip . what should i do?

such as 捕获.JPG

 

Auto scrolling buffer for Serial recieve

$
0
0

Refer the attched VI ( LV2012)

 

Data arrives at the input buffer to this VI once every second.

 

With the setup as I have I am able to see it but only for a second and then a new ones comes.in. I tried concatenating but that works till only the visible range of the indicator I have.

 

What I need is  an auto scrolling indicator that adds a  vertical scroll bar the moment the values go out of the lower edge of the indicator.

 

Any ideas ?

LabVIEW searches the same file again and again

$
0
0

Hey guys,

 

I am close to getting crazy. I work on the myRIO RT system and want to bind the bitfile reference to type definition.

 

If I want to do this, a window pops up and it searches for a .ctl, but not the one I bind the reference to. But it never finds it, I can look for it manually by browsing, but the window pops up 20 times and it never reminds where to look. Later when I want to choose a parameter on the write/read control interface to the FPGA it looks for the same .ctl 2 times...I am getting crazy!!

 

The.ctl is in my dependencies and is not marked with a yellow exclamation mark. The funny thing is also, that this happens only at my laptop, not at my desktop pc...

 

The .ctl labview is looking for is in my RT VI but is it normal, that labview looks for it when I click on the control as indicated in the  picture?:

Udad.PNG

FINAL QUESTION: Any idea how I can make him remind where to find it?

 

 

kind regards

 

Slev1n

Best practice concerning .ini file read out

$
0
0

Hello LabViewers

 

I have a rather large application which is using a lot of hardware communication to various devices. I created an executable because the software is running at multiple locations. Some settings are currently hardcoded, others I put into a .ini file, such as the camera focus. The thought process was that these kind of settings might vary from location to location and can be set by a trained user into the .ini file. 

 

I would now like to expand the application by being able to use two different versions of the key hardware device (an Atomic Force Microscope). I think it makes sense to do this by using two versions of .ini file. I am intending to create two different .ini files and a trained user could then again adjust settings, such as the camera focus, if needed. The other settings he can leave untouched. I also inted to force the user to select a .ini file when the executable starts using a file search dialog, unlike now where the (only) ini file is automatically read in. If no .ini file is specified the applicaiton woudl then stop. Does this use of .ini file make sense?

 

My actual question resolves now about how to handle the read-in of the .ini file. My estimate is that between 20-30 parameters will be saved in the .ini file I see two possibilities but I am not sure what is the better choice or if im lacking a third one

 

1) (current solution) I have created a read-in vi where i write all values of the .ini to global variables of the project. All other VI's only read out the value of the global variables (no other write) to ommit race conditions

2) I pass the path of the .ini file into all subVIs and read out the values of the .ini file where needed. I can open them as read-only. 

 

What is best practice? What is more scalable? Pros/Cons? 

 

Thank you very much 

Modbus on Windows palette

$
0
0

The LabvIEW 2015 comes packaged with a Modbus palette that works fine on Windows, but isn't listed on the palette.

 

I keeping having to go to a RT target and get the ModBus functions then move them over to the Windows application.

 

Is there a reason for this not being included?


vilib vi's not found

$
0
0

I reinstalled Labview 2014. But it seems that there are some problems with the paths..When opening the FPGA sample project for Compact Rio it has problems finding Clear Errors.vi.

 

 

path_error.png

 

When I change the path manually it is able to find the vi's. But this should not be necessary ofcourse.  What could cause this? And is there a way to let Labview find the paths by itself again?

 

crio_unable.png

Then it is stil lunable to find this vi. But this could be because I miss the fpga package.

 

 

EDIT:

After installing the FPGA package I get this error:

create project.png

decimal strings

$
0
0

I have the following VI with 8 indicators that I plan to attach to connector panes so that I can pull this data into a teststand sequence

file but these are comma delimited strings in hexadecimal formats.

 

Is there an easy way to set these indicators up so that they display these values in comma delimited decimal values?

 

Thanks!

 

string conversion.jpg

How do I create an array of 16 * 16 with information that I read from the card

$
0
0

hi,

I have a state machine that reads  information from my device.
I need to build a array of 16 * 16 with the data that i received.
I can not understand how I build such a system in my state machine.
I know how to build array of 16 * 16.
The question is: How do I build such an array with my data in the state machine.
I attach the files of the state machine and array.

Defer control update available in LV? (Not Defer Front Panel Update).

$
0
0

Is there a way to defer only one control's FP updatein LV?  When I defer front panel update, the whole front panel with all other indicator flashes.  Hence I'm looking for such only one control defer.  Is it possible in LabVIEW?  Or does the option like synchronous display will help in this?

 

Backgound of my need is that, I format a string in string indicator programatically with lot of property nodes.  I change its color, boldness, font, etc.., in that indicator.  I do it very frequently and hence the flash occures when I defer whole FP and it's not impressive.

 

Thanks,

Ajay.

Dereference pointer returned from a dll

$
0
0

Hi,

 

I am trying to understand how to dereference pointers I receive from DLLs.

To test that I wrote a dummy DLL and I cannot even get that to work.

What am I doing wrong?

The DLL-Code is this (C++):

 

extern "C"                                      
{

    __declspec(dllexport) int* int_pointer(int)
    {
        int a = 55;
        int* pointer_a = &a;
        return pointer_a;
    }
}

 

I am trying to dereference the pointer using "moveBlock"

 

 

 DllPointerSnippet.png

 

But I do not get the right value (55) back. I either get something that looks like an memory address or I get the value of "Size of Int".

I have been checking all the tutorial I found on this, but I still could not figure out my mistake.

Do I have to allocate memory before using "malloc" in the DLL?

 

Thanks a lot for the help,

                              Andy

 

 

 

 

Viewing all 69583 articles
Browse latest View live


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