02-23-2010 02:43 AM
Hi,
I am using DMM (NI PXI 4071) and switch (NI TB 2627). I want to do the measurement by scanning one channel then start to measure, after that go to another channel and start to measure again (so called syncronous).
But, I have problem in my code to display the output of each channel. I just can show the output of channel 0 only.
Here I attach my code. Instead of displaying the output of the channels, actually it only can show the output of channel 0 according to how many samples that I want. That's why I try so hard to show output of others channels.
anyone can help?
Thank you for your help.=)
Sorry my code is very messy.
Solved! Go to Solution.
02-23-2010 07:20 PM
You've not put your DMM and Switch task in a loop.
How can it going to scan through each channel?
There are couple of examples performing this task.
You should try modifying from them, http://search.ni.com/nisearch/app/main/p/bot/no/ap/tech/lang/en/pg/1/sn/catnav:ex/q/dmm%20scan%20swi....
02-23-2010 11:30 PM
Thanks for the response.=)
Yeah... that's my bad.. I just notice that mistake.
But actually I have change the code to become like this. (see attachment)
I'm pretty sure that if I can handle the error, then I can see the output of each channels based on the physical channel that I want.
But now, I cant figure out the error. Because it keeps saying that it's channel based task only though I already follow the example how to use daqmx create channel and daqmx read.
02-24-2010 01:34 AM
Just use http://zone.ni.com/devzone/cda/epd/p/id/1490
No need to write a new one.
02-24-2010 03:50 AM
thank you KateB for the suggestion.=)
That really helps a lot.
I just realise that by using DAQMX, it will ask for analog input, however my switch 2627 (32x1 multiplexer) input is in form of matrix. Am I right?
If I use NI-switch from your example. Then how to display the output of each channels for the multiplexer? Is there any function or subvi that can help?
Btw, I use labview 8.5.
thank you for your time^^
02-24-2010 11:23 AM
02-28-2010 07:30 PM
ouw... it works... great! 😃
thanks kateB for the help. ^^