02-10-2006 03:29 AM
02-10-2006 03:54 AM
The less than 70 micor ampere is implemented under the current meter in the attached program.
I would like to attach my program to let let you see what is going on.
02-10-2006 12:06 PM
02-13-2006 04:01 AM
Hi Dennis:
I made a program with state machine. Do you think there is any problem with it? Is so, I hope you can spot my mistake.
Regards,
John
02-13-2006 11:50 AM
Aside from the fact that your state machine does abosolutely nothing, it's fine.![]()
Also, I would recomend you use integers, enums, strings, or a queue to define the states, not DBLs.
02-15-2006 01:49 AM
Hi Dennis:
I got it. I know that my program using case structure is fine.
I know Event Structure can use with user interaction such as you press a push button in front panel and then the event structure will know which state to go by defining in event structure.
I wonder my program is without push buttons in front panel, could I use event structure instead? If so, would you please explain to me why? There is a timeout case in event structure, pls note.
You said I use case structure is fine in my case. You are not afraid of polling loop in case structure to detect changes. Why? Could you please explain
02-15-2006 08:59 AM
02-17-2006 02:38 AM
Hi Dennis:
That means DBL (for example: 0.0) with decimal point can not wire this value this shift register. am I getting your meaning?
in your seond paragraph, did you answer my question. I asked if I don't have any push buttons (front banel controls) in case struture state machine, can I use event structure?
In your previous mail, that means I can use case structure for writing state machine without concerning about polling issue because thousands of programs have been written in LabView without event structure, am I correct?
Sounds like the polling issue is something that you will not probably notice when writing program. Therefore, I don't have to care. Am I correct?
Regards,
John
02-17-2006 05:12 AM
Hi Dennis:
DBL, see attached. is the floating point set it to 0. Is that right? I just read the information that you provided regarding state machine
02-17-2006 08:36 AM
Nyborn,
I am not going to get sucked down into the rabbit hole of endlessly confiming questions I have already answered. There's been far to much of that in your previous postings. I will tell you one more time. DO NOT use floating point numbers to wire into your shift register. At some point, you're going to end up writing what you think is (for example) 2.0 to the shifter register but it will actually be 2.000000000001 (because that's the way computers sometimes translate floating point numbers). If you don't know how to specify or change the numeric representation of controls or constants, you have to take a programming course before you go any further.