|
|||||||||||||
05-02-2012 07:16 AM
Hi,
I have to communicate in modbus with a machine which is in ASCII, so I want to create a drop-down menu within all the ASCII command.
Any Idea ?
thanks
Solved! Go to Solution.
05-02-2012 07:24 AM
You can take all the commands into Ring control and pass the values using the property nodes.
05-02-2012 07:25 AM
Hi Peter,
"Any Idea ?"
Yes: take a dropdown menu (aka Ring) and input all your "ASCII command"...
What answer do you expect? Just create the menu!
05-02-2012 07:30 AM
I don't really know,
In fact, in the drop down menu I want to put the instruction (example : Move to the first position) and when this case is chosen we send the ASCII code of this instruction to the machine..
05-02-2012 07:34 AM
If that is a big instruction then you can go for Enum so what ever you want the desciption of the command put it into Enum so correspondingly in case structure you can send the command.
05-02-2012 07:34 AM
Hi Peter,
"when this case is chosen we send the ASCII code"
Well, that sounds like the perfect use for a case structure, don't you think?
05-02-2012 07:41 AM
Yes of course I'll use a case structure.
but in what kind of variable should I put my string command ? and where can I find that ? knowing that the command are in ASCII
Regards
05-02-2012 07:43 AM
Hi Peter,
- LabVIEW doesn't work with variables...
- when you need "ASCII commands" I would use a string constant...
05-02-2012 07:56 AM
Ok, sorry I'm a new user of labview lol
Thank you for your help;
05-02-2012 07:33 PM
My Profile | Privacy |
Legal |
Contact NI
© 2011 National Instruments Corporation. All rights reserved. | E-Mail this Page
|
||

E-Mail this Page