LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabView(2013) Measing Two Analog Input At Same Time (Rookie)

Hi Folks,

 

Before jump into explaining problems, I must say that I have no experience with LabVIEW or similar program before. And also, I am kinda new about learning stuff, posting question on forums. And if any missing info or any miss understandable sentences due to my Lack of English I am sorry already.

 

So I was try to measuring two analog(like AI0 and AI1) input at the same. I was building diagram (not by myself but copying mostly from this link : https://www.youtube.com/watch?v=alHwllqoLj4 ) But it doesn’t worked at all. Maybe I made huge misstake without realise it but since I am newbie I think it’s acceptable. So here is my block diagram:

 

1.PNG

 

Before people say, I know both graphs showing the same pin (AI1), I just want to make sure that everything works correctly. But when I try to start program it gives me this error.

 

2.PNG

 

Just for side note, I use DAQ assistant to generate a sine signal to read properly from my inputs. The output data will be from AO_0. I wire my device according to data sheet.

 

NI 6229 PinOut.pngindex.jpg

 

For LabVIEW, I use 2013 version

For driver I installed ni_DAQ_16.0.1

For device I use, NI Data Acquisition Card USB-M Series (USB 6229)

For OS I use Windows OS 10

Laptop (HP Pavilion G6) : i5-3210M & 4GB Ram & 240GB SSD & AMD HD7600M + Intel HD 4000

 

Kind Regards.

0 Kudos
Message 1 of 10
(1,550 Views)

Hi serkan,

 

place both AI channels in just one DAQmx task!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 10
(1,544 Views)

Did you search for error 50103 in the forums before asking?

 

This has come up 1000's of times before.

0 Kudos
Message 3 of 10
(1,526 Views)

Hello GerdW,

 

When I try to connect output of clocking into one Start Task.vi, the cable connection gives an error. And also it flash me a question. If both signal out from one output, how I can see them in seperate monitoring graphs.

0 Kudos
Message 4 of 10
(1,515 Views)

Show your latest VI by attaching it.

 

If you are using a DAQ Assistant, there is a Split Signals function that will let you split the blue wire into multiple blue wires, each one contains one signal.

 

If you are using the DAQmx functions and you've selected 1D array of waveforms as the output, you can use Index Array.  Drag the bottom border downwards to get two outputs,  the top one will be index 0 and the next one index 1 by default which you can wire to your separate graphs.

Message 5 of 10
(1,489 Views)

Hello RavensFan,

 

First things first, I am sorry that I respond that late, I just had a chance to enter the Lab and have access to Devices. So, I was read and try to apply what you said one by one, my latest design seems like this,

 

4.PNG

 

Cool thing is, it works, but I don't why one input affect the other one. Maybe this things not perfectly isolated or smt. IDK. but anyway it works like charm. Thanks Again! Now, with reverse thing what I did for graphs, I'll save the result in one excel file, I guess it's easier than that. Thanks for now!

0 Kudos
Message 6 of 10
(1,461 Views)

You can also just do one Create Channel VI and enter the channel as "Dev1/ai2,Deve1/ai20".  IT will build if for you if you use the Browse...  selection when you select the channel constant and use the Control key while selecting multiple channels.

 

"Maybe this things not perfectly isolated or smt"    What does "smt" mean?

 

Are you saying you are seeing some of the first signal within the second signal when you don't expect to?  What do you have wired up?  Do you have anything wired up to your second channel or are they just open terminals.  You may be seeing something called "ghosting".  That is when you have a high impedance input (like open pins) that prevent the amplifier that all channels share from reaching the voltage level as input into that channel when it is multiplexed in for reading.

0 Kudos
Message 7 of 10
(1,442 Views)

Hello RavensFan,

 

I need to check again but, when I was last time checked I see signal that shouldn't be. For example I gave sin wave to channel AI0, I was saw reverse signal at other channel AI1. I change my second input to AI20 (Since they are not in same connection rail I though it will not affect as much as AI1). But I forgot to check. I am not in Lab now, but whenever I go there, I will create external signal from the function generator, connect one to the generator, and leave other one empty to see if signal is affected or not. You say something called "Ghosting". I don't know what is that mean, I still studying at Engineering. "smt" is "something". sorry if it wasn't clear or confusing.

0 Kudos
Message 8 of 10
(1,437 Views)

Yes.  Please don't abbreviate words.  "smt" is certainly not an abbreviation for "something".  Maybe your friends know what it means if you are texting them, but this is a professional forum.

 

It doesn't matter how far apart the channels are on the rail, it is a matter of the signals being applied to the multiplexed amplifier.

 

Read up on ghosting.  Here is a link from NI about it.  https://knowledge.ni.com/KnowledgeArticleDetails?id=kA03q000000YHy6CAG&l=en-US

Message 9 of 10
(1,430 Views)

Thanks for advice RavensFan. You have point. I should explain everything in a more clear way.

 

Thanks for everything, you help me about a lot.

0 Kudos
Message 10 of 10
(1,426 Views)