07-29-2013 11:59 PM
Hello everyone...
We are developing a software in which we have to communicate with multipil instruments via 485 cable
We will be using modbus protocol
We are giving options to the user to request all register at a time which are of same type ( Ex .Holding register once at time )
For suppose user request 5 Register , He must be able to write his own logic i.e what kind of arithmetic operations or or logic operations or boolean kind
of operations to perform on the requested registers for representing the output.
My question is how should i give logic entry for end user. I cant make it hard code because my software should communicate with unknow instrument also if it support a modbus protocol
Regards
PN RAJA
07-30-2013 12:14 AM
If you're looking for Arithmatic operations, probably you can seek some inspiration from Formula Express VI.
Also you might want to explore Formula Parsing VIs.
Another useful link: Formula Parsing VIs in More Detail
11-01-2013 01:56 AM
Thank you @moderator1983
I wish to give a Window in which user will enter the logic in text format i.e C language code . so now the question is how to compile this code in run time
11-01-2013 02:32 AM
Dont create duplicate post. Stick with one and be patient
11-01-2013 02:55 AM
The formula express VI is for use at edit time and will not help you here.
You seem to be looking to enter simple formulas at run time.
For this, all you needs is a string control and the formula parsing VIs. Look at the examples.