10-16-2023 02:43 AM
Hi.
I'd like to create a voltage acquisition on two different channels, i.e. channel 0 and 1.
For this purpose I've cretated this:
Then, I've used this on the block diagram:
the
Anyway, I don't know on how to send the two differents channel's signal on two different numeric indicator so that the first, the gauge, shows CH0 values and the second, the meter, shows the CH1 values.
May you help me?
Thanks in advance.
10-16-2023 07:50 AM
Don't use DAQ assistant. Use DAQmx API. See Learn 10 Functions in NI-DAQmx and Handle 80 Percent of Your Data Acquisition Applications
You can get examples from Help >> Find Examples >> Hardware Input and Output >> DAQmx
Read the data as double array and use Index Array to separate into two different indicators.
10-19-2023 04:55 AM
Hi ZYOng.
Thanks for your reply.
I've tried this:
But , when I run it, I receive this error:
Where I'm going wrong ?
10-27-2023 02:16 AM
Hi.
If I build this VI, I can acquire and show two different AI voltage signal ad visualize they as a waveform.
But if I don't know how to show the two signal in two different indicators (not waveform) .
Anything like this:
Any idea?
Thanks in advance
10-27-2023 02:29 AM
Hi mforbiz,
@mforbiz wrote:
If I build this VI, I can acquire and show two different AI voltage signal ad visualize they as a waveform.
This is just an ExpressVI with an indicator - but if it is sufficient for you then it is ok...
@mforbiz wrote:
But if I don't know how to show the two signal in two different indicators (not waveform) .
Any idea?
Right-click the chart and show the digital display...
Generic suggestions:
10-27-2023 02:51 AM
Hi GerdW, thanks for your reply.
- When sticking with ExpressVIs you should use more ExpressVIs like Splitsignal...
If I use , i.e., two EspressVi in the same block diagram, I receive an error:
10-27-2023 03:08 AM
Hi mforbiz,
@mforbiz wrote:
Hi GerdW, thanks for your reply.
- When sticking with ExpressVIs you should use more ExpressVIs like Splitsignal...
If I use , i.e., two EspressVi in the same block diagram, I receive an error:
Because you didn't read (carefully) what I was writing!
I recommended named SplitSignal as additional ExpressVI...
10-27-2023 03:15 AM
Hi mforbiz,
@mforbiz wrote:
Hi ZYOng.
Thanks for your reply.
I've tried this:
But , when I run it, I receive this error:
Where I'm going wrong ?
You went wrong:
Solution: create a DAQmx task containing two channels!
See the DAQmx example VIs for details...
10-27-2023 03:37 AM
Hi gerdW.
On other forum/community that I attend (Home Assistant, Arduino, Electrical Engineer stack excange, ecc...), usually people with more experience helps less experienced people with pratical examples (like, in this case, a modified VI that solve the issue attached to the reply).
For this reason rather than say:
Solution: create a DAQmx task containing two channels!
I would have expected an attached VI with the solution.
Anyway I've understood that this is not this type of Community.
I'm an italian engineer and High School teacher.
I'm evaluting the use of LAbView in our labs but, if is so difficult to receive free support on the official communty I'll be forced to don't suggest the use of this very interesting software in our classes and labs.
Kind regards.
10-27-2023 03:59 AM - edited 10-27-2023 04:16 AM
Hi mforbiz,
@mforbiz wrote:
Hi gerdW.
- I've started a new thread because the first was not answered with a solution that solve my issue for many days.
- I've read many times any kind of documentation on DAQ mx but it has non solved my issue.
On other forum/community that I attend (Home Assistant, Arduino, Electrical Engineer stack excange, ecc...), usually people with more experience helps less experienced people with pratical examples (like, in this case, a modified VI that solve the issue attached to the reply).
@mforbiz wrote:
I would have expected an attached VI with the solution.
As explained before: I cannot open the VI you attached - and in other messages you only attached images. We cannot edit/debug/run images in LabVIEW...
Btw. often students are asking for "VI with the solution" attached - and the many seasoned forum members try not to "solve homework for free". As a teacher you will see the good intention behind this specific behaviour, I guess...
@mforbiz wrote:
Anyway I've understood that this is not this type of Community.
I'm an italian engineer and High School teacher.
I'm evaluting the use of LAbView in our labs but, if is so difficult to receive free support on the official communty I'll be forced to don't suggest the use of this very interesting software in our classes and labs.
I provided as much help as possible, see reasons above.
There was a hint to the digital display of charts and I named a specific ExpressVI function...
Two ways to add two channels to a task: