LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to create different types of analog input channels without using DAQ assistant?

Solved!
Go to solution

I have attached the vi in 8.0.  Whatever channel numbers you choose for your 5 voltage channels will be displayed in that order on your graph.  If you chose 1, 3, 5, 7, and 9, then your first plot will be channel 1, your second plot will be channel 3, your third plot will be channel 5, and so on.  The graph will not show a blank plot for channels 2, 4, 6, etc. because those channels were not activeated.  And because those channels are not activated, you cannot plot them.  If you actually wanted to plot them, you would have to chose them all and not connect those blank channels to anything that gives off data, or connect them to ground.

 

 

- tbob

Inventor of the WORM Global
0 Kudos
Message 11 of 18
(1,799 Views)

 


@CrackJack wrote:

ooh...well, the hardware actually takes care of the scaling and all that...and makes life simple for the coders 🙂

 

so,I dnt have to bother about the scaling, cjc, etc...


No, the hardware does not. The DAQmx driver takes care of that when you use a correct DAQmx Create Channel. Read the manual.

 

0 Kudos
Message 12 of 18
(1,788 Views)

Hi tbob,

           thanks a lot for the reply... Is there anyway that I can design the channel selection button as normal ON/OFF buttons?? I tried to do that, but then the channels did not

turn on/off....  Can i not take the channel selection squares out of the rectangular box that they have/?/

Now on LabVIEW 10.0 on Win7
0 Kudos
Message 13 of 18
(1,762 Views)

@CrackJack wrote:

Hi tbob,

           thanks a lot for the reply... Is there anyway that I can design the channel selection button as normal ON/OFF buttons?? I tried to do that, but then the channels did not

turn on/off....  Can i not take the channel selection squares out of the rectangular box that they have/?/


 

You should have been able to move each checkbox out of the rectangle and it should act like an normal boolean switch (click on, click off).  I tried it here and it worked.

 

You can create regular boolean switch controls, but you would have to read each one to see if it was on or off.  I don't think that is a good idea.  You can also have the user type in a channel number list separated by commas, like "1, 2, 5" and then parse the string to get the channel numbers.

 

Why don't you like the checkboxes in the rectangle?  It is the best way to handle this.

 

- tbob

Inventor of the WORM Global
0 Kudos
Message 14 of 18
(1,747 Views)

 


@tbob wrote:

@CrackJack wrote:

Hi tbob,

           thanks a lot for the reply... Is there anyway that I can design the channel selection button as normal ON/OFF buttons?? I tried to do that, but then the channels did not

turn on/off....  Can i not take the channel selection squares out of the rectangular box that they have/?/


 

You should have been able to move each checkbox out of the rectangle and it should act like an normal boolean switch (click on, click off).  I tried it here and it worked.

 

You can create regular boolean switch controls, but you would have to read each one to see if it was on or off.  I don't think that is a good idea.  You can also have the user type in a channel number list separated by commas, like "1, 2, 5" and then parse the string to get the channel numbers.

 

Why don't you like the checkboxes in the rectangle?  It is the best way to handle this.

 



@tbob wrote:

@CrackJack wrote:

Hi tbob,

           thanks a lot for the reply... Is there anyway that I can design the channel selection button as normal ON/OFF buttons?? I tried to do that, but then the channels did not

turn on/off....  Can i not take the channel selection squares out of the rectangular box that they have/?/


 

You should have been able to move each checkbox out of the rectangle and it should act like an normal boolean switch (click on, click off).  I tried it here and it worked.

 

You can create regular boolean switch controls, but you would have to read each one to see if it was on or off.  I don't think that is a good idea.  You can also have the user type in a channel number list separated by commas, like "1, 2, 5" and then parse the string to get the channel numbers.

 

Why don't you like the checkboxes in the rectangle?  It is the best way to handle this.

 


 

The checkbox inside the rectangle is good, i just wanted to add a feature, so that the operator can clearly see if the channel is activated or not... I shall try againgetting the checkbox out of the

rectangle.. if it worked at your end, it should work at my end as well....

 

Thanks a lot thou, for helping me out... 🙂 I had another question.. I wanted to show that the loop is in a running state by indicating a BLINKING LED... how to do that/? How do I make a LED BLINKING?

Should it be an CASE structure inside the while loop with a clock triggering ON/OFF of the LED???

Now on LabVIEW 10.0 on Win7
0 Kudos
Message 15 of 18
(1,731 Views)

Right click on the LED indicator and select Create - Property Node - Blinking.  Wire a True to the property node to make it blink, and a false to turn blinking off.

 

- tbob

Inventor of the WORM Global
0 Kudos
Message 16 of 18
(1,724 Views)

i TRIED doing that/... did not work... 😞

 

Should the true /false condition be in a loop???

Now on LabVIEW 10.0 on Win7
0 Kudos
Message 17 of 18
(1,714 Views)
Solution
Accepted by topic author LV_Enthu

When creating a property node, it comes up as an object you read from.  Right click to change it to something you write to.  Like this:

 

22741iA7AFEBEE3119D985

- tbob

Inventor of the WORM Global
Message 18 of 18
(1,703 Views)