Hi,
Can anyone help me how to generate the sequence as below. Output is array of 3 elements and input is number of iteration.
No of Iteration | Index 0 | Index 1 | Index 2 |
5 | 0 | 0 | 5 |
10 | 0 | 5 | 10 |
15 | 5 | 10 | 15 |
20 | 5 | 10 | 20 |
25 | 5 | 15 | 25 |
30 | 10 | 20 | 30 |
n | x | y | z |
Thanks
Hi,
Can anyone help me how to generate the sequence as below. Output is array of 3 elements and input is number of iteration.
No of Iteration | Index 0 | Index 1 | Index 2 |
5 | 0 | 0 | 5 |
10 | 0 | 5 | 10 |
15 | 5 | 10 | 15 |
20 | 5 | 10 | 20 |
25 | 5 | 15 | 25 |
30 | 10 | 20 | 30 |
n | x | y | z |
Thanks
I need to order the waveforms in a 1D array according to user input. The number of waveforms will vary and will match the user input count.
Hello,
I am using LabView 18 and am trying to produce a plot of current versus a staircase voltage sweep. I'm having trouble getting the instrument to stop its increment when I stop running the program. I also don't know how to actually plot current vs voltage it's currently voltage vs time. Any help is appreciated. I've attached a Labview 15 version of the code
Curious about something. I'm using Modbus and Ethernet IP. Getting some data from a mass flow meter and the code that uses the typecast is working as expected. The code using the convert to SGL does not work. Why? I thought all I was doing was taking two U16 integers, swapping them upper-lower then converting to single precision float. What am I missing?
I have a full development licensed version of LabVIEW 2016 and whenever I right-click a control I only get an abbreviated properties window. I have checked the options and searched for an answer but cannot find a way to display all the properties on their appropriate tabs.
Any suggestions as to why or how to correct this anomaly?
Thanks for any assistance.
Hi all,
I got an error200290(DAQmx-write.VI)-The generation has stopped to prevent the regeneration of old samples. Your application was unable to write samples to the background buffer fast enough to prevent old samples from being regenerated.
Can anyone help me?
Thanks,
Mei
Hello,
I am currently running a camera that collects images at around 500 fps and am using a Queue to temporarily store them so they can be saved after all images are collected. If they are saving while capturing it significantly reduces the frame rate. My problem is that while running it appears to be saving all the images in the queue sequentially but when the saving code saves the images they are all saved with last image captured. My understanding of how the queue works may be incorrect, but from how I think it works this code should work. Any help would be greatly appreciated.
Thanks
We have a Keysight 34980 with a SPST relay module in slot 1, 34923 multiplexer in slot 2, and 34937 switch in slot 3. The 34980 is setup in NI MAX I can access each of the modules in slots 1,2,3 with the VISA interactive control app by sending the ASCII strings for open/close/etc.
In Labview NXG I have simple little VIs using IVI Switch components to do things like close or open channels and check if a path is possible. This works fine for the relays in slot 1 and slot 3. No problems opening, closing or checking paths. But we're missing something on the multiplexer module and can never get it to do anything.
Most times these components require two channels for instance to close or open a relay or to check a path. For the relay modules I can use 1001NO - 1001COM (for slot 1) to do this. 3004NO - 3004COM for the relays in slot 3. For the multiplexer, we can't figure out how to refer to the channels. We've tried 2001 - COM, 2001 - COMMON (since it's in slot 2), and all kinds of variations but always get an error.
How do we refer to the mux channels?
Hi,
I creat a vi to setup and communicate with the ft2232h chip.As you can see,open and get a handle stored in the shift register ,then read data from the chip.It work ok.
But once I created a user vi to call the vi ,a problem was occurred : when I try to read data by the vi,it only return 0xFFFF(while if handle=0,as not open, it return 0).
For debug,I open the vi's front,it became ok ;I let the vi's Handle control return to the user vi and show in the user vi's front,it became ok.
So I only can judge the problem is maybe at the shift register but can't find why?
Hi,
I'm working on automating a manual board test process. It’s an amplifier board that has 4 types of filters, each of which is associated with an attenuator except the band pass at higher cutoff frequency has 2 attenuators, so I treated at another type of filter in my program. Basically I have a vi that sweeps the attenuator of each filter from 10db to 31db and the output is measured in a VNA. Every time the attenuator gets incremented, the output is updated and my vi will acquire the data from the VNA and save it in a touchstone format. So I’ve figured that part out so far.
Now I need to check to see if the data in the touchstone files that were saved earlier are within the limits for each s-parameter type. By the way, my touchstone files are composed of mag and phase of only s11, s21, s22. So basically I have 110 touchstone files that need to be checked and plotted. What I did in my program is first categorize the touchstones files based on its filter types, and then sort the each category by the attenuator's values (from 10 to 31 because for my application, s11 and s22 should remain the same regardless of the attenuator's values while s21 gets decremented by 1 each time the attenuator gets incremented and therefore the limit for s21 gets decremented as well). After that I read the touchstone files, create an array of 5 elements, each of which are a cluster of 3 elements: filter types, array of frequency and a 2D array (22x3). That is a subVI and the main VI is to set the limits and plot the data.
I figured out the way to do it, but I feel like my program is not really efficient in term of data manipulation because I keep bundle and unbundle them into/out of a cluster and I use so many for loops. My mentor frequently told me my code is not robust and more complex than it's supposed to be, so I'm trying to think of another way to write my program but didn't have any luck so far. Also, I wasn't able to find a way to identify the filter type and the value of the attenuator if one of the s parameter traces fails.
Any help would be much appreciated!
Thank you!
MV
I am measuring the geomagnetism using a sensor called MPU9250 for MyRIO.
This geomagnetism data is three dimension data(x-axis, y-axis, z-axis).
Currently, the geomagnetism data is displayed on the waveform chart on the front panel
and manually export it to Excel.
I would like to save this geomagnetism data directly to MyRIO's USB port by inserting a USB memory stick
and directly storing the data in an excel file etc. created beforehand in the USB memory.
Is it possible or not? If so, could you tell me how to create labview?
I am having a power meter and a current source. I have to plot a graph of power versus current using labview. Can somebody please help me regarding this? Labview is very new to me, I am not much aware of labview interfacing.
Dear ALL,
Hi there! I got 2 separated in the same block diagram which named digitaltask1 and digitaltask2, they both contain a wait node inside a loop for timing control. In order to make sure digitaltask2 work totally in the digitaltask1's high time, you can see the need is to change the timing analysis from equal to containing.(in the 1st picture, if we set timing A = timing B= 100ms, the next picture timing B should be contained in timing A)
Could anyone give me some suggestions on how to deal with it? What should I do to achieve the function? Thank you in advance!
Best,
Jason
MyRIOにMPU9250というセンサーを接続し、labviewでプログラムを書き、地磁気の測定をしています。
現在は、パソコン上でLabVIEWを書き、検出された地磁気のデータをMyRIOを通してパソコン(labviewのフロントパネルのwaveform chart)で表示しています。
しかし、現在の測定環境ではMyRIOとパソコンを接続したまま地磁気の測定を行っているため、パソコンを持ち運ぶ必要がありとても不便です。
そこで質問です。
パソコンで作成したLabVIEWをMyRIOに書きこみ、パソコンなしでMyRIO単体でデータの測定を行うことは可能でしょうか。
さらに、測定したデータをMyRIOのUSBポートに接続したUSBメモリに保存することは可能でしょうか。
よろしくお願い致します。
Good morning
I'm trying to control a camera with labview. With the help of the forum, I have managed to import the DLL to labview because I do not have much idea of programming in C ++, only the basics. I have find a problem when programming, is allocate memory for the image. I have a example code but i dont know how to do it in labview.
// Pointer to WORD-Array:
WORD *pwImage=NULL;
// allocating memory:
pwImage=new WORD[g_nNumberOfPixel*nNumberOfLines];
// check allocation:
if (!pwImage)
{
// insufficient memory, terminate image acquisition
}
/* Memory allocated, go on: Be sure to use physical memory
ZeroMemory((void*)pwImage,g_nNumberOfPixel*nNumberOfLines*sizeof(WORD));
I would be very grateful if someone can help me with this
Pablo
Dear all,
I am trying to use a .NET assembly provided by Thorlabs which can be used to control one of their cameras. However, when I load the example vi, I am getting this warning:
- Expected Assembly "System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089", but found "System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089."
And when I run the VI, it returns error 1172.
A few things I already found out:
- LabVIEW is using .NET v4.0.30319 by default. I tried to force it to v2.0.50727 using this KB: https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z000000kG83SAE (v2.0.50727 is present on the PC in C:\Windows\Microsoft.NET\Framework). Didn't solve the problem.
- I also tried the workaround as described in the labVIEW help: http://zone.ni.com/reference/en-XX/help/371361M-01/lvhowto/configuring_clr_version/ . Didn't help. It seems strange to me that version 4 is referenced in that config file, is that correct?
- I found that Systems.Windows.Forms.dll is located in C:\Windows\Microsoft.NET\assembly\GAC_MSIL\System.Windows.Forms\v4.0_4.0.0.0__b77a5c561934e089. I created a folder v2.0_2.0.0.0__b77a5c561934e089 in C:\Windows\Microsoft.NET\assembly\GAC_MSIL\System.Windows.Forms and copied Systems.Windows.Forms.dll into it from C:\Windows\Microsoft.NET\Framework\v2.0.50727. Didn't help.
- I am admin on the PC, it's Windows 7, LabVIEW 2014 32 bit.
- The Thorcam application installer doesn't allow you to install the 32 bit version on a 64 bit machine, but the 64 bit version includes examples and dll's for 32 bit;
Has anyone seen this before? Is there a solution?
Kind regards,
Joszz
Hi everybody,
I would like to submit a problem encountered in using the tab control
The LV examples show how to individually set the properties of a TAB control, looking the example it seems very easy but.....
Trying to apply the same code to a TAB control taken from the controls palette, the method does not work
I didn't understand which properties need to be set in order to make the code working
Somebody knows what is the trick used in the example?
Thanks in advance for your reply
monica
Hi,
Here I have found that it be a good idea to use SVN.
Be that as it may, I was thinking about whether I could utilize git,, and what are possible downsides comparing to SVN or any other version control system is there.
To the extent I know LabView source code are binary files and git is designed to store text files.
However I have discovered that many people are using LabView with git.
So generally is it a good idea to use git and what are the benefits by using git repository?
Please give some suggestions to store source code in Git
Thank you in advance!