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

insert Varray values into a cluster where the array is

$
0
0

Hei,

 

I am using openG libraries. I have a cluster MAIN which has 2 clusters A,B that contains different controllers (bool,strings, integers, enum) and an array C which has a cluster that also contains different controllers. What I want to do, is to read from a INI file and save it into A, B cluster and in C array. I manage to write the values for A,B clusters, but with teh array C I have some problems. 

 

How or which is the best way to access the values from the INI file and save it into the C array which is a part of MAIN cluster. The code below is how I do it for cluster A and B.

 

Labview.PNG

 

Thanks for the help.


How can I get the current max value of a measurement

MT problem: Symbol rate (timing) auto correction (recovery)

$
0
0

MT problem: Symbol rate (timing) auto correction (recovery).

 

Hi everyone!

 

I write small project demodulation PSK, using Modulation Toolkit, and have some problem…

 

I must create demodulator with auto-correction symbol rate function.

 

I do this using VI “MT Compensate Sample Clock Frequency Error”.

 

Problem:

- If Reset=true (Resample and Demodulate VI) then all work good, BUT number of bits in output bitstream incorrect (because vi reset every iteration).

- If Reset=false then bitstream correct, but auto-correction not work, because each iteration change dT in waveform and if dT change then Demodulate VI must Reset….

 

May be I do something wrong? May be another way?

 

Please, help me!

 

All source and signal in archive TestPsk.rar  :  http://www.ex.ua/89720751

 

If Record button pressed – output bitstream record to file adc.bin, you can see it in bits using BitViewer.exe (it also in archive). In correct output bitstream must be synchro-marcer with period=200.

 

Thanks all for any help!

Sorry for my bad English.

mikrotron camera & Measurement and Automation Explorer: reduce fps and control exposure rate

$
0
0

I am having problems setting the frame rate per second and exposure time. 

 

1) In continuous acquisition mode, frame rate per second is always set to the maximum value for a given size of the image. I want to bring frp down so that I can have longer exposure time, but I cannot find a way to do it. 

 

2) In SingleFrame acquisition mode, the exposure raw time shouldn't be constrained any more. However, there is a maximum value of 1023. I wonder what unit is this, where it comes from, and whether this can be altered. 

 

 

 

Producer/Consumer architecture: Optimize Queues

$
0
0

Hi

 

I am using producer/consumer architecture with an event structure. I am using queues. I would like to optimize my work with queues. At the begining my code looks like:

 

Scan4.jpg

After the optimization my code is:

 

Snap3.jpg

 

The application starts normally but I have to push a lot of times my buttons related with the optimized queues to launch the corresponding event. Before this optimization everything was OK. Could somebody help me?

 

Regards

 

 

System Colors in Color Box Constant

$
0
0

Hi,

 

I want to know how LabVIEW handles the values of system colors in case of a system change. For example:

 

I develop a VI on "System A" and choose the system color "Window" in the Color Box Constant. Now I run the VI on another "System B".

 

Retrieves LabVIEW now the system color "Window of "System B" or retrieves LabVIEW a fixed value from moment of development on "System A"?

 

Kind regards

 

Christian

Need help with combination-code assigment

$
0
0

Hi forum!

 

I have a school-assigment to next week and Im struggeling with the idea on how to make a 4 digit code-lock with a possebility to change the code with a master code.

Im using a hardware keypad with 10 digits (0-9).

Can anybody please help me with this?

 

Apologyse for my English :smileytongue:

 

Thanks

Best way to add inst. drivers when building an .exe?

$
0
0

Hello,

 

I am finally at the stage of building an executable out of my project. I'm using a HAL and as a consequence the build script doesn't include everything in my project. I figured out how to get the classes into the build, but I can't seem to add some instrument drivers that are in the LabVIEW inst directory (C:\Program Files (x86)\National Instruments\LabVIEW 2014\instr.lib\General SNMP Driver\snmp communication.llb). They are listed in the project dependencies:

dependencies.PNG

 

But dependencies aren't listed in the source files section of the build script:

build box 1.PNG

 

And I see dependencies in the source files settings section, but it isn't obvious what I need to do to include them:

build box 2.PNG

 

I'm using LV2014 32-bit. I'm sure I could just copy the files into the project, but surely duplicating code isn't the optimal solution. Can someone tell me the proper procedure?

 

Thanks,

Simon

 


Front Panel Background not appearing

$
0
0

I am trying to change the background of my front panel by using the directions found on the website (right clicking the scrollbar..etc.).

 

However when I select an image, the background doesnt change. Instead there is just a dotted line in the background of my front panel and it is still gray.  Any ideas?  see the screenshots I attached.

 

It almost looks like the background is there, but it's just hidden behind the gray.

Problems with different data types

$
0
0

Dear All,

 

 

I inheribted a measurement computer for doing our experiments. While the system was running with labview 8.6, several errors appeared when it was updated to labview 11. I did not change anything in Labview so far but today I tried to fixe it. I am more or less a beginner in Labview but got experience in text based programming.

 

The first figure shows  an error appearing:

 

LabView1.png

The data type of DataFileRefNum is byte stream file reference while the data typ of Delay After Init is 32 bit Integer.

 

I could solve this problem (or better say, there is no error appearing) as shown in the next figure:

 

Labview2.png

The problem I have now is more or less the other way round as shown below:

 

 

Labview3.png

Now i need to convert from Integer to this DataFileRefNum which I was not be able to do.

 

Any Ideas from your side?:-)

 

Thank you very much for all ideas in advance.

 

 

Best

 

 

Alexander

NI 9866

$
0
0

Hi all,

 

I am using a NI 9866 Xnet LIN module with a cDaq-9174. I try to read my LIN2.0 frame and record them in a TDMS file. I have no problem to read the LIN frames but I don't know how to save the frames. I would like to separate the data by bytes as you can see in the following table :

 

TimeStampDataIDTypeEvent IDEvent Slot?Echo?
              
              
              
              
              

 

I really need help on this topic !! Can someone help me please ? I attached my .VI 

visa error unless logged in as admin

$
0
0

I'm installing a LV program on several computers running Win7. It uses VISA to communicate with three separate instruments. If I'm logged in as admin everything runs perfectly but when anyone without admin rights logs in I keep getting VISA error "resources not found". This seems to be the two serial ports on a card, COM1 which is the on board port is working. I installed this on an identical computer yesterday and did not have this problem.

Installation of labview 2014 SP1 (32 bit)

$
0
0

Trying to install labview and when I open labview it immediately crashes after about 5 seconds and a crash report pops out with the below message:

 

 

Exception: Access violation (0xC0000005) at EIP=0x04FDBC56

Version: 14.01.1 (32-bit)

Report ID: cee51a3f-5bc7-45902-930a-bbb44e294ef3

SIUSBexp C8051F320 Write Example with LabVIEW

$
0
0

Hi,

 

I am trying to communicate with C8051F320 which is a SiliconLabs part. I have been able to use the Function Calls to make subVI's for Open, Close, etc which work fine. However, I am having issues with the SI_Write and I was wondering if anyone would be kind enough to provide with an example of some kind for me to follow? I am getting Error 12 of which I don't know what it means. Essentially what I am just trying to do is send the commands to the C8051F320 part to enable some of the register settings and for right now I am just working in just getting one of the pins to output high. 

 

https://www.silabs.com/Support%20Documents/TechnicalDocs/an169.pdf

 

I appreciate any help on this matter thanks.

 

Read/write array to ini file?

$
0
0

How can I reed/write arrays in to a ini file? I was trying to do it in a foor loop since the key.vi does not admit a input array. But only the last element is writen in to the file, how can I append new data in to a certain key?

 

 

 

keyini.png


Run Time Zoom

$
0
0

How can I zoom in/out graph in run-time?

Simple graph is in attachment.

drawing selection rectangle into picture control

$
0
0

I would like to program a vi that draws a selection rectangle with the mouse into a picture control.

This works so far if the user starts dragging inside the picture control. The code is actually robust against

leaving the picture and entering it again. Unfortunately this is not the case if someone starts dragging outside

the pic control. then succeeding drags are stopped after the mouse moves some pixels (about 1-10) and the

selection rect gets fixed.

Any idea, what could be wrong with the vi? Thank you!

 

 

Maximum write speed to log file, trying to get a log entry every 100ms.

$
0
0

I have a DAQmx application which data I want ot log. The aquistion is ran at a high speed, 1 KHz. I want to log the measurements to a text file which can read in Matlab or excel. I a wondering what the best approach is for this and what is the maximum speed.

I have created a program below to test. But it seems that the log is not consistent at 10 Hz alread. The log interval is set to 100 ms while the loop is running at 10 ms.  If I look at the time between the sampes 6 of them are higher than the 100ms. The time between some steps is 700ms which is quite high. Is this implementation wrong or is this just due to the undeterminstic computer?write_to_txt.png

how to record sound into array using DAQ ?

$
0
0

Hi to everyone

Im last year student , im using LABVIEW for the first time.

i have an myDAQ , i need to record audio go through the analog ports/AUDIO INPUT of the myDAQ, into array, for later singal proccesing.

its for my final project.

labview case structure - can't get decimal out from the structure

$
0
0

Hello

 

I read current from NI 9208 (in A). I multiply it by 1000 to get mA and send it to the code you see below. I want the case structure to run when I have more than 4 mA. If I don't, I want the FT04 (indicator) to show 0 (the false case just got a 0 constant wired to the FT04). The code does what I want, but I can't seem to get decimal numbers out to FT04 (indicator). I get 15 instead of 15,4 (just an example). Am I missing something?

 

 

Skjermbilde.PNG

 

 

Viewing all 67078 articles
Browse latest View live


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