i am trying to do multiple iterations and want to save data and replot all when iterations are complete.
here i put the example of my idea
i am trying to do multiple iterations and want to save data and replot all when iterations are complete.
here i put the example of my idea
Hello! I currently doing Master Degree Program about Image Processing for bottle detection.
I have perform following processing:
1. Acquire image from webcam
2. Convert RGB image into binary image with boolean output (0,1)
3. Select botle with ROI Global Rectangle. If bottle detected, LED indicator turn "on".
The code work fine. However, when I apply morphological operation before converting into binary image it display error when performing ROI, "error 1074395720 Invalid ROI".
Please kindly give me suggestion
Thank You
Issara
King Mongkut University of Ladkrabang
(This is a follow-up to this question:Import-Shared Library Wizard-Declarations not found)
I am trying to use some proprietary C functions in LabVIEW. At first I had trouble with the Wizard not finding all the type definitions (see above link). This is now resolved, but I am still unable to generate the vi's.
I ran through the Wizard and at the end the report it produced showed ca. 80 out of 342 functions that could not be created.
I checked the C documentation provided with the code, and saw that most of them made use of enums. Using this observation, as well as the hint on the Import shared Libary Report (see attachment), I created custom controls for these enums and I am now trying to apply these custom controls to the correct data types in the step "Configure VIs and controls".
However, Some of the functions that could not be built make use of two different enums. When I try and configure each variable with its respective enum, the Wizard only allows one enum control...? Heres an example:
The function "A3200Motion Advanced Home Async Conditional.vi" has the following variables: functionReturn, handle, taskId and axisMask. The variables taskId and axisMask are both enums. When I try to assign to taskId my custom made control, that works fine, but then I can't assign axisMask its respective custom control.
It looks like only one custom control is allowed per function. Is this corrrect? Has anyon experienced this before?
Please let me know. Cheers
Doug
HI GUYS
I WRITE A vI
AND I WANT TO USE IT IN MY MAIN PROGRAM
BUT I HAVE A BIG PROBLEM
MY MAIN PROGERAM HAVE A STRANGE TREND
I MUST RUN VI, THE DATA ACHIVE MUST SAVE.
THEN AGAIN RUN THE VI , THE DATA MUST SAVE IN OTHER NUMERICAL INCODER
THEN MAIN PROGERAM WILL USE THE DATA
BUT I DO NOT KNOW HOW I MUST DO IT?
WHEN I CLICK RUN , 2 vI RUN SYNCHRONIC
PLEASE HELP ME
Hi all,
I want to use LabVIEW (with USRP, FPGA kit) for programming a NI USRP 2943R.
I can communicate to the USRP via Ethernet (install current image, self calibration, ...) but the NI MAX cannot recognize the USRP via Ethernet.
Is it possible to control the USRP by LabVIEW via Ethernet?
Thanks,
Andreas.
Hi guys,
I have a probably silly question, at least a question of programming style.
It often makes sense to terminate a loop if an error occurred. A lot of people extract the status boolean from the error cluster and connect it by a logical "or" operation to some other termination condition (which usually is also a boolean).
I usually connect the error cluster directly to the "or" which should be equivalent. There isn't even a coercion dot since logical operations accept booleans and erro clusters as well.
What is the advantage to extract the status from the error cluster? It can be also found in original design patterns or in LabVIEW examples.
Hi,
I've been having trouble passing a Generated User Event from a consumer loop back into the Message Handling loop. My example program only has one consumer loop but the eventual application will have a message handling loop, producer loop, writing loop, UI display loop, and a while loop with graphs for displays. The reason for a Generate User Event action is because on occasion, a consumer loop will need to trigger an event in the main message handler. What am I doing wrong here that the generated event won't pass into the message handler?
Thanks,
Anton
Hi all,
I have a set of radio buttons namely "charge,Discharge and wait". Each button perfoms a task and after the task of charge or discharge is complete it moves to "wait". Now, i would like to know how to schedule these tasks in advance. for example, i want to run a cycle which does "Charge>Charged>wait for 5 mins>discharge>discharged" and repeat this cycle n times.
Any help will be greatly appreciated.
Thanks & Regards,
Parth
Hi,
I've been working with the DETT for quite a while now, it's a blessing to have it.
Today, I stumbled over a rather strange issue, when trying to generate user-defined traces from a application: they are just not showing up in the DETT.
So, I have created a dummy VI that's doing nothing but sending the user trace. When using it from the project context, it will not show up in the DETT. Running it from outside the project context, DETT shows the trace.
I have checked VI Server Port, have chosen the right Application Instance, chosen the correct filter settings... I have crosschecked with a older project: user traces are still working correctly there.....
So what can cause a project to prevent traces to be sent correctly?
Cheers
Oli
LV2015SP1
Helo gentleman...
i was try to work with actor framework in labview .starting purpose i go through a study by a video that illustrates sine wave generating vi with a xcontrol waveform chart .there i made all the things adviced in the video but i cant get the output in vi named test.vi can anyone help me to solve this...advance thankzz..
Hello:
I'm a beginner of labview and I'm working on a project now. In this project I need to input a variable to labview, and this variable will be sent to arduino through VISA serial port. Then a servo motor connected to arduino will rotate a degree based on this variable. When I disconnect the motor, the VISA can work and I can see input variable on LCD (RX, RT LED keep ligiting). But when I execute the command "myservo.write()" in arduino, the VISA stop working. Nothing displayed on LCD and motor cannot rotate. If I stop the labview program, the labview will report error. So how can I fix this problem and let moror rotate? waiting for solution, Thanks.
Arduino code:
void setup()
{
// Initialize Serial Port With The Default Baud Rate
syncLV();
// Place your custom setup code here
myservo1.attach(6);
Serial.begin(9600);
lcd.begin(16, 2);
lcd.clear();
myservo1.write(0);
}
/*********************************************************************************
** loop()
**
** The main loop. This loop runs continuously on the Arduino. It
** receives and processes serial commands from LabVIEW.
**
** Input: None
** Output: None
*********************************************************************************/
void loop()
{
// Check for commands from LabVIEW and process them.
checkForCommand();
// Place your custom loop code here (this may slow down communication with LabVIEW)
myservo1.write(0);
lcd.clear();
lcd.setCursor(0, 1);
lcd.clear();
inc = "";
while(Serial.available() > 0)
{
income = ((byte)Serial.read());
inc += income;
}
lcd.print(inc);
//delay(50);
unitX =(int)inc[2] - 48;
tenX = (int)inc[1] - 48;
hundredX = (int)inc[0] - 48;
positionX = 100 * hundredX + tenX * 10; + unitX;
lcd.setCursor(0, 1);
angle1 = positionX - 74;
lcd.print(positionX);
delay(100);
myservo1.write(angle1);
positionX = 0;
}
Hello everyone,
I think this question may be more suited for some kind of RF engineering forum, since I think my lack of knowledge lies largely in the theory of what I'm doing, but you've been extremely helpful for me in the past so I'd like to pose the question to you.
I have a setup in which I have to send out a sinusoidal wave of a given phase from my FPGA (NI PXIe 7972) + adapter module (NI PXIe-5783) setup. My program should be able to measure that phase and make adjustments on the fly. While it seems this is fairly simple to do so, the powers that be (my bosses) have decided to utilize an I/Q mixer (SignalCore SC5412A) to do this, so that we can also upconvert the frequency using a local oscillator signal from a signal generator (NI PXIe-5654). And I'm not entirely sure how to proceed in that case...I saw a bunch of I/Q examples for RFSAs, but that's reading, rather than writing, I/Q data, and it's not FPGA-based.
Is there a simple way on the FPGA to say "I want this phase and amplitude wave" but then have it output that wave as the equivalent I and Q signals? Or would I have to manually output a matching sine and cosine wave and then do math (maybe with something like CORDIC) to calculate the actual phase and amplitude of the resultant wave?
Thank you so much for your help, and to those that celebrate, have a very happy Thanksgiving.
I am using the NI Embedded CAN for RIO and I need to change the Data Length Parameter in a CAN Frame.
Is there a way to do that? If not, are there any workarounds to this issue?
Thanks,
Yousif
Hello community, I would like to mention firstly that I am a beginner in LabView. I am trying to run an XY stage using LabView. I have two stepper motor drivers for driving the two stepper motors, one Arduino Uno, and one 12V power supply. I had an already working X-axis stage. After making electrical connections of the second stepper driver with arduino and power supply, I modified the existing block diagram in LabVIEW by almost duplicating it with just the new stepper motor component with its respective pins added. I thought it would be able to control both axes independently but I found that both front panel controls control only one axis of stage which was the already working axis.
My program's application falls in the Noise and Vibration's field. I am using Tri-Axial Accelerometers with the Sound & Vibrations Toolkit with the vi: SoundVib_Calibration.lvlibVL Calibrate Accelerometer (DAQmx).vi, and as soon as the AI Channel is selected, the -1926 Error comes up, which is related to the Not Detections of the Calibration Signal or, to the Frequency of the Calibration Signal out of range (tolerance); however, this is not the found conditions oo my equipment; I am using an Accelerometers Calibrator (PCB 394C06 – Accel: 1g, Freq.: 159.2 Hz, Max Load 210 gramsPCB 394C06 – Accel: 1g, Freq.: 159.2 Hz, Max Load 210 grams) and a CompactDAQ 9172 with 9234 modules, and while I try to calibrate every single axis, I make myself sure to keep the Calibrator on and all de modules detected as well... As I said, the error appears every time a new channel is selected (ensuring you have the signal on it ...), only once; But looking at the low level VIs, I found that the error is generated in the SoundVib_Calibration.lvlib: SVL Calibrate Sensor (DAQmx) .vi, and according to its Block Diagram, this error is related to having the signal frequency But this error also appears when there is no signal connected to the selected AI channel; So it seems that for some reason the low level vi can not detect the signal of the new channel selected, is how the vi continues to signal in the previous channel where there is no signal. Until it runs again (for the second time), the error goes away ... I have attached a file with some shot screens with more details on what I have done (interchanging the calibration signal, modules, etc.) for verifying the calibration signal is detected. As additional information, I am using the latest release of LabVIEW 2016 (32-bit) for Windows 7 Enterprise, the Sound & Vibration Toolkit 2016, and the laterst DAQmx Drivers.
RT, I want to use LabVIEW to call .ejs file, and perform script embeded in the file. it is possible?
well appreciated your suggestion here!
Hello,
I want to save strings to a .txt file. I can't use wirte to measurement file as string doesn't have timestamp.
I tried to use "wirte to text file", but it seems that it only saves the last value. If I build an array of strings using build array and shift register, everytime I stop and run the vi again, the string array will not be cleared, all new data will be appended to old data.
I'm wondering that is there any solutions? The string format is 111,222 333,444.
Thank you so much and have a good thanksgiving!
I created a 2d array of strings.What I need is to search inside the string for specific words.How to search for specific words in a 2d array of strings ?
Tell me please, how I can get brightness of pixels at points that are located on the circle every 10 degrees, It meansmustbe36 points on the circle..
First of all converted into gray tones,
thendrawa circle specifiedradius in the studied area,
thendetermine the coordinates of36points
then determine the brightness at predetermined points
for example - image
I copied a whole project from an external drive to my local disk and made a few changes. Saved it and when i run, the VI works perfectly. When i try to build an exe file, build process is completed successfully but exe file itself doesnt work. it says "LabVIEW:Generic file-I/O-error. BH_EL2xxx.lvclass cannot be loaded."
In Project i do have 2 warnings. Please see attachment. The path "D:\" is actually not in my computer. I dont have a D partition. only C. How is it possible to chnage the path of these 2 dlls. When i right click, there are no options to replace nor delete them.
I also tried to open the original project and "Save as -->Duplicate lvproj files and contents" with another name in another Computer, but still the same error while building exe.
Anybody have any ideas`?