LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

I am trying to communicate with third party instrument via usb but I dont know how to do it even in Ni-max I am not able to see usb port symbol in Devices and Interface section.

Solved!
Go to solution

hiii,

I want to make some changes in LED ,

1) initially its off or no light

2)when device is ok then green light shud be appear

3)when there is any error then RED light shud be appear.

can it possible ??

will you please guide me...

thank you..

0 Kudos
Message 51 of 60
(1,144 Views)

@AnkitRamani wrote:

hiii,

I want to make some changes in LED ,

1) initially its off or no light

2)when device is ok then green light shud be appear

3)when there is any error then RED light shud be appear.

can it possible ??

will you please guide me...

thank you..


Hi, Ankit:

 

It's not immediately obvious, but if you look in LabVIEW Help --> index --> boolean controls and indicators --> properties, you will find colors [4] and strings [4].  I think this is what you need.

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 52 of 60
(1,107 Views)

Hi,

actually I want to make changes in single LED,

means I know that its a Boolean so it has only two possibility that true or false,but I m looking for 3 color in single LED.

1)initial color

2)when device is OK then same led will be green 

3)if suppose device is not OK means there is some error so, instead of LED off i need to make it to be Red.

so, can it possible in Labview??

thank you.

0 Kudos
Message 53 of 60
(1,094 Views)

@AnkitRamani wrote:

Hi,

actually I want to make changes in single LED,

means I know that its a Boolean so it has only two possibility that true or false,but I m looking for 3 color in single LED.

1)initial color

2)when device is OK then same led will be green 

3)if suppose device is not OK means there is some error so, instead of LED off i need to make it to be Red.

so, can it possible in Labview??

thank you.


Can you not set the "false" color property to your initial color, then when you're done initializing, set it back to what it's supposed to be?

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 54 of 60
(1,088 Views)

hii,

I m facing problem in Modbus read,
this is first time i am dealing with this.

here in attachment i have put the screen shot so you can easily identify my error.

even in visa test panel visa write *IDN? commant is execute correctly but in visa read i m facing problem .

can you please tell me that which kind of setting i required to solve this problem.

0 Kudos
Message 55 of 60
(1,077 Views)

@AnkitRamani wrote:

hii,

I m facing problem in Modbus read,
this is first time i am dealing with this.

here in attachment i have put the screen shot so you can easily identify my error.

even in visa test panel visa write *IDN? commant is execute correctly but in visa read i m facing problem .

can you please tell me that which kind of setting i required to solve this problem.


What error are you getting?

 

Normally, timeouts in between writes and reads indicate a lack of understanding of basic instrument communications, especially since I see this uses at least a subset of SCPI.  Make sure your serial comm settings are correct.

 

FYI - I understand that all these questions relate to your software, but if you could break them into separate topics to be answered individually, other people could benefit from the knowledge.  🙂

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 56 of 60
(1,048 Views)

Thanks for reply Its only communication problem so I check all my serial connection again so Now its work correctly.

And next time I ll post in new thread so other can also get some help.

 

I want to make change in my system that

I have made sub vi for supply on and vi for channel 1 and also for power over supply off.

If some one want to run  my program but if he forget to on the supply then can it be possible to have message like your oversupply is off and  same time all the next procedure shout be stop.

This message should popup on the main screen like error messages which is popup by labview when we have any error.

Thank you again.

0 Kudos
Message 57 of 60
(1,030 Views)

@AnkitRamani wrote:

Thanks for reply Its only communication problem so I check all my serial connection again so Now its work correctly.

And next time I ll post in new thread so other can also get some help.

 

I want to make change in my system that

I have made sub vi for supply on and vi for channel 1 and also for power over supply off.

If some one want to run  my program but if he forget to on the supply then can it be possible to have message like your oversupply is off and  same time all the next procedure shout be stop.

This message should popup on the main screen like error messages which is popup by labview when we have any error.

Thank you again.


Generate your own error and then handle it.  All errors should be handled.  Even unanticipated errors should be handled, at least generically, by you.  Try not to let LabVIEW handle them for you.  Part of programming basics is to handle errors so the user doesn't have to.  Personally, I find it embarrassing if there are unhandled errors in my apps.  😉

 

PS - what happened to the idea about separating your posts?

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
Message 58 of 60
(1,009 Views)

Thanks Bill.

I thought ,this problem is  related to my power supply so I continued with the old thread ,but now if suppose I ll get any problem regarding to modus ,gps or gsm then definitely I ll choose new thread.

Or  can I also put this error que. In new thread??

thanks.

0 Kudos
Message 59 of 60
(1,001 Views)

@AnkitRamani wrote:

Thanks Bill.

I thought ,this problem is  related to my power supply so I continued with the old thread ,but now if suppose I ll get any problem regarding to modus ,gps or gsm then definitely I ll choose new thread.

Or  can I also put this error que. In new thread??

thanks.


It's okay, Ankit.  You don't have to be so worried about where to put your post that it distracts you from getting your question answered.  🙂

Just remember it's okay to generate your own error codes.  Error codes 5000 - 9999 are reserved for developers!  (I think the negative counterparts are also reserved so you can use negative numbers for errors, and positive numbers for warnings, but not sure.)

 

Hope this helps 🙂

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
Message 60 of 60
(993 Views)